WHERE char *ImapAuthenticators INITVAL (NULL);
WHERE char *ImapDelimChars INITVAL (NULL);
WHERE char *ImapHeaders;
-WHERE char *ImapHomeNamespace INITVAL (NULL);
WHERE char *ImapLogin INITVAL (NULL);
WHERE char *ImapPass INITVAL (NULL);
WHERE char *ImapUser INITVAL (NULL);
}
rc = mutt_body_handler (p, s);
state_putc ('\n', s);
- if (rc || ((s->flags & M_REPLYING)
- && (option (OPTINCLUDEONLYFIRST)) && (s->flags & M_FIRSTDONE)))
+ if (rc)
break;
}
s->fpin = fp;
}
}
- s->flags |= M_FIRSTDONE;
}
else if (s->flags & M_DISPLAY) {
state_mark_attach (s);
}
bail:
- s->flags = oflags | (s->flags & M_FIRSTDONE);
-
+ s->flags = oflags;
return (rc);
}
if (!mx.mbox) {
home_namespace = 1;
mbox[0] = '\0'; /* Do not replace "" with "INBOX" here */
- mx.mbox = m_strdup(ImapHomeNamespace);
if (mutt_bit_isset (idata->capabilities, NAMESPACE)) {
mutt_message _("Getting namespaces...");
snprintf (buf, sizeof (buf), "UID FETCH %u %s", HEADER_DATA (h)->uid,
(mutt_bit_isset (idata->capabilities, IMAP4REV1) ?
- (option (OPTIMAPPEEK) ? "BODY.PEEK[]" : "BODY[]") : "RFC822"));
+ "BODY.PEEK[]" : "RFC822"));
imap_cmd_start (idata, buf);
do {
** .te
*/
#endif
- {"hdrs", DT_BOOL, R_NONE, OPTHDRS, "yes" },
- /*
- ** .pp
- ** When \fIunset\fP, the header fields normally added by the ``$my_hdr''
- ** command are not created. This variable \fImust\fP be \fIunset\fP before
- ** composing a new message or replying in order to take effect. If \fIset\fP,
- ** the user defined header fields are added to every new message.
- */
{"header", DT_BOOL, R_NONE, OPTHEADER, "no" },
/*
** .pp
** .pp
** \fBNote:\fP This is a space separated list.
*/
- {"imap_home_namespace", DT_STR, R_NONE, UL &ImapHomeNamespace, "" },
- /*
- ** .pp
- ** You normally want to see your personal folders alongside
- ** your \fTINBOX\fP in the IMAP browser. If you see something else, you may set
- ** this variable to the IMAP path to your folders.
- */
{"imap_keepalive", DT_NUM, R_NONE, UL &ImapKeepalive, "900" },
/*
** .pp
** user/password pairs on Madmutt invocation, or if opening the connection
** is slow.
*/
- {"imap_peek", DT_BOOL, R_NONE, OPTIMAPPEEK, "yes" },
- /*
- ** .pp
- ** If \fIset\fP, Madmutt will avoid implicitly marking your mail as read whenever
- ** you fetch a message from the server. This is generally a good thing,
- ** but can make closing an IMAP folder somewhat slower. This option
- ** exists to appease speed freaks.
- */
{"imap_reconnect", DT_QUAD, R_NONE, OPT_IMAPRECONNECT, "ask-yes" },
/*
** .pp
** Controls whether or not a copy of the message(s) you are replying to
** is included in your reply.
*/
- {"include_onlyfirst", DT_BOOL, R_NONE, OPTINCLUDEONLYFIRST, "no" },
- /*
- ** .pp
- ** Controls whether or not Madmutt includes only the first attachment
- ** of the message you are replying.
- */
{"indent_string", DT_STR, R_NONE, UL &Prefix, "> "},
/*
** .pp
** checked with the check-traditional-pgp function, Madmutt will automatically
** check the message for traditional pgp.
*/
- /* XXX Default values! */
{"forward_decrypt", DT_BOOL, R_NONE, OPTFORWDECRYPT, "yes" },
/*
** .pp
break;
case OP_PIPE:
-
CHECK_MSGCOUNT;
CHECK_VISIBLE;
mutt_pipe_message (tag ? NULL : CURHDR);
- /* in an IMAP folder index with imap_peek=no, piping could change
- * * new or old messages status to read. Redraw what's needed.
- */
- if (Context->magic == M_IMAP && !option (OPTIMAPPEEK)) {
- menu->redraw = (tag ? REDRAW_INDEX : REDRAW_CURRENT) | REDRAW_STATUS;
- }
MAYBE_REDRAW (menu->redraw);
break;
case OP_PRINT:
-
CHECK_MSGCOUNT;
CHECK_VISIBLE;
mutt_print_message (tag ? NULL : CURHDR);
- /* in an IMAP folder index with imap_peek=no, piping could change
- * * new or old messages status to read. Redraw what's needed.
- */
- if (Context->magic == M_IMAP && !option (OPTIMAPPEEK)) {
- menu->redraw = (tag ? REDRAW_INDEX : REDRAW_CURRENT) | REDRAW_STATUS;
- }
break;
case OP_MAIN_READ_THREAD:
case OP_MAIN_READ_SUBTHREAD:
-
CHECK_MSGCOUNT;
CHECK_VISIBLE;
CHECK_READONLY;
{
int shortened = 0, lencnt = 0;
char no[STRING], entry[STRING];
- int l = m_strlen(ImapHomeNamespace);
int l_m = m_strlen(Maildir);
if (SidebarWidth > COLS)
m_strformat(no, len, SidebarWidth, SidebarNumberFormat, sidebar_number_format, idx, 0);
lencnt = m_strlen(no);
- if (l > 0 && m_strncmp(sbox, ImapHomeNamespace, l) == 0 &&
- m_strlen(sbox) > l)
- sbox += l + 1; /* we're trimming the ImapHomeNamespace, the "+ 1" is for the separator */
- else
if (l_m > 0 && m_strncmp(sbox, Maildir, l_m) == 0 &&
m_strlen(sbox) > l_m) {
sbox += l_m;
#ifdef HAVE_QDBM
OPTHCACHECOMPRESS,
#endif
- OPTHDRS,
OPTHEADER,
OPTHELP,
OPTHIDDENHOST,
OPTIMAPCHECKSUBSCRIBED,
OPTIMAPLSUB,
OPTIMAPPASSIVE,
- OPTIMAPPEEK,
OPTIMAPSERVERNOISE,
OPTIMPLICITAUTOVIEW,
- OPTINCLUDEONLYFIRST,
OPTKEEPFLAGGED,
OPTMAILDIRTRASH,
OPTMARKERS,
if (flags & SENDBATCH) {
mutt_copy_stream (stdin, tempfp);
- if (option (OPTHDRS)) {
- process_user_recips (msg->env);
- process_user_header (msg->env);
- }
+ process_user_recips (msg->env);
+ process_user_header (msg->env);
mutt_expand_aliases_env (msg->env);
}
else if (!(flags & (SENDPOSTPONED | SENDRESEND))) {
envelope_defaults (msg->env, ctx, cur, flags) == -1)
goto cleanup;
- if (option (OPTHDRS))
- process_user_recips (msg->env);
+ process_user_recips (msg->env);
/* Expand aliases and remove duplicates/crossrefs */
mutt_fix_reply_recipients (msg->env);
killfrom = 0;
}
- if (option (OPTHDRS))
- process_user_header (msg->env);
+ process_user_header (msg->env);
/* include replies/forwarded messages, unless we are given a template */
if (!tempfile && (ctx || !(flags & (SENDREPLY | SENDFORWARD)))
#define M_CHARCONV (1<<4) /* Do character set conversions */
#define M_PRINTING (1<<5) /* are we printing? - M_DISPLAY "light" */
#define M_REPLYING (1<<6) /* are we replying? */
-#define M_FIRSTDONE (1<<7) /* the first attachment has been done */
#define state_set_prefix(s) ((s)->flags |= M_PENDINGPREFIX)
#define state_reset_prefix(s) ((s)->flags &= ~M_PENDINGPREFIX)