Commit 31fc4f13 authored by Thomas Roessler's avatar Thomas Roessler

Add a sig_on_top option.

parent a6d29526
......@@ -1802,6 +1802,14 @@ struct option_t MuttVars[] = {
** detect your signature. For example, Mutt has the ability to highlight
** the signature in a different color in the builtin pager.
*/
{ "sig_on_top", DT_BOOL, R_NONE, OPTSIGONTOP, 0},
/*
** .pp
** If set, the signature will be included before any quoted or forwarded
** text. It is \fBstrongly\fP recommended that you do not set this variable
** unless you really know what you are doing, and are prepared to take
** some heat from netiquette guardians.
*/
{ "signature", DT_PATH, R_NONE, UL &Signature, UL "~/.signature" },
/*
** .pp
......
......@@ -352,6 +352,7 @@ enum
OPTSAVENAME,
OPTSCORE,
OPTSIGDASHES,
OPTSIGONTOP,
OPTSORTRE,
OPTSTATUSONTOP,
OPTSTRICTTHREADS,
......
......@@ -1175,14 +1175,15 @@ ci_send_message (int flags, /* send mode */
process_user_header (msg->env);
if (option (OPTSIGONTOP) && (! (flags & (SENDMAILX | SENDKEY)) && Editor && mutt_strcmp (Editor, "builtin") != 0))
append_signature (tempfp);
/* include replies/forwarded messages, unless we are given a template */
if (!tempfile && (ctx || !(flags & (SENDREPLY|SENDFORWARD)))
&& generate_body (tempfp, msg, flags, ctx, cur) == -1)
goto cleanup;
if (! (flags & (SENDMAILX | SENDKEY)) && Editor && mutt_strcmp (Editor, "builtin") != 0)
if (!option (OPTSIGONTOP) && (! (flags & (SENDMAILX | SENDKEY)) && Editor && mutt_strcmp (Editor, "builtin") != 0))
append_signature (tempfp);
/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment