Don't add brackets <> to the reply to; it should be ok without.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 18 Aug 2011 10:30:35 +0000 (10:30 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Sun, 4 Sep 2011 21:49:06 +0000 (21:49 +0000)
citadel/msgbase.c

index f78116711f164d5c3d4c76a04ed1cca280a8745f..a02f7cd242beb94422e36f3019ec9f452c98f8c9 100644 (file)
@@ -2038,7 +2038,11 @@ void OutputRFC822MsgHeaders(
                                }
                        }
                        else if (i == 'K') {
-                               cprintf("Reply-To: <%s>%s", mptr, nl);
+                               hptr = mptr;
+                               while ((*hptr != '\0') && isspace(*hptr))
+                                       hptr ++;
+                               if (!IsEmptyStr(hptr))
+                                       cprintf("Reply-To: %s%s", mptr, nl);
                        }
                        if (mptr != mpptr)
                                free (mptr);