about summary refs log tree commit diff
path: root/mscan.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 22:32:21 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-08-04 22:32:21 +0200
commit5aafeb8550744029ae9dda33180fd7a128cede78 (patch)
tree8208e98aeab4cddb49a21b39d09199d4abfee851 /mscan.c
parenta8397824b143e31d2cefe0b91fbe91d4231e7b97 (diff)
downloadmblaze-5aafeb8550744029ae9dda33180fd7a128cede78.tar.gz
mblaze-5aafeb8550744029ae9dda33180fd7a128cede78.tar.xz
mblaze-5aafeb8550744029ae9dda33180fd7a128cede78.zip
mscan: actually show To: in TO:
Diffstat (limited to 'mscan.c')
-rw-r--r--mscan.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mscan.c b/mscan.c
index 0149560..543c642 100644
--- 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;