* Remove leading '|' from references if present
authorArt Cancro <ajc@citadel.org>
Thu, 19 Mar 2009 19:54:21 +0000 (19:54 +0000)
committerArt Cancro <ajc@citadel.org>
Thu, 19 Mar 2009 19:54:21 +0000 (19:54 +0000)
webcit/messages.c

index db512156cc8421f623472bcb4a13be3726f7eec2..cd2e0cf814ffa9f4198b88ebac6f5d5eb8f7cd71 100644 (file)
@@ -1160,9 +1160,10 @@ void post_message(void)
                {
                        const StrBuf *ref = sbstr("references");
                        references = NewStrBufPlain(ChrPtr(ref), StrLength(ref));
-                       lprintf(9, "Converting: %s\n", ChrPtr(references));
+                       if (*ChrPtr(references) == '|') {       /* remove leading '|' if present */
+                               StrBufCutLeft(references, 1);
+                       }
                        StrBufReplaceChars(references, '|', '!');
-                       lprintf(9, "Converted: %s\n", ChrPtr(references));
                }
                if (havebstr("subject")) {
                        const StrBuf *Subj;