Changeset 5458:f93dcd689032 for alias.c
Legend:
- Unmodified
- Added
- Removed
-
alias.c
r5417 r5458 212 212 } 213 213 214 static void recode_buf (char *buf, size_t buflen) 215 { 216 char *s; 217 218 if (!ConfigCharset || !*ConfigCharset || !Charset) 219 return; 220 s = safe_strdup (buf); 221 if (!s) 222 return; 223 if (mutt_convert_string (&s, Charset, ConfigCharset, 0) == 0) 224 strfcpy (buf, s, buflen); 225 FREE(&s); 226 } 227 214 228 void mutt_create_alias (ENVELOPE *cur, ADDRESS *iadr) 215 229 { … … 356 370 else 357 371 strfcpy (buf, new->name, sizeof (buf)); 372 recode_buf (buf, sizeof (buf)); 358 373 fprintf (rc, "alias %s ", buf); 359 374 buf[0] = 0; 360 375 rfc822_write_address (buf, sizeof (buf), new->addr, 0); 376 recode_buf (buf, sizeof (buf)); 361 377 write_safe_address (rc, buf); 362 378 fputc ('\n', rc);
