if (ac->ssl_nntp != SSL_NONE) {
if (alertpanel_full(_("Insecure connection"),
_("This connection is configured to be secured "
- "using SSL, but SSL is not available in this "
- "build of Claws Mail. \n\n"
+ "using SSL/TLS, but SSL/TLS is not available "
+ "in this build of Claws Mail. \n\n"
"Do you want to continue connecting to this "
"server? The communication would not be "
"secure."),
msginfo->inreplyto = g_strdup(p);
}
g_free(tmp);
- }
+ }
return msginfo;
}
{
gchar * tmp;
FILE * tmpfp;
- gchar buf[BUFFSIZE];
+ gchar date[RFC822_DATE_BUFFSIZE];
tmp = g_strdup_printf("%s%ccancel%p", get_tmp_dir(),
G_DIR_SEPARATOR, msginfo);
g_warning("can't change file mode");
}
- get_rfc822_date(buf, sizeof(buf));
+ if (prefs_common.hide_timezone)
+ get_rfc822_date_hide_tz(date, sizeof(date));
+ else
+ get_rfc822_date(date, sizeof(date));
if (fprintf(tmpfp, "From: %s\r\n"
"Newsgroups: %s\r\n"
"Subject: cmsg cancel <%s>\r\n"
msginfo->msgid,
msginfo->from,
msginfo->from,
- buf) < 0) {
+ date) < 0) {
FILE_OP_ERROR(tmp, "fprintf");
fclose(tmpfp);
claws_unlink(tmp);
REMOTE_FOLDER(item->folder)->session = NULL;
}
news_folder_unlock(NEWS_FOLDER(item->folder));
+ if (hdrlist != NULL)
+ newsnntp_xhdr_free(hdrlist);
return;
}
}
}
newsnntp_xhdr_free(hdrlist);
+ hdrlist = NULL;
/* To */
ok = nntp_threaded_xhdr(item->folder, "to", first, last, &hdrlist);
REMOTE_FOLDER(item->folder)->session = NULL;
}
news_folder_unlock(NEWS_FOLDER(item->folder));
+ if (hdrlist != NULL)
+ newsnntp_xhdr_free(hdrlist);
return;
}
}
}
newsnntp_xhdr_free(hdrlist);
+ hdrlist = NULL;
/* Cc */
ok = nntp_threaded_xhdr(item->folder, "cc", first, last, &hdrlist);
REMOTE_FOLDER(item->folder)->session = NULL;
}
news_folder_unlock(NEWS_FOLDER(item->folder));
+ if (hdrlist != NULL)
+ newsnntp_xhdr_free(hdrlist);
return;
}
}
}
newsnntp_xhdr_free(hdrlist);
-
+ hdrlist = NULL;
g_hash_table_destroy(hash_table);
news_folder_unlock(NEWS_FOLDER(item->folder));
REMOTE_FOLDER(item->folder)->session = NULL;
}
news_folder_unlock(NEWS_FOLDER(item->folder));
+ if (msglist != NULL)
+ newsnntp_xover_resp_list_free(msglist);
return NULL;
}
_("You have one or more News accounts "
"defined. However this version of "
"Claws Mail has been built without "
- "News support; your News account(s) are "
+ "News support; your News accounts are "
"disabled.\n\n"
"You probably need to "
"install libetpan and recompile "