#include "mutt.h"
#include "imap_private.h"
-#include "message.h"
#include "mx.h"
#include "buffy.h"
#include "globals.h"
#include "sort.h"
#include "browser.h"
-#include "message.h"
#include "imap_private.h"
#if defined(USE_SSL)
# include "mutt_ssl.h"
FREE (&idata->cache[cacheno].path);
}
- imap_free_header_data (&h->data);
+ imap_free_header_data ((IMAP_HEADER_DATA**)&h->data);
}
}
for (i = 0; i < ctx->msgcount; i++)
/* mailbox may not have fully loaded */
if (ctx->hdrs[i] && ctx->hdrs[i]->data)
- imap_free_header_data (&(ctx->hdrs[i]->data));
+ imap_free_header_data ((IMAP_HEADER_DATA**)&(ctx->hdrs[i]->data));
for (i = 0; i < IMAP_CACHE_LEN; i++)
{
#ifdef USE_HCACHE
#include "hcache.h"
#endif
+#include "message.h" /* for IMAP_HEADER_DATA */
/* -- symbols -- */
#define IMAP_PORT 143
/* message.c */
void imap_add_keywords (char* s, HEADER* keywords, LIST* mailbox_flags, size_t slen);
-struct imap_header_data;
-void imap_free_header_data (struct imap_header_data** data);
+void imap_free_header_data (IMAP_HEADER_DATA** data);
int imap_read_headers (IMAP_DATA* idata, int msgbegin, int msgend);
char* imap_set_flags (IMAP_DATA* idata, HEADER* h, char* s);
int imap_cache_del (IMAP_DATA* idata, HEADER* h);
#include "mutt.h"
#include "imap_private.h"
-#include "message.h"
#include "mx.h"
#ifdef HAVE_PGP
/* imap_free_header_data: free IMAP_HEADER structure */
void imap_free_header_data (IMAP_HEADER_DATA** data)
{
- if (data) {
+ if (*data)
+ {
/* this should be safe even if the list wasn't used */
mutt_free_list (&((*data)->keywords));
-
- FREE (data); /* __FREE_CHECKED__ */
+ FREE (data);
}
}
#include "url.h"
#include "imap_private.h"
#ifdef USE_HCACHE
-#include "message.h"
#include "hcache.h"
#endif