#ifdef USE_HCACHE
static int msg_fetch_header_fetch (CONTEXT * ctx, IMAP_HEADER * h, char *buf,
FILE * fp);
#ifdef USE_HCACHE
static int msg_fetch_header_fetch (CONTEXT * ctx, IMAP_HEADER * h, char *buf,
FILE * fp);
if (uid_validity != NULL && *uid_validity == idata->uid_validity) {
ctx->hdrs[msgno] = mutt_hcache_restore((unsigned char *) uid_validity, 0);
ctx->hdrs[msgno]->index = h.sid - 1;
if (uid_validity != NULL && *uid_validity == idata->uid_validity) {
ctx->hdrs[msgno] = mutt_hcache_restore((unsigned char *) uid_validity, 0);
ctx->hdrs[msgno]->index = h.sid - 1;
idata = (IMAP_DATA *) ctx->data;
if (imap_parse_path (dest, &mx)) {
idata = (IMAP_DATA *) ctx->data;
if (imap_parse_path (dest, &mx)) {
return -1;
}
/* check that the save-to folder is in the same account */
if (!mutt_account_match (&(CTX_DATA->conn->account), &(mx.account))) {
return -1;
}
/* check that the save-to folder is in the same account */
if (!mutt_account_match (&(CTX_DATA->conn->account), &(mx.account))) {
rc = imap_sync_message (idata, ctx->hdrs[n], &sync_cmd, &err_continue);
if (rc < 0)
{
rc = imap_sync_message (idata, ctx->hdrs[n], &sync_cmd, &err_continue);
if (rc < 0)
{
rc = imap_make_msg_set (idata, &cmd, M_TAG, 0);
if (!rc) {
rc = imap_make_msg_set (idata, &cmd, M_TAG, 0);
if (!rc) {
rc = imap_sync_message (idata, h, &sync_cmd, &err_continue);
if (rc < 0)
{
rc = imap_sync_message (idata, h, &sync_cmd, &err_continue);
if (rc < 0)
{
snprintf (mmbox, sizeof (mmbox), _("Create %s?"), mbox);
if (option (OPTCONFIRMCREATE) && mutt_yesorno (mmbox, 1) < 1) {
mutt_clear_error ();
snprintf (mmbox, sizeof (mmbox), _("Create %s?"), mbox);
if (option (OPTCONFIRMCREATE) && mutt_yesorno (mmbox, 1) < 1) {
mutt_clear_error ();
* -1 if the string is not a fetch response
* -2 if the string is a corrupt fetch response */
static int msg_fetch_header_fetch (CONTEXT * ctx, IMAP_HEADER * h, char *buf,
* -1 if the string is not a fetch response
* -2 if the string is a corrupt fetch response */
static int msg_fetch_header_fetch (CONTEXT * ctx, IMAP_HEADER * h, char *buf,
/* sanity-check string */
if (ascii_strncasecmp ("FLAGS", s, 5) != 0) {
/* sanity-check string */
if (ascii_strncasecmp ("FLAGS", s, 5) != 0) {