From: Michael Elkins Date: Tue, 15 Jan 2013 04:39:15 +0000 (-0800) Subject: detect pipermail-style obscured return path in mbox From lines X-Git-Tag: neomutt-20160307~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5609a85fe78221fc669058c532dc5fe3d0908832;p=neomutt detect pipermail-style obscured return path in mbox From lines see #1200 --- diff --git a/from.c b/from.c index f157be64e..e154b57d7 100644 --- a/from.c +++ b/from.c @@ -96,8 +96,19 @@ int is_from (const char *s, char *path, size_t pathlen, time_t *tp) q = !q; } } - + if (q || !*p) return 0; + + /* pipermail archives have the return_path obscured such as "me at mutt.org" */ + if (ascii_strncasecmp(p, " at ", 4) == 0) + { + p = strchr(p + 4, ' '); + if (!p) + { + dprint (1, (debugfile, "is_from(): error parsing what appears to be a pipermail-style obscured return_path: %s\n", s)); + return 0; + } + } if (path) {