From: Wilfried Göesgens Date: Mon, 28 Jun 2010 18:59:15 +0000 (+0000) Subject: * rss_save_item(): trim the sender X-Git-Tag: v7.86~122 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=18e407cc578194d35a421f2ac60c7784e2d4ce63;hp=c7e78ae613dea37022d6ebec0b18d0fc3a1c1c1a;p=citadel.git * rss_save_item(): trim the sender --- diff --git a/citadel/modules/rssclient/serv_rssclient.c b/citadel/modules/rssclient/serv_rssclient.c index 3661f52e4..6d513d0c2 100644 --- a/citadel/modules/rssclient/serv_rssclient.c +++ b/citadel/modules/rssclient/serv_rssclient.c @@ -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);