X-Git-Url: http://git.madism.org/?a=blobdiff_plain;ds=sidebyside;f=parse.c;h=686d9ed3ed029b43cac458c9a88c5b9d3a789a1e;hb=047342c2a0526885217e03d06e9b7a715f55b92f;hp=84adc1a165f88dc519d38d215af7924870d52efa;hpb=6833ce8bdca2d64e14485118f2a4417b7e1cb1b1;p=apps%2Fmadmutt.git diff --git a/parse.c b/parse.c index 84adc1a..686d9ed 100644 --- a/parse.c +++ b/parse.c @@ -84,6 +84,27 @@ static char *read_rfc822_line (FILE *f, char *line, size_t *linelen) /* not reached */ } +static LIST *mutt_add_x_face (LIST *lst, char *face) +{ + LIST *n; + + n = safe_malloc(sizeof(LIST)); + n->data = safe_strdup(face); + n->next = NULL; + + if (lst) + { + LIST *l; + + for(l = lst; l->next; l = l->next); + l->next = n; + } + else + lst = n; + + return lst; +} + LIST *mutt_parse_references (char *s, int in_reply_to) { LIST *t, *lst = NULL; @@ -1237,6 +1258,11 @@ int mutt_parse_rfc822_line (ENVELOPE *e, HEADER *hdr, char *line, char *p, short e->x_label = safe_strdup(p); matched = 1; } + else if (ascii_strcasecmp (line+1, "-face") == 0) + { + e->x_face = mutt_add_x_face (e->x_face, p); + matched = 1; + } #ifdef USE_NNTP else if (!mutt_strcasecmp (line + 1, "-comment-to")) {