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:30:35 +0000 (10:30 +0000)
citadel/msgbase.c

index 9fcee63664caab3c8f8b15e27ae8e54ed46afc2a..175346960d4c8c0ab8b3971dd54262c0b0a3026f 100644 (file)
@@ -2006,7 +2006,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);