projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
missing add
[apps/madmutt.git]
/
imap
/
message.c
diff --git
a/imap/message.c
b/imap/message.c
index
6c1fce7
..
a3225e4
100644
(file)
--- a/
imap/message.c
+++ b/
imap/message.c
@@
-54,7
+54,7
@@
int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend)
int rc, mfhrc, oldmsgcount;
int fetchlast = 0;
const char *want_headers =
int rc, mfhrc, oldmsgcount;
int fetchlast = 0;
const char *want_headers =
- "DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES
string_list_t
-POST X-LABEL";
+ "DATE FROM SUBJECT TO CC MESSAGE-ID REFERENCES CONTENT-TYPE CONTENT-DESCRIPTION IN-REPLY-TO REPLY-TO LINES
LIST
-POST X-LABEL";
#ifdef USE_HCACHE
void *hc = NULL;
#ifdef USE_HCACHE
void *hc = NULL;
@@
-163,7
+163,7
@@
int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend)
if ((mfhrc < -1) || ((rc != IMAP_CMD_CONTINUE) && (rc != IMAP_CMD_OK))) {
imap_free_header_data((void *)&h.data);
if ((mfhrc < -1) || ((rc != IMAP_CMD_CONTINUE) && (rc != IMAP_CMD_OK))) {
imap_free_header_data((void *)&h.data);
-
fclose (
fp);
+
m_fclose(&
fp);
mutt_hcache_close (hc);
return -1;
}
mutt_hcache_close (hc);
return -1;
}
@@
-262,7
+262,7
@@
int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend)
if ((mfhrc < -1) || ((rc != IMAP_CMD_CONTINUE) && (rc != IMAP_CMD_OK))) {
imap_free_header_data ((void *)&h.data);
if ((mfhrc < -1) || ((rc != IMAP_CMD_CONTINUE) && (rc != IMAP_CMD_OK))) {
imap_free_header_data ((void *)&h.data);
-
fclose (
fp);
+
m_fclose(&
fp);
#ifdef USE_HCACHE
mutt_hcache_close (hc);
#endif /* USE_HCACHE */
#ifdef USE_HCACHE
mutt_hcache_close (hc);
#endif /* USE_HCACHE */
@@
-283,7
+283,7
@@
int imap_read_headers (IMAP_DATA * idata, int msgbegin, int msgend)
mutt_hcache_close (hc);
#endif /* USE_HCACHE */
mutt_hcache_close (hc);
#endif /* USE_HCACHE */
-
fclose (
fp);
+
m_fclose(&
fp);
if (ctx->msgcount > oldmsgcount)
mx_update_context (ctx, ctx->msgcount - oldmsgcount);
if (ctx->msgcount > oldmsgcount)
mx_update_context (ctx, ctx->msgcount - oldmsgcount);
@@
-499,7
+499,7
@@
int imap_fetch_message (MESSAGE * msg, CONTEXT * ctx, int msgno)
return 0;
bail:
return 0;
bail:
-
safe_fclose
(&msg->fp);
+
m_fclose
(&msg->fp);
if (cache->path) {
unlink (cache->path);
p_delete(&cache->path);
if (cache->path) {
unlink (cache->path);
p_delete(&cache->path);
@@
-574,7
+574,7
@@
int imap_append_message (CONTEXT * ctx, MESSAGE * msg)
pc = imap_next_word (pc);
mutt_error ("%s", pc);
mutt_sleep (1);
pc = imap_next_word (pc);
mutt_error ("%s", pc);
mutt_sleep (1);
-
fclose (
fp);
+
m_fclose(&
fp);
goto fail;
}
goto fail;
}
@@
-595,7
+595,7
@@
int imap_append_message (CONTEXT * ctx, MESSAGE * msg)
flush_buffer (buf, &len, idata->conn);
mutt_socket_write (idata->conn, "\r\n");
flush_buffer (buf, &len, idata->conn);
mutt_socket_write (idata->conn, "\r\n");
-
fclose (
fp);
+
m_fclose(&
fp);
do
rc = imap_cmd_step (idata);
do
rc = imap_cmd_step (idata);
@@
-969,7
+969,7
@@
static int msg_has_flag (string_list_t * flag_list, const char *flag)
/* msg_parse_fetch: handle headers returned from header fetch */
static int msg_parse_fetch (IMAP_HEADER * h, char *s)
{
/* msg_parse_fetch: handle headers returned from header fetch */
static int msg_parse_fetch (IMAP_HEADER * h, char *s)
{
- char tmp[S
HORT_S
TRING];
+ char tmp[STRING];
char *ptmp;
if (!s)
char *ptmp;
if (!s)