BreakBeforeBraces: Allman
IncludeCategories:
- - Regex: '"config.h"'
+ - Regex: '"config\.h"'
Priority: -10
- - Regex: '<stddef.h>'
- Priority: -5
+ - Regex: '<stddef\.h>'
+ Priority: -8
- Regex: '<.*>'
+ Priority: -7
+ - Regex: '".*_private\.h"'
+ Priority: -6
+ - Regex: '"lib/.*\.h"'
Priority: -4
- - Regex: '".*_private.h"'
- Priority: -3
- - Regex: '"mutt.h"'
+ - Regex: '"mutt\.h"'
Priority: -2
# Main Header 0
- Regex: '".*"'
#include "config.h"
#include <stdio.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "account.h"
#include "globals.h"
-#include "lib/lib.h"
#include "options.h"
#include "protos.h"
#include "url.h"
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
+#include "lib/lib.h"
+#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "format_flags.h"
#include "globals.h"
#include "keymap.h"
-#include "lib/lib.h"
-#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "opcodes.h"
static void alias_entry(char *s, size_t slen, struct Menu *m, int num)
{
mutt_expando_format(s, slen, 0, MuttIndexWindow->cols, NONULL(AliasFormat), alias_format_str,
- (unsigned long) ((struct Alias **) m->data)[num],
- MUTT_FORMAT_ARROWCURSOR);
+ (unsigned long) ((struct Alias **) m->data)[num],
+ MUTT_FORMAT_ARROWCURSOR);
}
static int alias_tag(struct Menu *menu, int n, int m)
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include "lib/lib.h"
#include "mutt.h"
-#include "alias.h"
#include "address.h"
+#include "alias.h"
#include "charset.h"
#include "envelope.h"
#include "globals.h"
-#include "lib/lib.h"
#include "list.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
}
if (string_is_address(addr->mailbox, Username, ShortHostname))
{
- mutt_debug(5, "mutt_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox, Username, ShortHostname);
+ mutt_debug(5, "mutt_addr_is_user: yes, %s = %s @ %s \n", addr->mailbox,
+ Username, ShortHostname);
return true;
}
fqdn = mutt_fqdn(0);
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "attach.h"
#include "body.h"
#include "filter.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
mutt_any_key_to_continue(NULL);
rc = 1;
}
-bail0:
+ bail0:
safe_fclose(&ifp);
safe_fclose(&fpout);
mutt_unlink(newfile);
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "bcache.h"
#include "account.h"
#include "globals.h"
-#include "lib/lib.h"
#include "protos.h"
#include "url.h"
#include <limits.h>
#include <string.h>
#include <unistd.h>
+#include "lib/debug.h"
+#include "lib/memory.h"
+#include "lib/string2.h"
#include "body.h"
#include "header.h"
#include "mime.h"
#include "parameter.h"
#include "protos.h"
-#include "lib/debug.h"
-#include "lib/memory.h"
-#include "lib/string2.h"
struct Body *mutt_new_body(void)
{
*p = 0;
}
-
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
-#include "browser.h"
#include "account.h"
#include "attach.h"
#include "body.h"
+#include "browser.h"
#include "buffy.h"
#include "charset.h"
#include "context.h"
#include "format_flags.h"
#include "globals.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mbyte.h"
#include "mutt_curses.h"
{
if (folder->ff->nd->unread != 0)
mutt_expando_format(dest, destlen, col, cols, ifstring,
- newsgroup_format_str, data, flags);
+ newsgroup_format_str, data, flags);
else
mutt_expando_format(dest, destlen, col, cols, elsestring,
- newsgroup_format_str, data, flags);
+ newsgroup_format_str, data, flags);
}
else if (Context && Context->data == folder->ff->nd)
{
#ifdef USE_NNTP
if (option(OPT_NEWS))
- mutt_expando_format(s, slen, 0, MuttIndexWindow->cols, NONULL(GroupIndexFormat), newsgroup_format_str,
- (unsigned long) &folder, MUTT_FORMAT_ARROWCURSOR);
+ mutt_expando_format(s, slen, 0, MuttIndexWindow->cols,
+ NONULL(GroupIndexFormat), newsgroup_format_str,
+ (unsigned long) &folder, MUTT_FORMAT_ARROWCURSOR);
else
#endif
mutt_expando_format(s, slen, 0, MuttIndexWindow->cols, NONULL(FolderFormat),
- folder_format_str, (unsigned long) &folder, MUTT_FORMAT_ARROWCURSOR);
+ folder_format_str, (unsigned long) &folder, MUTT_FORMAT_ARROWCURSOR);
}
#ifdef USE_NOTMUCH
folder.num = num;
mutt_expando_format(s, slen, 0, MuttIndexWindow->cols, NONULL(VfolderFormat),
- folder_format_str, (unsigned long) &folder, MUTT_FORMAT_ARROWCURSOR);
+ folder_format_str, (unsigned long) &folder, MUTT_FORMAT_ARROWCURSOR);
}
#endif
#ifdef USE_NNTP
option(OPT_NEWS) ? FolderNewsHelp :
#endif
- FolderHelp);
+ FolderHelp);
mutt_push_current_menu(menu);
init_menu(&state, menu, title, sizeof(title), buffy);
#include <string.h>
#include <sys/stat.h>
#include <utime.h>
+#include "lib/lib.h"
+#include "mutt.h"
#include "buffy.h"
#include "context.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mailbox.h"
-#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mx.h"
#include <limits.h>
#include <stdio.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "charset.h"
#include "globals.h"
-#include "lib/lib.h"
#include "protos.h"
#ifndef EILSEQ
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "context.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mutt_regex.h"
{
s += 5;
*col = strtol(s, &eptr, 10);
- if (!*s || *eptr || *col < 0 || (*col >= COLORS && !option(OPT_NO_CURSES) && has_colors()))
+ if (!*s || *eptr || *col < 0 ||
+ (*col >= COLORS && !option(OPT_NO_CURSES) && has_colors()))
{
snprintf(err->data, err->dsize, _("%s: color not supported by term"), s);
return -1;
#ifdef HAVE_USE_DEFAULT_COLORS
if (!option(OPT_NO_CURSES) && has_colors()
/* delay use_default_colors() until needed, since it initializes things */
- && (fg == COLOR_DEFAULT || bg == COLOR_DEFAULT || object == MT_COLOR_TREE)
- && use_default_colors() != OK)
- /* the case of the tree object is special, because a non-default
+ && (fg == COLOR_DEFAULT || bg == COLOR_DEFAULT || object == MT_COLOR_TREE) &&
+ use_default_colors() != OK)
+ /* the case of the tree object is special, because a non-default
* fg color of the tree element may be combined dynamically with
* the default bg color of an index line, not necessarily defined in
* a rc file.
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "alias.h"
#include "body.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mime.h"
#include "mutt_curses.h"
snprintf(tmp, sizeof(tmp), "%s/%s", TYPE(b), NONULL(b->subtype));
type_changed = mutt_strcasecmp(tmp, obuf);
- charset_changed =
- mutt_strcasecmp(charset, mutt_get_parameter("charset", b->parameter));
+ charset_changed = mutt_strcasecmp(charset, mutt_get_parameter("charset", b->parameter));
/* if in send mode, check for conversion - current setting is default. */
#include <limits.h>
#include <string.h>
#include <sys/stat.h>
-#include "globals.h"
#include "lib/lib.h"
+#include "globals.h"
#include "options.h"
#include "protos.h"
#ifdef USE_IMAP
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "alias.h"
#include "attach.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
static void compose_status_line(char *buf, size_t buflen, size_t col, int cols,
struct Menu *menu, const char *p)
{
- mutt_expando_format(buf, buflen, col, cols, p, compose_format_str, (unsigned long) menu, 0);
+ mutt_expando_format(buf, buflen, col, cols, p, compose_format_str,
+ (unsigned long) menu, 0);
}
/**
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "compress.h"
#include "context.h"
#include "format_flags.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mutt_curses.h"
#include "mx.h"
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "copy.h"
#include "address.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
#include <termios.h>
#include <unistd.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "enter_state.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
va_list ap;
int rv;
- if ((rv = mutt_window_move (win, row, col)) != ERR)
+ if ((rv = mutt_window_move(win, row, col)) != ERR)
{
va_start(ap, fmt);
rv = vw_printw(stdscr, fmt, ap);
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "alias.h"
#include "body.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mutt_curses.h"
}
#define CHECK_ATTACH \
- if (option(OPT_ATTACH_MSG)) \
+ if (option(OPT_ATTACH_MSG)) \
{ \
mutt_flushinp(); \
mutt_error(_(Function_not_permitted_in_attach_message_mode)); \
#define FLAGGED(h) mutt_thread_contains_flagged(Context, h)
#define CAN_COLLAPSE(header) \
- ((option(OPT_COLLAPSE_UNREAD) || !UNREAD(header)) && \
+ ((option(OPT_COLLAPSE_UNREAD) || !UNREAD(header)) && \
(option(OPT_COLLAPSE_FLAGGED) || !FLAGGED(header)))
/* de facto standard escapes for tsl/fsl */
menu->current = mutt_thread_next_unread(Context, CURHDR);
}
- if (option(OPT_PGP_AUTO_DECODE) && (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
+ if (option(OPT_PGP_AUTO_DECODE) &&
+ (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
int hint = Context->hdrs[Context->v2r[menu->current]]->index;
/* L10N: CHECK_ACL */
CHECK_ACL(MUTT_ACL_INSERT, _("Cannot edit message"));
- if (option(OPT_PGP_AUTO_DECODE) && (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
+ if (option(OPT_PGP_AUTO_DECODE) &&
+ (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
mutt_edit_message(Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
CHECK_ATTACH;
- if (option(OPT_PGP_AUTO_DECODE) && (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
+ if (option(OPT_PGP_AUTO_DECODE) &&
+ (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
ci_send_message(SENDFORWARD, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
CHECK_ATTACH;
- if (option(OPT_PGP_AUTO_DECODE) && (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
+ if (option(OPT_PGP_AUTO_DECODE) &&
+ (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
ci_send_message(SENDREPLY | SENDGROUPREPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
CHECK_ATTACH;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
- if (option(OPT_PGP_AUTO_DECODE) && (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
+ if (option(OPT_PGP_AUTO_DECODE) &&
+ (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
ci_send_message(SENDREPLY | SENDLISTREPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
CHECK_ATTACH;
CHECK_MSGCOUNT;
CHECK_VISIBLE;
- if (option(OPT_PGP_AUTO_DECODE) && (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
+ if (option(OPT_PGP_AUTO_DECODE) &&
+ (tag || !(CURHDR->security & PGP_TRADITIONAL_CHECKED)))
mutt_check_traditional_pgp(tag ? NULL : CURHDR, &menu->redraw);
ci_send_message(SENDREPLY, NULL, NULL, Context, tag ? NULL : CURHDR);
menu->redraw = REDRAW_FULL;
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "alias.h"
#include "body.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
#include "options.h"
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "context.h"
#include "copy.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mx.h"
#include "options.h"
#include <string.h>
#include <wchar.h>
#include <wctype.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "enter_state.h"
#include "globals.h"
#include "history.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "opcodes.h"
*/
#include "config.h"
-#include "envelope.h"
#include <stddef.h>
#include "lib/buffer.h"
#include "lib/memory.h"
+#include "envelope.h"
#include "queue.h"
#include "rfc822.h"
#define MOVE_STAILQ(h) \
if (STAILQ_EMPTY(&base->h)) \
{ \
- STAILQ_SWAP(&base->h, &((*extra))->h, ListNode); \
+ STAILQ_SWAP(&base->h, &((*extra))->h, ListNode); \
}
MOVE_ELEM(return_path);
mutt_free_envelope(extra);
}
-
#include "config.h"
#include <stddef.h>
#include <stdbool.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "context.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mx.h"
update = true;
h->old = false;
if (upd_ctx)
- ctx->new++;
+ ctx->new ++;
if (h->read)
{
h->read = false;
update = true;
if (!h->old)
if (upd_ctx)
- ctx->new--;
+ ctx->new --;
h->read = true;
if (upd_ctx)
ctx->unread--;
h->old = true;
if (!h->read)
if (upd_ctx)
- ctx->new--;
+ ctx->new --;
h->changed = true;
if (upd_ctx)
ctx->changed = true;
h->old = false;
if (!h->read)
if (upd_ctx)
- ctx->new++;
+ ctx->new ++;
h->changed = true;
if (upd_ctx)
ctx->changed = true;
ctx->unread--;
if (!h->old)
if (upd_ctx)
- ctx->new--;
+ ctx->new --;
h->changed = true;
if (upd_ctx)
ctx->changed = true;
ctx->unread++;
if (!h->old)
if (upd_ctx)
- ctx->new++;
+ ctx->new ++;
h->changed = true;
if (upd_ctx)
ctx->changed = true;
ctx->unread--;
if (!h->old)
if (upd_ctx)
- ctx->new--;
+ ctx->new --;
}
h->changed = true;
if (upd_ctx)
#include <stdio.h>
#include <string.h>
#include <time.h>
-#include "globals.h"
#include "lib/lib.h"
+#include "globals.h"
#include "protos.h"
/*
#include "config.h"
#include <stdlib.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "group.h"
#include "address.h"
#include "globals.h"
-#include "lib/lib.h"
#include "list.h"
#include "protos.h"
#include "rfc822.h"
}
int mutt_group_context_add_regex(struct GroupContext *ctx, const char *s,
- int flags, struct Buffer *err)
+ int flags, struct Buffer *err)
{
int rv = 0;
#include <unistd.h>
#include <wchar.h>
#include <wctype.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "body.h"
#include "charset.h"
#include "filter.h"
#include "globals.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mime.h"
#include "mutt_curses.h"
NONULL(p->subtype));
}
- if ((s->flags & MUTT_REPLYING) && (option(OPT_INCLUDE_ONLYFIRST)) && (s->flags & MUTT_FIRSTDONE))
+ if ((s->flags & MUTT_REPLYING) && (option(OPT_INCLUDE_ONLYFIRST)) &&
+ (s->flags & MUTT_FIRSTDONE))
break;
}
}
}
-bail:
+ bail:
safe_fclose(&fpout);
safe_fclose(&fperr);
/* only respect disposition == attachment if we're not
displaying from the attachment menu (i.e. pager) */
- if ((!option(OPT_HONOR_DISPOSITION) || (b->disposition != DISPATTACH || option(OPT_VIEW_ATTACH))) &&
+ if ((!option(OPT_HONOR_DISPOSITION) ||
+ (b->disposition != DISPATTACH || option(OPT_VIEW_ATTACH))) &&
(plaintext || handler))
{
rc = run_decode_and_handler(b, s, handler, plaintext);
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "backend.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mx.h"
/**
#include "config.h"
#include <stddef.h>
#include <gdbm.h>
+#include "lib/lib.h"
#include "backend.h"
#include "globals.h"
-#include "lib/lib.h"
static void *hcache_gdbm_open(const char *path)
{
#include <sys/stat.h>
#include <sys/time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "address.h"
#include "backend.h"
#include "body.h"
#include "hcache.h"
#include "hcversion.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mbyte.h"
#include "mutt_regex.h"
}
}
-
static unsigned char *dump_buffer(struct Buffer *b, unsigned char *d, int *off, int convert)
{
if (!b)
#include <kclangc.h>
#include <limits.h>
#include <stdio.h>
-#include "backend.h"
#include "lib/lib.h"
+#include "backend.h"
#include "options.h"
static void *hcache_kyotocabinet_open(const char *path)
#include "config.h"
#include <stddef.h>
#include <lmdb.h>
-#include "backend.h"
#include "lib/lib.h"
+#include "backend.h"
/** The maximum size of the database file (2GiB).
* The file is mmap(2)'d into memory. */
#include <stddef.h>
#include <depot.h>
#include <villa.h>
-#include "backend.h"
#include "lib/lib.h"
+#include "backend.h"
#include "options.h"
static void *hcache_qdbm_open(const char *path)
#include <stddef.h>
#include <tcbdb.h>
#include <tcutil.h>
-#include "backend.h"
#include "lib/lib.h"
+#include "backend.h"
#include "options.h"
static void *hcache_tokyocabinet_open(const char *path)
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "body.h"
#include "format_flags.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mbtable.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
if (optional)
mutt_expando_format(dest, destlen, col, cols, ifstring, hdr_format_str,
- (unsigned long) hfi, flags);
+ (unsigned long) hfi, flags);
else if (flags & MUTT_FORMAT_OPTIONAL)
mutt_expando_format(dest, destlen, col, cols, elsestring, hdr_format_str,
- (unsigned long) hfi, flags);
+ (unsigned long) hfi, flags);
return src;
#undef THREAD_NEW
hfi.ctx = ctx;
hfi.pager_progress = 0;
- mutt_expando_format(dest, destlen, 0, MuttIndexWindow->cols, s, hdr_format_str,
- (unsigned long) &hfi, flags);
+ mutt_expando_format(dest, destlen, 0, MuttIndexWindow->cols, s,
+ hdr_format_str, (unsigned long) &hfi, flags);
}
void mutt_make_string_info(char *dst, size_t dstlen, int cols, const char *s,
#include <stdio.h>
#include <sys/stat.h>
#include <time.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "alias.h"
#include "body.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mutt_idna.h"
#include "ncrypt/ncrypt.h"
}
keep = false;
}
- else if ((WithCrypto & APPLICATION_PGP) &&
- (mutt_strncasecmp("pgp:", np->data, 4) == 0))
+ else if ((WithCrypto & APPLICATION_PGP) && (mutt_strncasecmp("pgp:", np->data, 4) == 0))
{
msg->security = mutt_parse_crypt_hdr(np->data + 4, 0, APPLICATION_PGP);
if (msg->security)
#include <stdio.h>
#include <string.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "globals.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "opcodes.h"
#define DEFINE_HELP_MESSAGE(opcode, help_string) help_string,
OPS(DEFINE_HELP_MESSAGE)
#undef DEFINE_HELP_MESSAGE
- NULL,
+ NULL,
};
static const struct Binding *help_lookup_function(int op, int menu)
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "history.h"
#include "charset.h"
#include "globals.h"
-#include "lib/lib.h"
#include "protos.h"
/* This history ring grows from 0..History, with last marking the
if (hclass >= HC_LAST)
continue;
*p = '\0';
- if (option(OPT_HISTORY_REMOVE_DUPS) && (dup_hash_inc(dup_hashes[hclass], linebuf + read) > 1))
+ if (option(OPT_HISTORY_REMOVE_DUPS) &&
+ (dup_hash_inc(dup_hashes[hclass], linebuf + read) > 1))
{
regen_file = true;
continue;
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "context.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
-#include "mutt.h"
#include "mutt_regex.h"
#include "ncrypt/ncrypt.h"
#include "options.h"
continue;
if (hook->type & type)
- if ((mutt_pattern_exec(hook->pattern, 0, ctx, hdr, &cache) > 0) ^ hook->regex.not)
+ if ((mutt_pattern_exec(hook->pattern, 0, ctx, hdr, &cache) > 0) ^
+ hook->regex.not)
{
if (mutt_parse_rc_line(hook->command, &token, &err) == -1)
{
continue;
if (hook->type & type)
- if ((mutt_pattern_exec(hook->pattern, 0, ctx, hdr, &cache) > 0) ^ hook->regex.not)
+ if ((mutt_pattern_exec(hook->pattern, 0, ctx, hdr, &cache) > 0) ^
+ hook->regex.not)
{
mutt_make_string(path, pathlen, hook->command, ctx, hdr);
return 0;
TAILQ_FOREACH(tmp, &Hooks, entries)
{
- if ((tmp->type & hook) &&
- ((match && regexec(tmp->regex.regex, match, 0, NULL, 0) == 0) ^ tmp->regex.not))
+ if ((tmp->type & hook) && ((match && regexec(tmp->regex.regex, match, 0, NULL, 0) == 0) ^
+ tmp->regex.not))
return tmp->command;
}
return NULL;
TAILQ_FOREACH(tmp, &Hooks, entries)
{
- if ((tmp->type & hook) &&
- ((match && regexec(tmp->regex.regex, match, 0, NULL, 0) == 0) ^ tmp->regex.not))
+ if ((tmp->type & hook) && ((match && regexec(tmp->regex.regex, match, 0, NULL, 0) == 0) ^
+ tmp->regex.not))
mutt_list_insert_tail(matches, safe_strdup(tmp->command));
}
}
#include "config.h"
#include <string.h>
+#include "lib/lib.h"
#include "auth.h"
#include "globals.h"
-#include "lib/lib.h"
#include "protos.h"
static const struct ImapAuth imap_authenticators[] = {
#include "config.h"
#include "imap_private.h"
+#include "lib/lib.h"
#include "account.h"
#include "auth.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_socket.h"
#include "options.h"
#include "protos.h"
#include <stdio.h>
#include <string.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "account.h"
#include "auth.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_socket.h"
#include "options.h"
#include "protos.h"
#include <stdio.h>
#include <string.h>
#include "imap_private.h"
+#include "lib/lib.h"
+#include "mutt.h"
#include "account.h"
#include "auth.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_socket.h"
#include "options.h"
#include "protos.h"
-#include "mutt.h"
#ifdef HAVE_HEIMDAL
#include <gssapi/gssapi.h>
#define gss_nt_service_name GSS_C_NT_HOSTBASED_SERVICE
#include "config.h"
#include <stdio.h>
#include "imap_private.h"
+#include "lib/lib.h"
+#include "mutt.h"
#include "account.h"
#include "auth.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_socket.h"
#include "options.h"
#include "protos.h"
-#include "mutt.h"
/**
* imap_auth_login - Plain LOGIN support
#include "config.h"
#include "imap_private.h"
+#include "lib/lib.h"
#include "account.h"
#include "auth.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_sasl_plain.h"
#include "mutt_socket.h"
#include "protos.h"
#include <stdio.h>
#include <string.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "account.h"
#include "auth.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_sasl.h"
#include "mutt_socket.h"
#include "options.h"
#include <stdio.h>
#include <string.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "mutt.h"
#include "account.h"
#include "browser.h"
#include "context.h"
#include "globals.h"
#include "imap/imap.h"
-#include "lib/lib.h"
#include "mutt_regex.h"
#include "options.h"
#include "protos.h"
#include <string.h>
#include <time.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "account.h"
#include "buffy.h"
#include "context.h"
#include "globals.h"
#include "header.h"
#include "imap/imap.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "message.h"
#include "mutt_menu.h"
#include <time.h>
#include <unistd.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "mutt.h"
#include "imap.h"
#include "account.h"
#include "globals.h"
#include "header.h"
#include "imap/imap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "message.h"
{
struct ImapStatus *scache = safe_calloc(1, sizeof(struct ImapStatus));
scache->name = (char *) mbox;
- mutt_list_insert_tail(&idata->mboxcache, (char *)scache);
+ mutt_list_insert_tail(&idata->mboxcache, (char *) scache);
status = imap_mboxcache_get(idata, mbox, 0);
status->name = safe_strdup(mbox);
}
list[0] = '\0';
/* fire off command */
- snprintf(buf, sizeof(buf), "%s \"\" \"%s%%\"", option(OPT_IMAP_LIST_SUBSCRIBED) ? "LSUB" : "LIST", list);
+ snprintf(buf, sizeof(buf), "%s \"\" \"%s%%\"",
+ option(OPT_IMAP_LIST_SUBSCRIBED) ? "LSUB" : "LIST", list);
imap_cmd_start(idata, buf);
#include <string.h>
#include <unistd.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "mutt.h"
#include "message.h"
#include "account.h"
#include "globals.h"
#include "header.h"
#include "imap/imap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mutt_curses.h"
#include "hcache/hcache.h"
#endif
-static struct ImapHeaderData* imap_new_header_data(void)
+static struct ImapHeaderData *imap_new_header_data(void)
{
- struct ImapHeaderData *d = safe_calloc(1, sizeof(struct ImapHeaderData));
- STAILQ_INIT(&d->keywords);
- return d;
+ struct ImapHeaderData *d = safe_calloc(1, sizeof(struct ImapHeaderData));
+ STAILQ_INIT(&d->keywords);
+ return d;
}
static void imap_update_context(struct ImapData *idata, int oldmsgcount)
#include "config.h"
#include <string.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "charset.h"
#include "globals.h"
-#include "lib/lib.h"
// clang-format off
/* This is very similar to the table in lib/lib_base64.c
#include <time.h>
#include <unistd.h>
#include "imap_private.h"
+#include "lib/lib.h"
#include "mutt.h"
#include "account.h"
#include "bcache.h"
#include "globals.h"
#include "header.h"
#include "imap/imap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "message.h"
mx1 = "INBOX";
if (!mx2 || !*mx2)
mx2 = "INBOX";
- if ((mutt_strcasecmp(mx1, "INBOX") == 0) &&
- (mutt_strcasecmp(mx2, "INBOX") == 0))
+ if ((mutt_strcasecmp(mx1, "INBOX") == 0) && (mutt_strcasecmp(mx2, "INBOX") == 0))
return 0;
b1 = safe_malloc(strlen(mx1) + 1);
#include <sys/utsname.h>
#include <unistd.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "init.h"
#include "address.h"
#include "header.h"
#include "history.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
-#include "mbyte.h"
#include "mbtable.h"
-#include "mutt.h"
+#include "mbyte.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
#include "mutt_menu.h"
{
if (k == (size_t)(-1) || k == (size_t)(-2))
{
- mutt_debug(
- 1, "parse_mbtable: mbrtowc returned %d converting %s in %s\n",
- (k == (size_t)(-1)) ? -1 : -2, s, t->orig_str);
+ mutt_debug(1, "parse_mbtable: mbrtowc returned %d converting %s in %s\n",
+ (k == (size_t)(-1)) ? -1 : -2, s, t->orig_str);
if (k == (size_t)(-1))
memset(&mbstate, 0, sizeof(mbstate));
k = (k == (size_t)(-1)) ? 1 : slen;
return safe_calloc(1, sizeof(struct RegexList));
}
-int mutt_add_to_regex_list(struct RegexList **list, const char *s, int flags, struct Buffer *err)
+int mutt_add_to_regex_list(struct RegexList **list, const char *s, int flags,
+ struct Buffer *err)
{
struct RegexList *t = NULL, *last = NULL;
struct Regex *rx = NULL;
return 0;
}
-static int parse_stailq(struct Buffer *buf, struct Buffer *s, unsigned long data,
- struct Buffer *err)
+static int parse_stailq(struct Buffer *buf, struct Buffer *s,
+ unsigned long data, struct Buffer *err)
{
-
do
{
mutt_extract_token(buf, s, 0);
- add_to_stailq((struct ListHead *)data, buf->data);
+ add_to_stailq((struct ListHead *) data, buf->data);
} while (MoreArgs(s));
return 0;
}
static int parse_unstailq(struct Buffer *buf, struct Buffer *s,
- unsigned long data, struct Buffer *err)
+ unsigned long data, struct Buffer *err)
{
do
{
*/
if (mutt_strcmp(buf->data, "*") == 0)
{
- mutt_list_free((struct ListHead *)data);
+ mutt_list_free((struct ListHead *) data);
break;
}
- remove_from_stailq((struct ListHead *)data, buf->data);
+ remove_from_stailq((struct ListHead *) data, buf->data);
} while (MoreArgs(s));
return 0;
if (data == MUTT_GROUP &&
mutt_group_context_add_regex(gc, buf->data, REG_ICASE, err) != 0)
goto bail;
- else if (data == MUTT_UNGROUP && mutt_group_context_remove_regex(gc, buf->data) < 0)
+ else if (data == MUTT_UNGROUP &&
+ mutt_group_context_remove_regex(gc, buf->data) < 0)
goto bail;
break;
mutt_debug(5, "parse_attach_list: added %s/%s [%d]\n", a->major, a->minor, a->major_int);
- mutt_list_insert_tail(head, (char *)a);
+ mutt_list_insert_tail(head, (char *) a);
} while (MoreArgs(s));
_attachments_clean();
Groups = hash_create(1031, 0);
/* reverse alias keys need to be strdup'ed because of idna conversions */
- ReverseAliases = hash_create(1031, MUTT_HASH_STRCASECMP | MUTT_HASH_STRDUP_KEYS | MUTT_HASH_ALLOW_DUPS);
+ ReverseAliases =
+ hash_create(1031, MUTT_HASH_STRCASECMP | MUTT_HASH_STRDUP_KEYS | MUTT_HASH_ALLOW_DUPS);
#ifdef USE_NOTMUCH
TagTransforms = hash_create(64, 1);
TagFormats = hash_create(64, 0);
** caching will be used.
** .pp
** Header caching can greatly improve speed when opening POP, IMAP
- ** MH or Folder folders, see ``$caching'' for details.
+ ** MH or Maildir folders, see ``$caching'' for details.
*/
{ "header_cache_backend", DT_HCACHE, R_NONE, UL &HeaderCacheBackend, UL 0 },
/*
{ "mark_macro_prefix",DT_STRING, R_NONE, UL &MarkMacroPrefix, UL "'" },
/*
** .pp
- ** IndentString for macros created using mark-message. A new macro
+ ** Prefix for macros created using mark-message. A new macro
** automatically generated with \fI<mark-message>a\fP will be composed
** from this prefix and the letter \fIa\fP.
*/
/*
** .pp
** The default mailbox type used when creating new folders. May be any of
- ** ``mbox'', ``MMDF'', ``MH'' and ``Folder''. This is overridden by the
+ ** ``mbox'', ``MMDF'', ``MH'' and ``Maildir''. This is overridden by the
** \fC-m\fP command-line option.
*/
{ "menu_context", DT_NUMBER, R_NONE, UL &MenuContext, 0 },
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
+#include "mutt.h"
#include "keymap.h"
#include "functions.h"
#include "globals.h"
-#include "lib/lib.h"
-#include "mutt.h"
#include "mutt_curses.h"
#include "ncrypt/ncrypt.h"
#include "opcodes.h"
timeout(-1);
#ifdef USE_IMAP
-gotkey:
+ gotkey:
#endif
/* hide timeouts, but not window resizes, from the line editor. */
if (menu == MENU_EDITOR && tmp.ch == -2 && !SigWinch)
* | mutt_getvaluebyname() | Lookup the constant for a string
*/
-#include "string2.h"
#include "mapping.h"
+#include "string2.h"
/**
* mutt_getnamebyvalue - Lookup a string for a constant
return map[i].value;
return -1;
}
-
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mutt_curses.h"
mutt_endwin(NULL);
}
else if (subject || msg || sendflags || draftFile || includeFile ||
- !STAILQ_EMPTY(&attach) || optind < argc)
+ !STAILQ_EMPTY(&attach) || optind < argc)
{
FILE *fin = NULL;
FILE *fout = NULL;
#include <time.h>
#include <unistd.h>
#include <utime.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "body.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mutt_curses.h"
* When $mbox_check_recent is set, existing new mail is ignored, so do not
* reset the atime to mtime-1 to signal new mail.
*/
- if (!option(OPT_MAIL_CHECK_RECENT) && utimebuf.actime >= utimebuf.modtime && mbox_has_new(ctx))
+ if (!option(OPT_MAIL_CHECK_RECENT) && utimebuf.actime >= utimebuf.modtime &&
+ mbox_has_new(ctx))
utimebuf.actime = utimebuf.modtime - 1;
utime(ctx->path, &utimebuf);
#include <stdbool.h>
#include <string.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "mbyte.h"
#include "charset.h"
-#include "lib/lib.h"
#include "options.h"
#include "protos.h"
#include <stdio.h>
#include <string.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "context.h"
#include "globals.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
print_enriched_string(menu->oldcurrent, old_color, (unsigned char *) buf, 1);
/* now draw the new one to reflect the change */
- cur_color = menu->color (menu->current);
+ cur_color = menu->color(menu->current);
menu_make_entry(buf, sizeof(buf), menu, menu->current);
menu_pad_string(menu, buf, sizeof(buf));
SETCOLOR(MT_COLOR_INDICATOR);
#include <time.h>
#include <unistd.h>
#include <utime.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "body.h"
#include "buffy.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mutt_curses.h"
#include "mx.h"
omask = umask(mh_umask(dest));
while (true)
{
- snprintf(path, _POSIX_PATH_MAX, "%s/tmp/%s.%lld.R%" PRIu64 ".%s%s", dest->path,
- subdir, (long long) time(NULL), mutt_rand64(), NONULL(ShortHostname), suffix);
+ snprintf(path, _POSIX_PATH_MAX, "%s/tmp/%s.%lld.R%" PRIu64 ".%s%s", dest->path, subdir,
+ (long long) time(NULL), mutt_rand64(), NONULL(ShortHostname), suffix);
mutt_debug(2, "maildir_open_new_message (): Trying %s.\n", path);
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt_idna.h"
#include "address.h"
#include "charset.h"
#include "envelope.h"
#include "globals.h"
-#include "lib/lib.h"
#include "options.h"
#ifdef HAVE_LIBIDN
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "mutt_lua.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mbtable.h"
#include "mutt_commands.h"
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "mutt_notmuch.h"
#include "body.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mutt_curses.h"
#include "mx.h"
}
/* if the query has changed, reset the window position */
- if (NmQueryWindowCurrentSearch == NULL ||
- (strcmp(query, NmQueryWindowCurrentSearch) != 0))
+ if (NmQueryWindowCurrentSearch == NULL || (strcmp(query, NmQueryWindowCurrentSearch) != 0))
query_window_reset();
if (!query_window_check_timebase(NmQueryWindowTimebase))
}
if (end == 0)
- snprintf(buf, bufsz, "date:%d%s..now and %s", beg,
- NmQueryWindowTimebase, NmQueryWindowCurrentSearch);
+ snprintf(buf, bufsz, "date:%d%s..now and %s", beg, NmQueryWindowTimebase,
+ NmQueryWindowCurrentSearch);
else
snprintf(buf, bufsz, "date:%d%s..%d%s and %s", beg, NmQueryWindowTimebase,
end, NmQueryWindowTimebase, NmQueryWindowCurrentSearch);
#include <stdio.h>
#include <string.h>
#include <sys/socket.h>
+#include "lib/lib.h"
#include "mutt_sasl.h"
#include "account.h"
-#include "lib/lib.h"
#include "mutt_socket.h"
#include "options.h"
#include "protos.h"
#include "config.h"
#include <stdio.h>
-#include "mutt_sasl_plain.h"
#include "lib/lib.h"
+#include "mutt_sasl_plain.h"
#include "protos.h"
size_t mutt_sasl_plain_msg(char *buf, size_t buflen, const char *cmd,
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "mutt_ssl.h"
#include "account.h"
#include "globals.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mutt_idna.h"
#include "mutt_menu.h"
#include "mutt_socket.h"
* true, then check_certificate_file() must be false. Therefore we don't need
* to also scan the certificate file here.
*/
- allow_always = allow_always && CertificateFile && check_certificate_expiration(cert, true);
+ allow_always =
+ allow_always && CertificateFile && check_certificate_expiration(cert, true);
/* L10N:
* These four letters correspond to the choices in the next four strings:
#include <string.h>
#include <sys/stat.h>
#include <time.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "account.h"
#include "globals.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mutt_menu.h"
#include "mutt_regex.h"
#include "mutt_socket.h"
if (SslCaCertificatesFile)
{
- gnutls_certificate_set_x509_trust_file(data->xcred, SslCaCertificatesFile, GNUTLS_X509_FMT_PEM);
+ gnutls_certificate_set_x509_trust_file(data->xcred, SslCaCertificatesFile,
+ GNUTLS_X509_FMT_PEM);
}
if (SslClientCert)
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "mutt_tunnel.h"
#include "account.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_socket.h"
#include "protos.h"
#include <unistd.h>
#include <utime.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "format_flags.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
-#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_regex.h"
#include "mx.h"
{
#ifdef USE_IMAP
/* if folder = {host} or imap[s]://host/: don't append slash */
- if (mx_is_imap(NONULL(Folder)) && (Folder[strlen(Folder) - 1] == '}' ||
- Folder[strlen(Folder) - 1] == '/'))
+ if (mx_is_imap(NONULL(Folder)) &&
+ (Folder[strlen(Folder) - 1] == '}' || Folder[strlen(Folder) - 1] == '/'))
strfcpy(p, NONULL(Folder), sizeof(p));
else
#endif
const char *src, int line)
{
size_t n = snprintf(s, slen, "%s/%s-%s-%d-%d-%" PRIu64 "%s%s", NONULL(Tmpdir),
- NONULL(prefix), NONULL(ShortHostname), (int) getuid(), (int) getpid(),
- mutt_rand64(), suffix ? "." : "", NONULL(suffix));
+ NONULL(prefix), NONULL(ShortHostname), (int) getuid(),
+ (int) getpid(), mutt_rand64(), suffix ? "." : "", NONULL(suffix));
if (n >= slen)
mutt_debug(1, "%s:%d: ERROR: insufficient buffer space to hold temporary "
"filename! slen=%zu but need %zu\n",
mutt_extract_token(word, srcbuf, 0);
mutt_debug(3, "fmtpipe %2d: %s\n", i++, word->data);
mutt_buffer_addch(command, '\'');
- mutt_expando_format(buf, sizeof(buf), 0, cols, word->data, callback, data,
- flags | MUTT_FORMAT_NOFILTER);
+ mutt_expando_format(buf, sizeof(buf), 0, cols, word->data, callback,
+ data, flags | MUTT_FORMAT_NOFILTER);
for (p = buf; p && *p; p++)
{
if (*p == '\'')
* format pipes does not try to append a nul itself.
*/
mutt_expando_format(dest, destlen + 1, col, cols, recycler,
- callback, data, flags);
+ callback, data, flags);
FREE(&recycler);
}
}
return 0;
}
-
#include <time.h>
#include <unistd.h>
#include <utime.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "mx.h"
#include "address.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "ncrypt/ncrypt.h"
#include "opcodes.h"
if (nntp_data && nntp_data->nserv && nntp_data->group)
{
- int rc = query_quadoption(OPT_CATCHUP_NEWSGROUP, _("Mark all articles read?"));
+ int rc =
+ query_quadoption(OPT_CATCHUP_NEWSGROUP, _("Mark all articles read?"));
if (rc == MUTT_ABORT)
{
ctx->closing = false;
{
ctx->unread++;
if (!ctx->hdrs[j]->old)
- ctx->new++;
+ ctx->new ++;
}
j++;
{
ctx->unread++;
if (!h->old)
- ctx->new++;
+ ctx->new ++;
}
}
}
#include <stdio.h>
#include <string.h>
#include <time.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mime.h"
#include "mutt_curses.h"
#include "ncrypt.h"
return -1;
}
}
- else if (!mutt_strcasecmp ("flowed",
- mutt_get_parameter ("format", msg->content->parameter)))
+ else if (!mutt_strcasecmp("flowed",
+ mutt_get_parameter("format", msg->content->parameter)))
{
- if ((query_quadoption (OPT_PGP_MIME_AUTO,
- _("Inline PGP can't be used with format=flowed. Revert to PGP/MIME?"))) != MUTT_YES)
+ if ((query_quadoption(OPT_PGP_MIME_AUTO,
+ _("Inline PGP can't be used with format=flowed. "
+ "Revert to PGP/MIME?"))) != MUTT_YES)
{
- mutt_error(_("Mail not sent: inline PGP can't be used with format=flowed."));
+ mutt_error(
+ _("Mail not sent: inline PGP can't be used with format=flowed."));
return -1;
}
}
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mime.h"
#include "mutt_curses.h"
static void strlower(char *s)
{
- for (; *s; ++s)
- *s = tolower(*s);
+ for (; *s; ++s)
+ *s = tolower(*s);
}
/**
entry.num = num + 1;
mutt_expando_format(s, l, 0, MuttIndexWindow->cols, NONULL(PgpEntryFormat),
- crypt_entry_fmt, (unsigned long) &entry, MUTT_FORMAT_ARROWCURSOR);
+ crypt_entry_fmt, (unsigned long) &entry, MUTT_FORMAT_ARROWCURSOR);
}
/**
}
}
- if (option(OPT_PGP_CHECK_TRUST) && (!crypt_id_is_valid(key_table[menu->current]) ||
- !crypt_id_is_strong(key_table[menu->current])))
+ if (option(OPT_PGP_CHECK_TRUST) &&
+ (!crypt_id_is_valid(key_table[menu->current]) ||
+ !crypt_id_is_strong(key_table[menu->current])))
{
const char *warn_s = NULL;
char buff[LONG_STRING];
return NULL;
mutt_debug(5, "crypt_getkeybyaddr: looking for %s <%s>.\n",
- a ? a->personal : "", a ? a->mailbox : "");
+ a ? a->personal : "", a ? a->mailbox : "");
for (k = keys; k; k = k->next)
{
*/
#include "config.h"
-#include "crypt_mod.h"
#include "lib/lib.h"
+#include "crypt_mod.h"
/**
* struct CryptModule - A crypto plugin module
#include "config.h"
#include <stdio.h>
+#include "lib/lib.h"
#include "crypt_mod.h"
#include "globals.h"
-#include "lib/lib.h"
#include "ncrypt.h"
#include "options.h"
#include "protos.h"
#include <string.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "charset.h"
#include "filter.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mime.h"
#include "ncrypt.h"
#include "options.h"
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
-#include "pgp.h"
#include "address.h"
#include "body.h"
#include "charset.h"
#include "filter.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mime.h"
#include "mutt_curses.h"
#include "ncrypt.h"
#include "options.h"
#include "parameter.h"
+#include "pgp.h"
#include "pgpinvoke.h"
#include "pgplib.h"
#include "pgpmicalg.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "address.h"
#include "filter.h"
#include "format_flags.h"
#include "globals.h"
-#include "lib/lib.h"
#include "list.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
if (optional)
mutt_expando_format(dest, destlen, col, cols, ifstring, _mutt_fmt_pgp_command, data, 0);
else if (flags & MUTT_FORMAT_OPTIONAL)
- mutt_expando_format(dest, destlen, col, cols, elsestring, _mutt_fmt_pgp_command, data, 0);
+ mutt_expando_format(dest, destlen, col, cols, elsestring,
+ _mutt_fmt_pgp_command, data, 0);
return src;
}
struct PgpCommandContext *cctx, const char *fmt)
{
mutt_expando_format(d, dlen, 0, MuttIndexWindow->cols, NONULL(fmt),
- _mutt_fmt_pgp_command, (unsigned long) cctx, 0);
+ _mutt_fmt_pgp_command, (unsigned long) cctx, 0);
mutt_debug(2, "mutt_pgp_command: %s\n", d);
}
pid_t pgp_invoke_list_keys(FILE **pgpin, FILE **pgpout, FILE **pgperr,
int pgpinfd, int pgpoutfd, int pgperrfd,
- enum PgpRing keyring, struct ListHead *hints)
+ enum PgpRing keyring, struct ListHead *hints)
{
char uids[HUGE_STRING];
char tmpuids[HUGE_STRING];
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "pgpkey.h"
#include "address.h"
#include "globals.h"
#include "gnupgparse.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mime.h"
#include "mutt_curses.h"
entry.num = num + 1;
mutt_expando_format(s, l, 0, MuttIndexWindow->cols, NONULL(PgpEntryFormat),
- pgp_entry_fmt, (unsigned long) &entry, MUTT_FORMAT_ARROWCURSOR);
+ pgp_entry_fmt, (unsigned long) &entry, MUTT_FORMAT_ARROWCURSOR);
}
static int _pgp_compare_address(const void *a, const void *b)
}
if (option(OPT_PGP_CHECK_TRUST) && (!pgp_id_is_valid(KeyTable[menu->current]) ||
- !pgp_id_is_strong(KeyTable[menu->current])))
+ !pgp_id_is_strong(KeyTable[menu->current])))
{
char *str = "";
char buff[LONG_STRING];
#include "config.h"
#include <stdbool.h>
-#include "pgplib.h"
#include "lib/lib.h"
+#include "pgplib.h"
const char *pgp_pkalgbytype(unsigned char type)
{
#include <stdio.h>
#include <string.h>
#include <unistd.h>
-#include "mutt.h"
#include "lib/lib.h"
+#include "mutt.h"
#include "pgppacket.h"
#include "protos.h"
#include "state.h"
#include <string.h>
#include <sys/stat.h>
#include <time.h>
+#include "lib/lib.h"
#include "mutt.h"
-#include "smime.h"
#include "address.h"
#include "alias.h"
#include "body.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mime.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "parameter.h"
#include "protos.h"
#include "rfc822.h"
+#include "smime.h"
#include "state.h"
/**
}
if (optional)
- mutt_expando_format(dest, destlen, col, cols, ifstring, _mutt_fmt_smime_command, data, 0);
+ mutt_expando_format(dest, destlen, col, cols, ifstring,
+ _mutt_fmt_smime_command, data, 0);
else if (flags & MUTT_FORMAT_OPTIONAL)
mutt_expando_format(dest, destlen, col, cols, elsestring,
- _mutt_fmt_smime_command, data, 0);
+ _mutt_fmt_smime_command, data, 0);
return src;
}
struct SmimeCommandContext *cctx, const char *fmt)
{
mutt_expando_format(d, dlen, 0, MuttIndexWindow->cols, NONULL(fmt),
- _mutt_fmt_smime_command, (unsigned long) cctx, 0);
+ _mutt_fmt_smime_command, (unsigned long) cctx, 0);
mutt_debug(2, "smime_command: %s\n", d);
}
const char *fname, const char *uids)
{
return smime_invoke(smimein, smimeout, smimeerr, smimeinfd, smimeoutfd,
- smimeerrfd, fname, NULL, SmimeEncryptWith, NULL, NULL, uids,
- NULL, SmimeEncryptCommand);
+ smimeerrfd, fname, NULL, SmimeEncryptWith, NULL, NULL,
+ uids, NULL, SmimeEncryptCommand);
}
static pid_t smime_invoke_sign(FILE **smimein, FILE **smimeout, FILE **smimeerr, int smimeinfd,
int smimeoutfd, int smimeerrfd, const char *fname)
{
- return smime_invoke(smimein, smimeout, smimeerr, smimeinfd, smimeoutfd,
- smimeerrfd, fname, NULL, NULL, SmimeSignDigestAlg, SmimeKeyToUse,
+ return smime_invoke(smimein, smimeout, smimeerr, smimeinfd, smimeoutfd, smimeerrfd,
+ fname, NULL, NULL, SmimeSignDigestAlg, SmimeKeyToUse,
SmimeCertToUse, SmimeIntermediateToUse, SmimeSignCommand);
}
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "account.h"
#include "bcache.h"
#include "format_flags.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_socket.h"
#include "mx.h"
if (rc >= 0)
{
mutt_expando_format(file, sizeof(file), 0, MuttIndexWindow->cols,
- NONULL(NewsRc), nntp_format_str, (unsigned long) nserv, 0);
+ NONULL(NewsRc), nntp_format_str, (unsigned long) nserv, 0);
mutt_expand_path(file, sizeof(file));
nserv->newsrc_file = safe_strdup(file);
rc = nntp_newsrc_parse(nserv);
#include <limits.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "nntp.h"
#include "account.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mutt_curses.h"
#include "mutt_socket.h"
struct Url url;
strfcpy(buf, ctx->path, sizeof(buf));
- if (url_parse(&url, buf) < 0 || !url.path ||
- !(url.scheme == U_NNTP || url.scheme == U_NNTPS))
+ if (url_parse(&url, buf) < 0 || !url.path || !(url.scheme == U_NNTP || url.scheme == U_NNTPS))
{
mutt_error(_("%s is an invalid newsgroup specification!"), ctx->path);
mutt_sleep(2);
time(&nserv->check_time);
ctx->data = nntp_data;
- if (!nntp_data->bcache &&
- (nntp_data->newsrc_ent || nntp_data->subscribed || option(OPT_SAVE_UNSUBSCRIBED)))
+ if (!nntp_data->bcache && (nntp_data->newsrc_ent || nntp_data->subscribed ||
+ option(OPT_SAVE_UNSUBSCRIBED)))
nntp_data->bcache = mutt_bcache_open(&nserv->conn->account, nntp_data->group);
/* strip off extra articles if adding context is greater than $nntp_context */
#include <sys/stat.h>
#include <unistd.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "mutt.h"
-#include "pager.h"
#include "alias.h"
#include "attach.h"
#include "body.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mbyte.h"
#include "mutt_curses.h"
#include "ncrypt/ncrypt.h"
#include "opcodes.h"
#include "options.h"
+#include "pager.h"
#include "pattern.h"
#include "protos.h"
#include "sort.h"
}
#define CHECK_ATTACH \
- if (option(OPT_ATTACH_MSG)) \
+ if (option(OPT_ATTACH_MSG)) \
{ \
mutt_flushinp(); \
mutt_error(_(Function_not_permitted_in_attach_message_mode)); \
color_line = ColorBodyList;
while (color_line)
{
- if (regexec(&color_line->regex, buf + offset, 1, pmatch, (offset ? REG_NOTBOL : 0)) == 0)
+ if (regexec(&color_line->regex, buf + offset, 1, pmatch,
+ (offset ? REG_NOTBOL : 0)) == 0)
{
if (pmatch[0].rm_eo != pmatch[0].rm_so)
{
null_rx = false;
for (color_line = ColorAttachList; color_line; color_line = color_line->next)
{
- if (regexec(&color_line->regex, buf + offset, 1, pmatch, (offset ? REG_NOTBOL : 0)) == 0)
+ if (regexec(&color_line->regex, buf + offset, 1, pmatch,
+ (offset ? REG_NOTBOL : 0)) == 0)
{
if (pmatch[0].rm_eo != pmatch[0].rm_so)
{
!((struct NntpData *) extra->ctx->data)->allowed && query_quadoption(OPT_POST_MODERATED, _("Posting to this group not allowed, may be moderated. Continue?")) != MUTT_YES)
break;
if (IsMsgAttach(extra))
- mutt_attach_reply(extra->fp, extra->hdr, extra->actx, extra->bdy, SENDNEWS | SENDREPLY);
+ mutt_attach_reply(extra->fp, extra->hdr, extra->actx, extra->bdy,
+ SENDNEWS | SENDREPLY);
else
ci_send_message(SENDNEWS | SENDREPLY, NULL, NULL, extra->ctx, extra->hdr);
pager_menu->redraw = REDRAW_FULL;
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "body.h"
#include "charset.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
#include <unistd.h>
#include <wchar.h>
#include <wctype.h>
+#include "lib/lib.h"
#include "mutt.h"
-#include "pattern.h"
#include "address.h"
#include "body.h"
#include "context.h"
#include "globals.h"
#include "group.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
-#include "mutt.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mutt_regex.h"
#include "ncrypt/ncrypt.h"
#include "opcodes.h"
#include "options.h"
+#include "pattern.h"
#include "protos.h"
#include "state.h"
#include "thread.h"
else
{
pat->p.regex = safe_malloc(sizeof(regex_t));
- r = REGCOMP(pat->p.regex, buf.data, REG_NEWLINE | REG_NOSUB | mutt_which_case(buf.data));
+ r = REGCOMP(pat->p.regex, buf.data,
+ REG_NEWLINE | REG_NOSUB | mutt_which_case(buf.data));
if (r)
{
regerror(r, pat->p.regex, errmsg, sizeof(errmsg));
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "pop.h"
#include "account.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mutt_curses.h"
#include "mutt_socket.h"
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include "lib/lib.h"
+#include "mutt.h"
#include "account.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_socket.h"
#include "options.h"
#include "pop.h"
#include "protos.h"
#include "rfc822.h"
-#include "mutt.h"
#ifdef USE_SASL
#include <sasl/sasl.h>
#include <sasl/saslutil.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "account.h"
#include "context.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_socket.h"
#include "options.h"
pop_data->use_stls = 2;
if (pop_data->use_stls == 0)
{
- ret = query_quadoption(OPT_SSL_STARTTLS, _("Secure connection with TLS?"));
+ ret =
+ query_quadoption(OPT_SSL_STARTTLS, _("Secure connection with TLS?"));
if (ret == MUTT_ABORT)
return -2;
pop_data->use_stls = 1;
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "body.h"
#include "context.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
mutt_message(_("Decrypting message..."));
if ((crypt_pgp_decrypt_mime(fp, &bfp, newhdr->content, &b) == -1) || b == NULL)
{
-err:
+ err:
mx_close_message(ctx, &msg);
mutt_free_envelope(&newhdr->env);
mutt_free_body(&newhdr->content);
newhdr->security |= SIGN;
if ((WithCrypto & APPLICATION_PGP) &&
(mutt_strcasecmp(mutt_get_parameter("protocol", newhdr->content->parameter),
- "application/pgp-signature") == 0))
+ "application/pgp-signature") == 0))
newhdr->security |= APPLICATION_PGP;
else if ((WithCrypto & APPLICATION_SMIME))
newhdr->security |= APPLICATION_SMIME;
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
#include "mutt_menu.h"
entry->data->num = num;
mutt_expando_format(s, slen, 0, MuttIndexWindow->cols, NONULL(QueryFormat),
- query_format_str, (unsigned long) entry, MUTT_FORMAT_ARROWCURSOR);
+ query_format_str, (unsigned long) entry, MUTT_FORMAT_ARROWCURSOR);
}
static int query_tag(struct Menu *menu, int n, int m)
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "attach.h"
#include "body.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mailbox.h"
#include "mime.h"
#include "mutt_curses.h"
case OP_RESEND:
CHECK_ATTACH;
- mutt_attach_resend(CURATTACH->fp, hdr, actx, menu->tagprefix ? NULL : CURATTACH->content);
+ mutt_attach_resend(CURATTACH->fp, hdr, actx,
+ menu->tagprefix ? NULL : CURATTACH->content);
menu->redraw = REDRAW_FULL;
break;
case OP_BOUNCE_MESSAGE:
CHECK_ATTACH;
- mutt_attach_bounce(CURATTACH->fp, hdr, actx, menu->tagprefix ? NULL : CURATTACH->content);
+ mutt_attach_bounce(CURATTACH->fp, hdr, actx,
+ menu->tagprefix ? NULL : CURATTACH->content);
menu->redraw = REDRAW_FULL;
break;
case OP_FORWARD_MESSAGE:
CHECK_ATTACH;
- mutt_attach_forward(CURATTACH->fp, hdr, actx, menu->tagprefix ? NULL : CURATTACH->content, 0);
+ mutt_attach_forward(CURATTACH->fp, hdr, actx,
+ menu->tagprefix ? NULL : CURATTACH->content, 0);
menu->redraw = REDRAW_FULL;
break;
#ifdef USE_NNTP
case OP_FORWARD_TO_GROUP:
CHECK_ATTACH;
- mutt_attach_forward(CURATTACH->fp, hdr, actx, menu->tagprefix ? NULL : CURATTACH->content, SENDNEWS);
+ mutt_attach_forward(CURATTACH->fp, hdr, actx,
+ menu->tagprefix ? NULL : CURATTACH->content, SENDNEWS);
menu->redraw = REDRAW_FULL;
break;
CHECK_ATTACH;
if (!CURATTACH->content->hdr->env->followup_to ||
- (mutt_strcasecmp(CURATTACH->content->hdr->env->followup_to, "poster") != 0) ||
+ (mutt_strcasecmp(CURATTACH->content->hdr->env->followup_to,
+ "poster") != 0) ||
query_quadoption(OPT_FOLLOWUP_TO_POSTER,
_("Reply by mail as poster prefers?")) != MUTT_YES)
{
- mutt_attach_reply(CURATTACH->fp, hdr, actx, menu->tagprefix ? NULL : CURATTACH->content,
+ mutt_attach_reply(CURATTACH->fp, hdr, actx,
+ menu->tagprefix ? NULL : CURATTACH->content,
SENDNEWS | SENDREPLY);
menu->redraw = REDRAW_FULL;
break;
flags = SENDREPLY | (op == OP_GROUP_REPLY ? SENDGROUPREPLY : 0) |
(op == OP_LIST_REPLY ? SENDLISTREPLY : 0);
- mutt_attach_reply(CURATTACH->fp, hdr, actx, menu->tagprefix ? NULL : CURATTACH->content, flags);
+ mutt_attach_reply(CURATTACH->fp, hdr, actx,
+ menu->tagprefix ? NULL : CURATTACH->content, flags);
menu->redraw = REDRAW_FULL;
break;
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "alias.h"
#include "attach.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_idna.h"
#include "options.h"
if (option(OPT_FORWARD_QUOTE))
{
if (!option(OPT_TEXT_FLOWED))
- _mutt_make_string(prefix, sizeof(prefix), NONULL(IndentString), Context, parent_hdr, 0);
+ _mutt_make_string(prefix, sizeof(prefix), NONULL(IndentString), Context,
+ parent_hdr, 0);
else
strfcpy(prefix, ">", sizeof(prefix));
}
tmpbody[0] = '\0';
- if ((rc = query_quadoption(OPT_MIME_FORWARD, _("Forward MIME encapsulated?"))) == MUTT_NO)
+ if ((rc = query_quadoption(OPT_MIME_FORWARD,
+ _("Forward MIME encapsulated?"))) == MUTT_NO)
{
/* no MIME encapsulation */
st.fpout = tmpfp;
if (!option(OPT_TEXT_FLOWED))
- _mutt_make_string(prefix, sizeof(prefix), NONULL(IndentString), Context, parent_hdr, 0);
+ _mutt_make_string(prefix, sizeof(prefix), NONULL(IndentString), Context,
+ parent_hdr, 0);
else
strfcpy(prefix, ">", sizeof(prefix));
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "remailer.h"
#include "address.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "list.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
mix_add_entry(&type2_list, p, &slots, &used);
continue;
-problem:
+ problem:
mix_free_remailer(&p);
}
{
struct Remailer **type2_list = (struct Remailer **) menu->data;
mutt_expando_format(b, blen, 0, MuttIndexWindow->cols, NONULL(MixEntryFormat), mix_entry_fmt,
- (unsigned long) type2_list[num], MUTT_FORMAT_ARROWCURSOR);
+ (unsigned long) type2_list[num], MUTT_FORMAT_ARROWCURSOR);
}
static int mix_chain_add(struct MixChain *chain, const char *s, struct Remailer **type2_list)
strfcpy(tmp, cmd, sizeof(tmp));
mutt_quote_filename(cd_quoted, sizeof(cd_quoted), np->data);
snprintf(cmd, sizeof(cmd), "%s%s%s", tmp,
- (np == STAILQ_FIRST(chain)) ? " -l " : ",", cd_quoted);
+ (np == STAILQ_FIRST(chain)) ? " -l " : ",", cd_quoted);
}
if (!option(OPT_NO_CURSES))
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "rfc1524.h"
#include "body.h"
#include "globals.h"
-#include "lib/lib.h"
#include "options.h"
#include "parameter.h"
#include "protos.h"
#include <errno.h>
#include <iconv.h>
#include <string.h>
+#include "lib/lib.h"
#include "rfc2047.h"
#include "address.h"
#include "charset.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mbyte.h"
#include "mime.h"
#include "options.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
#include "rfc2231.h"
#include "charset.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mbyte.h"
#include "mime.h"
#include "options.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "body.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "options.h"
#include "parameter.h"
#include "config.h"
#include <stdio.h>
#include <string.h>
-#include "rfc822.h"
#include "lib/lib.h"
+#include "rfc822.h"
#include "mutt_idna.h"
const char RFC822Specials[] = "@.,:;<>[]\\\"()";
#include "config.h"
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "context.h"
#include "globals.h"
#include "header.h"
#include "keymap.h"
-#include "lib/lib.h"
#include "mutt_menu.h"
#include "options.h"
#include "pattern.h"
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "alias.h"
#include "filter.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
strfcpy(buf, en->followup_to, sizeof(buf));
else
buf[0] = 0;
- if (option(OPT_ASK_FOLLOW_UP) && mutt_get_field("Followup-To: ", buf, sizeof(buf), 0) != 0)
+ if (option(OPT_ASK_FOLLOW_UP) &&
+ mutt_get_field("Followup-To: ", buf, sizeof(buf), 0) != 0)
return -1;
FREE(&en->followup_to);
en->followup_to = safe_strdup(buf);
return -1;
if (option(OPT_ASKBCC) && edit_address(&en->bcc, _("Bcc: ")) == -1)
return -1;
- if (option(OPT_REPLY_WITH_XORIG) && (flags & (SENDREPLY | SENDLISTREPLY | SENDGROUPREPLY)) &&
+ if (option(OPT_REPLY_WITH_XORIG) &&
+ (flags & (SENDREPLY | SENDLISTREPLY | SENDGROUPREPLY)) &&
(edit_address(&en->from, "From: ") == -1))
return -1;
}
}
if (mutt_get_field(_("Subject: "), buf, sizeof(buf), 0) != 0 ||
- (!buf[0] && query_quadoption(OPT_ABORT_NOSUBJECT, _("No subject, abort?")) != MUTT_NO))
+ (!buf[0] &&
+ query_quadoption(OPT_ABORT_NOSUBJECT, _("No subject, abort?")) != MUTT_NO))
{
mutt_message(_("No subject, aborting."));
return -1;
msg->env->from->mailbox);
msg->env->from = set_reverse_name(cur->env);
}
- if (cur && option(OPT_REPLY_WITH_XORIG) && !(flags & (SENDPOSTPONED | SENDRESEND | SENDFORWARD)))
+ if (cur && option(OPT_REPLY_WITH_XORIG) &&
+ !(flags & (SENDPOSTPONED | SENDRESEND | SENDFORWARD)))
{
/* We shouldn't have to worry about freeing `msg->env->from' before
* setting it here since this code will only execute when doing some
msg->env->newsgroups = safe_strdup(((struct NntpData *) ctx->data)->group);
#endif
- if (!(flags & (SENDMAILX | SENDBATCH)) && !(option(OPT_AUTOEDIT) && option(OPT_EDIT_HEADERS)) &&
+ if (!(flags & (SENDMAILX | SENDBATCH)) &&
+ !(option(OPT_AUTOEDIT) && option(OPT_EDIT_HEADERS)) &&
!((flags & SENDREPLY) && option(OPT_FAST_REPLY)))
{
if (edit_envelope(msg->env, flags) == -1)
{
/* if the file was not modified, bail out now */
if (mtime == st.st_mtime && !msg->content->next &&
- query_quadoption(OPT_ABORT_UNMODIFIED, _("Abort unmodified message?")) == MUTT_YES)
+ query_quadoption(OPT_ABORT_UNMODIFIED,
+ _("Abort unmodified message?")) == MUTT_YES)
{
mutt_message(_("Aborted unmodified message."));
goto cleanup;
}
if (!msg->env->subject && !(flags & SENDBATCH) &&
- (i = query_quadoption(OPT_ABORT_NOSUBJECT, _("No subject, abort sending?"))) != MUTT_NO)
+ (i = query_quadoption(OPT_ABORT_NOSUBJECT,
+ _("No subject, abort sending?"))) != MUTT_NO)
{
/* if the abort is automatic, print an error message */
if (quadoption(OPT_ABORT_NOSUBJECT) == MUTT_YES)
if (quadoption(OPT_ABORT_NOATTACH) != MUTT_NO && !msg->content->next &&
search_attach_keyword(msg->content->filename) &&
- query_quadoption(OPT_ABORT_NOATTACH, _("No attachments, cancel sending?")) != MUTT_NO)
+ query_quadoption(OPT_ABORT_NOATTACH,
+ _("No attachments, cancel sending?")) != MUTT_NO)
{
/* if the abort is automatic, print an error message */
if (quadoption(OPT_ABORT_NOATTACH) == MUTT_YES)
#include <time.h>
#include <unistd.h>
#include <wchar.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "address.h"
#include "body.h"
#include "format_flags.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "mailbox.h"
#include "mime.h"
if (WithCrypto)
{
- if ((option(OPT_MIME_FORWARD_DECODE) || option(OPT_FORWARD_DECRYPT)) && (hdr->security & ENCRYPT))
+ if ((option(OPT_MIME_FORWARD_DECODE) || option(OPT_FORWARD_DECRYPT)) &&
+ (hdr->security & ENCRYPT))
{
if (!crypt_valid_passphrase(hdr->security))
return NULL;
if (!att->subtype)
mutt_lookup_mime_type(att, path);
- if (!att->subtype && MimeTypeQueryCommand && *MimeTypeQueryCommand && !option(OPT_MIME_TYPE_QUERY_FIRST))
+ if (!att->subtype && MimeTypeQueryCommand && *MimeTypeQueryCommand &&
+ !option(OPT_MIME_TYPE_QUERY_FIRST))
run_mime_type_query(att);
if ((info = mutt_get_content_info(path, att)) == NULL)
break;
}
- struct ListNode **ref = safe_calloc(length, sizeof(struct ListNode*));
+ struct ListNode **ref = safe_calloc(length, sizeof(struct ListNode *));
// store in reverse order
size_t tmp = length;
{
char cmd[LONG_STRING];
- mutt_expando_format(cmd, sizeof(cmd), 0, MuttIndexWindow->cols, NONULL(Inews),
- nntp_format_str, 0, 0);
+ mutt_expando_format(cmd, sizeof(cmd), 0, MuttIndexWindow->cols,
+ NONULL(Inews), nntp_format_str, 0, 0);
if (!*cmd)
{
i = nntp_post(msg);
if (!option(OPT_NO_CURSES))
mutt_need_hard_redraw();
- if ((i = send_msg(path, args, msg, option(OPT_NO_CURSES) ? NULL : &childout)) != (EX_OK & 0xff))
+ if ((i = send_msg(path, args, msg, option(OPT_NO_CURSES) ? NULL : &childout)) !=
+ (EX_OK & 0xff))
{
if (i != S_BKG)
{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "sidebar.h"
#include "buffy.h"
#include "context.h"
#include "format_flags.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
#include "mx.h"
}
if (optional)
- mutt_expando_format(dest, destlen, col, SidebarWidth, ifstring, cb_format_str,
- (unsigned long) sbe, flags);
+ mutt_expando_format(dest, destlen, col, SidebarWidth, ifstring,
+ cb_format_str, (unsigned long) sbe, flags);
else if (flags & MUTT_FORMAT_OPTIONAL)
mutt_expando_format(dest, destlen, col, SidebarWidth, elsestring,
- cb_format_str, (unsigned long) sbe, flags);
+ cb_format_str, (unsigned long) sbe, flags);
/* We return the format string, unchanged */
return src;
strfcpy(sbe->box, box, sizeof(sbe->box));
- mutt_expando_format(buf, buflen, 0, width, NONULL(SidebarFormat), cb_format_str,
- (unsigned long) sbe, 0);
+ mutt_expando_format(buf, buflen, 0, width, NONULL(SidebarFormat),
+ cb_format_str, (unsigned long) sbe, 0);
/* Force string to be exactly the right width */
int w = mutt_strwidth(buf);
/* compute length of Folder without trailing separator */
size_t maildirlen = mutt_strlen(Folder);
- if (maildirlen && SidebarDelimChars &&
- strchr(SidebarDelimChars, Folder[maildirlen - 1]))
+ if (maildirlen && SidebarDelimChars && strchr(SidebarDelimChars, Folder[maildirlen - 1]))
maildirlen--;
/* check whether Folder is a prefix of the current folder's path */
bool maildir_is_prefix = false;
if ((mutt_strlen(b->path) > maildirlen) &&
- (mutt_strncmp(Folder, b->path, maildirlen) == 0) &&
- SidebarDelimChars && strchr(SidebarDelimChars, b->path[maildirlen]))
+ (mutt_strncmp(Folder, b->path, maildirlen) == 0) && SidebarDelimChars &&
+ strchr(SidebarDelimChars, b->path[maildirlen]))
maildir_is_prefix = true;
/* calculate depth of current folder and generate its display name with indented spaces */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include "globals.h"
#include "lib/lib.h"
+#include "globals.h"
#include "mutt_curses.h"
#include "options.h"
#include <string.h>
#include <sys/stat.h>
#include <unistd.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "account.h"
#include "address.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mutt_curses.h"
#include "mutt_socket.h"
#include "options.h"
#include "config.h"
#include <stdlib.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "sort.h"
#include "address.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "mutt_idna.h"
#include "options.h"
#include "protos.h"
static sort_t *AuxSort = NULL;
#define AUXSORT(code, a, b) \
- if (!code && AuxSort && !option(OPT_AUX_SORT)) \
+ if (!code && AuxSort && !option(OPT_AUX_SORT)) \
{ \
- set_option(OPT_AUX_SORT); \
+ set_option(OPT_AUX_SORT); \
code = AuxSort(a, b); \
- unset_option(OPT_AUX_SORT); \
+ unset_option(OPT_AUX_SORT); \
} \
if (!code) \
code = (*((struct Header **) a))->index - (*((struct Header **) b))->index;
else
fwrite(d, dlen, 1, s->fpout);
}
-
#include "config.h"
#include <stdio.h>
+#include "lib/lib.h"
#include "context.h"
#include "format_flags.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mbtable.h"
#include "mutt_curses.h"
#include "mutt_menu.h"
static void _menu_status_line(char *buf, size_t buflen, size_t col, int cols,
struct Menu *menu, const char *p)
{
- mutt_expando_format(buf, buflen, col, cols, p, status_format_str, (unsigned long) menu, 0);
+ mutt_expando_format(buf, buflen, col, cols, p, status_format_str,
+ (unsigned long) menu, 0);
}
void menu_status_line(char *buf, size_t buflen, struct Menu *menu, const char *p)
{
mutt_expando_format(buf, buflen, 0,
- menu ? menu->statuswin->cols : MuttStatusWindow->cols, p,
- status_format_str, (unsigned long) menu, 0);
+ menu ? menu->statuswin->cols : MuttStatusWindow->cols, p,
+ status_format_str, (unsigned long) menu, 0);
}
#include <stdlib.h>
#include <string.h>
#include <time.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "thread.h"
#include "body.h"
#include "envelope.h"
#include "globals.h"
#include "header.h"
-#include "lib/lib.h"
#include "list.h"
#include "options.h"
#include "protos.h"
if (dateptr)
{
thisdate = option(OPT_THREAD_RECEIVED) ? cur->message->received :
- cur->message->date_sent;
+ cur->message->date_sent;
if (!*dateptr || thisdate < *dateptr)
*dateptr = thisdate;
}
break;
}
if (!np)
- mutt_list_insert_head(subjects, env->real_subj);
+ mutt_list_insert_head(subjects, env->real_subj);
else if (rc > 0)
- mutt_list_insert_after(subjects, np, env->real_subj);
+ mutt_list_insert_after(subjects, np, env->real_subj);
}
while (!cur->next && cur != start)
tmp->message->subject_changed && /* only match interesting replies */
!is_descendant(tmp, cur) && /* don't match in the same thread */
(date >= (option(OPT_THREAD_RECEIVED) ? tmp->message->received :
- tmp->message->date_sent)) &&
+ tmp->message->date_sent)) &&
(!last || (option(OPT_THREAD_RECEIVED) ?
(last->message->received < tmp->message->received) :
(last->message->date_sent < tmp->message->date_sent))) &&
for (p = brk; !done && p; p = p->parent)
{
for (ref = STAILQ_FIRST(&cur->message->env->references);
- p->message && ref;
- ref = STAILQ_NEXT(ref, entries))
+ p->message && ref; ref = STAILQ_NEXT(ref, entries))
{
if (mutt_strcasecmp(ref->data, p->message->env->message_id) == 0)
{
#include <ctype.h>
#include <stdio.h>
#include <string.h>
+#include "lib/lib.h"
#include "mutt.h"
#include "url.h"
#include "envelope.h"
#include "globals.h"
-#include "lib/lib.h"
#include "mime.h"
#include "protos.h"
#include "rfc2047.h"