* Populate EUID field when fetching RSS items, if possible.
authorArt Cancro <ajc@citadel.org>
Wed, 3 Feb 2010 18:01:56 +0000 (18:01 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 3 Feb 2010 18:01:56 +0000 (18:01 +0000)
citadel/modules/rssclient/serv_rssclient.c

index ea1587ed67910eb08ae57a8d659205805638e42f..2a16edd8a215862978385267381991fdd75e4cce 100644 (file)
@@ -348,6 +348,10 @@ void rss_save_item(rsscollection *rssc) {
                msg->cm_anon_type = MES_NORMAL;
                msg->cm_format_type = FMT_RFC822;
 
+               if (ri->guid != NULL) {
+                       msg->cm_fields['E'] = strdup(ri->guid);
+               }
+
                if (ri->author_or_creator != NULL) {
                        msg->cm_fields['A'] = html_to_ascii(ri->author_or_creator,
                                strlen(ri->author_or_creator), 512, 0);