rc = 1;
shutdown:
+ FreeStrBuf(&Answer);
curl_easy_cleanup(curl);
return rc;
msg->cm_fields['U'] = SmashStrBuf(&QPEncoded);
FreeStrBuf(&Encoded);
}
+
+ if (ri->pubdate <= 0) {
+ ri->pubdate = time(NULL);
+ }
msg->cm_fields['T'] = malloc(64);
snprintf(msg->cm_fields['T'], 64, "%ld", ri->pubdate);
+
if (ri->channel_title != NULL) {
if (StrLength(ri->channel_title) > 0) {
msg->cm_fields['O'] = strdup(ChrPtr(ri->channel_title));
}
if (ri->link == NULL)
ri->link = NewStrBufPlain(HKEY(""));
+#ifdef EXPERIMENTAL_SHORTER_URLS
+/* its rather hard to implement this libevent compatible, so we don't ship it. */
ExpandShortUrls(ri->description);
+#endif
msglen += 1024 + StrLength(ri->link) + StrLength(ri->description) ;
Message = NewStrBufPlain(NULL, StrLength(ri->description));