mblaze

Unix utilities to deal with Maildir - my mirror
git clone https://pi.duncano.de/git/mblaze.git
Log | Files | Refs | README | COPYING

commit 5aafeb8550744029ae9dda33180fd7a128cede78
parent a8397824b143e31d2cefe0b91fbe91d4231e7b97
Author: Christian Neukirchen <chneukirchen@gmail.com>
Date:   Thu,  4 Aug 2016 22:32:21 +0200

mscan: actually show To: in TO:

Diffstat:
mscan.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mscan.c b/mscan.c @@ -168,14 +168,14 @@ fmt_from(struct message *msg) static char fromdec[64]; char *from = "(unknown)"; char to[256]; - char *v; + char *v, *w; if (!msg) return ""; if ((v = blaze822_hdr(msg, "from"))) { - if (itsme(v)) { - snprintf(to, sizeof to, "TO:%s", v); + if (itsme(v) && ((w = blaze822_hdr(msg, "to")))) { + snprintf(to, sizeof to, "TO:%s", w); from = to; } else { char *disp, *addr;