* rss_save_item(): trim the sender
authorWilfried Göesgens <willi@citadel.org>
Mon, 28 Jun 2010 18:59:15 +0000 (18:59 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 28 Jun 2010 18:59:15 +0000 (18:59 +0000)
citadel/modules/rssclient/serv_rssclient.c

index 3661f52e4bf057589c1b4843b169630883520ace..6d513d0c2ff66fdea17c8509fbd768194544430c 100644 (file)
@@ -321,6 +321,7 @@ void rss_save_item(rsscollection *rssc) {
        }
 
        /* Find out if we've already seen this item */
+
        cdbut = cdb_fetch(CDB_USETABLE, utmsgid, strlen(utmsgid));
        if (cdbut != NULL) {
                /* Item has already been seen */
@@ -369,6 +370,7 @@ void rss_save_item(rsscollection *rssc) {
 
                        Encoded = NewStrBufPlain(From, -1);
                        free(From);
+                       StrBufTrim(Encoded);
                        QPEncoded = StrBufSanitizeEmailRecipientVector(Encoded, UserName, EmailAddress, EncBuf);
                        msg->cm_fields['A'] = SmashStrBuf(&QPEncoded);