Commit 8b5b25a6 8b5b25a60cbb5aa6931e798000f2c2f985097155 by Sergey Poznyakoff

(util_escape_percent): Delete

1 parent 1815987a
......@@ -350,7 +350,6 @@ extern void util_slist_destroy (mu_list_t *list);
extern char *util_slist_to_string (mu_list_t list, const char *delim);
extern void util_strcat (char **dest, const char *str);
extern void util_strupper (char *str);
extern void util_escape_percent (char **str);
extern char *util_outfolder_name (char *str);
extern void util_save_outgoing (mu_message_t msg, char *savefile);
extern void util_error (const char *format, ...) MU_PRINTFLIKE(1,2);
......
......@@ -821,9 +821,9 @@ util_get_sender (int msgno, int strip)
if (!addr)
{
mu_envelope_t env = NULL;
char buffer[512];
const char *buffer;
mu_message_get_envelope (msg, &env);
if (mu_envelope_sender (env, buffer, sizeof (buffer), NULL)
if (mu_envelope_sget_sender (env, &buffer)
|| mu_address_create (&addr, buffer))
{
util_error (_("Cannot determine sender name (msg %d)"), msgno);
......@@ -996,37 +996,6 @@ util_strupper (char *s)
}
void
util_escape_percent (char **str)
{
int count;
char *p, *q;
char *newstr;
/* Count ocurrences of % in the string */
count = 0;
for (p = *str; *p; p++)
if (*p == '%')
count++;
if (!count)
return; /* nothing to do */
/* expand the string */
newstr = xmalloc (strlen (*str) + 1 + count);
/* and escape percent signs */
p = newstr;
q = *str;
while ((*p = *q++))
{
if (*p == '%')
*++p = '%';
p++;
}
*str = newstr;
}
char *
util_outfolder_name (char *str)
{
......