continue;
mutt_message_hook(Context, Context->mailbox->hdrs[i], MUTT_MESSAGE_HOOK);
- rc = mutt_save_message_ctx(Context->mailbox->hdrs[i], delete, decode, decrypt, savectx->mailbox);
+ rc = mutt_save_message_ctx(Context->mailbox->hdrs[i], delete, decode,
+ decrypt, savectx->mailbox);
if (rc != 0)
break;
#ifdef USE_COMPRESSED
continue;
new = mutt_mem_calloc(1, sizeof(struct AttachPtr));
- new->content =
- mutt_make_message_attach(Context->mailbox, Context->mailbox->hdrs[i], true);
+ new->content = mutt_make_message_attach(Context->mailbox,
+ Context->mailbox->hdrs[i], true);
if (new->content)
update_idx(menu, actx, new);
else
r = -1;
#ifdef USE_NOTMUCH
- if (msg->committed_path && dest->magic == MUTT_MAILDIR &&
- src->magic == MUTT_NOTMUCH)
+ if (msg->committed_path && dest->magic == MUTT_MAILDIR && src->magic == MUTT_NOTMUCH)
nm_update_filename(src, NULL, msg->committed_path, e);
#endif
}
const int chflags =
- CH_NOLEN |
- ((m->magic == MUTT_MBOX || m->magic == MUTT_MMDF) ? 0 : CH_NOSTATUS);
+ CH_NOLEN | ((m->magic == MUTT_MBOX || m->magic == MUTT_MMDF) ? 0 : CH_NOSTATUS);
rc = mutt_append_message(tmpctx->mailbox, m, cur, 0, chflags);
oerrno = errno;
#include <unistd.h>
#include "mutt/mutt.h"
#include "email/lib.h"
-#include "context.h"
#include "mutt.h"
#include "hook.h"
#include "alias.h"
+#include "context.h"
#include "globals.h"
#include "hdrline.h"
#include "mutt_attach.h"
mdata->check_status = IMAP_EXPUNGE_PENDING;
if (mdata->reopen & IMAP_EXPUNGE_PENDING)
- mdata->reopen &= ~(IMAP_EXPUNGE_PENDING | IMAP_NEWMAIL_PENDING | IMAP_EXPUNGE_EXPECTED);
+ mdata->reopen &=
+ ~(IMAP_EXPUNGE_PENDING | IMAP_NEWMAIL_PENDING | IMAP_EXPUNGE_EXPECTED);
}
adata->status = 0;
if (!mutt_bit_isset(adata->mailbox->rights, right))
return 0;
- if (right == MUTT_ACL_WRITE &&
- !imap_has_flag(&imap_mdata_get(adata->mailbox)->flags, name))
+ if (right == MUTT_ACL_WRITE && !imap_has_flag(&imap_mdata_get(adata->mailbox)->flags, name))
return 0;
snprintf(buf, sizeof(buf), "+FLAGS.SILENT (%s)", name);
/* after all this it's still possible to have no flags, if you
* have no ACL rights */
- if (*flags && (imap_exec(adata, cmd->data, 0) != IMAP_EXEC_SUCCESS) && err_continue &&
- (*err_continue != MUTT_YES))
+ if (*flags && (imap_exec(adata, cmd->data, 0) != IMAP_EXEC_SUCCESS) &&
+ err_continue && (*err_continue != MUTT_YES))
{
*err_continue = imap_continue("imap_sync_message: STORE failed", adata->buf);
if (*err_continue != MUTT_YES)
mdata->munge_name, uid_validity_flag);
int rc = imap_exec(adata, command, queue ? IMAP_CMD_QUEUE : 0 | IMAP_CMD_POLL);
- if (rc < 0 )
+ if (rc < 0)
{
mutt_debug(1, "Error queueing command\n");
return rc;
/* pipeline the postponed count if possible */
struct Mailbox *postponed_m = mx_mbox_find2(Postponed);
struct ImapAccountData *postponed_adata = imap_adata_get(postponed_m);
- if (postponed_adata && mutt_account_match(&postponed_adata->conn_account,
- &adata->conn_account))
+ if (postponed_adata &&
+ mutt_account_match(&postponed_adata->conn_account, &adata->conn_account))
imap_mailbox_status(postponed_m, true);
if (ImapCheckSubscribed)
/* This is redundant with the following two checks. Removing:
* mutt_set_flag (adata->ctx, e, MUTT_NEW, !(edata->read || edata->old));
*/
- set_changed_flag(m, e, local_changes, server_changes, MUTT_OLD,
- old_edata.old, edata->old, e->old);
+ set_changed_flag(m, e, local_changes, server_changes, MUTT_OLD, old_edata.old,
+ edata->old, e->old);
set_changed_flag(m, e, local_changes, server_changes, MUTT_READ,
old_edata.read, edata->read, e->read);
set_changed_flag(m, e, local_changes, server_changes, MUTT_DELETE,
ctx->vsize = 0;
}
- if (mutt_pattern_exec(ctx->limit_pattern, MUTT_MATCH_FULL_ADDRESS, ctx->mailbox,
- ctx->mailbox->hdrs[i], NULL))
+ if (mutt_pattern_exec(ctx->limit_pattern, MUTT_MATCH_FULL_ADDRESS,
+ ctx->mailbox, ctx->mailbox->hdrs[i], NULL))
{
assert(ctx->mailbox->vcount < ctx->mailbox->msg_count);
ctx->mailbox->hdrs[i]->virtual = ctx->mailbox->vcount;
{
char msgbuf[STRING];
snprintf(msgbuf, sizeof(msgbuf), _("Update tags..."));
- mutt_progress_init(&progress, msgbuf, MUTT_PROGRESS_MSG, 1, Context->mailbox->msg_tagged);
+ mutt_progress_init(&progress, msgbuf, MUTT_PROGRESS_MSG, 1,
+ Context->mailbox->msg_tagged);
}
#ifdef USE_NOTMUCH
break;
case OP_MAIN_WINDOWED_VFOLDER_FORWARD:
- CHECK_IN_MAILBOX;
+ CHECK_IN_MAILBOX;
if (NmQueryWindowDuration <= 0)
{
mutt_message(_("Windowed queries disabled"));
{
if (message_is_tagged(Context, j))
{
- mutt_set_flag(Context->mailbox, Context->mailbox->hdrs[j], MUTT_FLAG,
- !Context->mailbox->hdrs[j]->flagged);
+ mutt_set_flag(Context->mailbox, Context->mailbox->hdrs[j],
+ MUTT_FLAG, !Context->mailbox->hdrs[j]->flagged);
}
}
*/
static int mh_msg_open_new(struct Mailbox *m, struct Message *msg, struct Email *e)
{
- if (!m|| !msg)
+ if (!m || !msg)
return -1;
return mh_mkstemp(m, &msg->fp, &msg->path);
}
STAILQ_FOREACH(np, color, entries)
{
- if (mutt_pattern_exec(np->color_pattern, MUTT_MATCH_FULL_ADDRESS, Context->mailbox, e, NULL))
+ if (mutt_pattern_exec(np->color_pattern, MUTT_MATCH_FULL_ADDRESS,
+ Context->mailbox, e, NULL))
return np->pair;
}
* @retval 0 a and b are identical
* @retval 1 b precedes a
*/
-int mutt_file_stat_timespec_compare(struct stat *sba, enum MuttStatType type, struct timespec *b)
+int mutt_file_stat_timespec_compare(struct stat *sba, enum MuttStatType type,
+ struct timespec *b)
{
struct timespec a = { 0 };
* @retval 1 b precedes a
*/
int mutt_file_stat_compare(struct stat *sba, enum MuttStatType sba_type,
- struct stat *sbb, enum MuttStatType sbb_type)
+ struct stat *sbb, enum MuttStatType sbb_type)
{
struct timespec a = { 0 };
struct timespec b = { 0 };
mutt_file_get_stat_timespec(&b, sbb, sbb_type);
return mutt_file_timespec_compare(&a, &b);
}
-
if (((WithCrypto & APPLICATION_PGP) != 0) && (ei->security & APPLICATION_PGP))
{
- mutt_copy_message_ctx(fpout, Context->mailbox, ei, MUTT_CM_DECODE | MUTT_CM_CHARCONV, 0);
+ mutt_copy_message_ctx(fpout, Context->mailbox, ei,
+ MUTT_CM_DECODE | MUTT_CM_CHARCONV, 0);
fflush(fpout);
mutt_endwin();
{
if (((WithCrypto & APPLICATION_PGP) != 0) && (e->security & APPLICATION_PGP))
{
- mutt_copy_message_ctx(fpout, Context->mailbox, e, MUTT_CM_DECODE | MUTT_CM_CHARCONV, 0);
+ mutt_copy_message_ctx(fpout, Context->mailbox, e,
+ MUTT_CM_DECODE | MUTT_CM_CHARCONV, 0);
fflush(fpout);
mutt_endwin();
puts(_("Trying to extract PGP keys...\n"));
if (up && (a = match_threadcomplete(pat, flags, m, t->parent, 1, 1, 1, 0)))
return a;
- if (right && t->parent &&
- (a = match_threadcomplete(pat, flags, m, t->next, 0, 0, 1, 1)))
+ if (right && t->parent && (a = match_threadcomplete(pat, flags, m, t->next, 0, 0, 1, 1)))
{
return a;
}
- if (left && t->parent &&
- (a = match_threadcomplete(pat, flags, m, t->prev, 1, 0, 0, 1)))
+ if (left && t->parent && (a = match_threadcomplete(pat, flags, m, t->prev, 1, 0, 0, 1)))
{
return a;
}
* @retval 1 Success, pattern matched
* @retval 0 Pattern did not match
*/
-static int match_mime_content_type(const struct Pattern *pat,
- struct Mailbox *m, struct Email *e)
+static int match_mime_content_type(const struct Pattern *pat, struct Mailbox *m,
+ struct Email *e)
{
mutt_parse_mime_message(m, e);
return match_content_type(pat, e->content);
switch (op)
{
case MUTT_UNDELETE:
- mutt_set_flag(Context->mailbox, Context->mailbox->hdrs[Context->mailbox->v2r[i]],
+ mutt_set_flag(Context->mailbox,
+ Context->mailbox->hdrs[Context->mailbox->v2r[i]],
MUTT_PURGE, 0);
/* fallthrough */
case MUTT_DELETE:
- mutt_set_flag(Context->mailbox, Context->mailbox->hdrs[Context->mailbox->v2r[i]],
+ mutt_set_flag(Context->mailbox,
+ Context->mailbox->hdrs[Context->mailbox->v2r[i]],
MUTT_DELETE, (op == MUTT_DELETE));
break;
case MUTT_TAG:
case MUTT_UNTAG:
- mutt_set_flag(Context->mailbox, Context->mailbox->hdrs[Context->mailbox->v2r[i]],
+ mutt_set_flag(Context->mailbox,
+ Context->mailbox->hdrs[Context->mailbox->v2r[i]],
MUTT_TAG, (op == MUTT_TAG));
break;
}
{
/* remember that we've already searched this message */
e->searched = true;
- e->matched =
- mutt_pattern_exec(SearchPattern, MUTT_MATCH_FULL_ADDRESS, Context->mailbox, e, NULL);
+ e->matched = mutt_pattern_exec(SearchPattern, MUTT_MATCH_FULL_ADDRESS,
+ Context->mailbox, e, NULL);
if (e->matched > 0)
{
mutt_clear_error();
#include "config/lib.h"
#include "email/lib.h"
#include "mutt.h"
-#include "context.h"
#include "alias.h"
+#include "context.h"
#include "copy.h"
#include "curs_lib.h"
#include "globals.h"
{
if (cur && ctx)
mutt_set_flag(ctx->mailbox, cur, MUTT_REPLIED, is_reply(cur, msg));
- else if (!(flags & SEND_POSTPONED) && ctx && ctx->mailbox &&
- ctx->mailbox->msg_tagged)
+ else if (!(flags & SEND_POSTPONED) && ctx && ctx->mailbox && ctx->mailbox->msg_tagged)
{
for (i = 0; i < ctx->mailbox->msg_count; i++)
{
* even when they aren't needed.
*/
- if ((mutt_str_strcasecmp(np->attribute, "boundary") == 0) &&
- (strcmp(buf, tmp) == 0))
+ if ((mutt_str_strcasecmp(np->attribute, "boundary") == 0) && (strcmp(buf, tmp) == 0))
{
snprintf(buf, sizeof(buf), "\"%s\"", tmp);
}