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>
Thu, 18 Aug 2011 10:46:28 +0000 (10:46 +0000)
citadel/msgbase.c

index b29980a5d558441670d70e77a0ef15276bd16b2d..6417cd3fdd7e5e3d1f2f98f430313534b6475991 100644 (file)
@@ -1897,7 +1897,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);