field, generate a default FCC just as we do for new messages. If x-mutt-fcc is
present but empty, we assume that means the user does not want a copy.
closes #3653
#define SENDMAILX (1<<6)
#define SENDKEY (1<<7)
#define SENDRESEND (1<<8)
+#define SENDPOSTPONEDFCC (1<<9) /* used by mutt_get_postponed() to signal that the x-mutt-fcc header field was present */
/* flags to _mutt_select_file() */
#define M_SEL_BUFFY (1<<0)
tmp->next = NULL;
mutt_free_list (&tmp);
tmp = next;
+ /* note that x-mutt-fcc was present. we do this because we want to add a
+ * default fcc if the header was missing, but preserve the request of the
+ * user to not make a copy if the header field is present, but empty.
+ * see http://dev.mutt.org/trac/ticket/3653
+ */
+ code |= SENDPOSTPONEDFCC;
}
else if ((WithCrypto & APPLICATION_PGP)
&& (mutt_strncmp ("Pgp:", tmp->data, 4) == 0 /* this is generated
/* specify a default fcc. if we are in batchmode, only save a copy of
* the message if the value of $copy is yes or ask-yes */
- if (!fcc[0] && !(flags & (SENDPOSTPONED)) && (!(flags & SENDBATCH) || (quadoption (OPT_COPY) & 0x1)))
+ if (!fcc[0] && !(flags & (SENDPOSTPONEDFCC)) && (!(flags & SENDBATCH) || (quadoption (OPT_COPY) & 0x1)))
{
/* set the default FCC */
if (!msg->env->from)