implemented $signoff_string
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@52
e385b8ad-14ed-0310-8656-
cc95a2468c6d
2005-02-05:
* Made message ID format configurable
2005-02-05:
* Made message ID format configurable
+ * Implemented $signoff_string (fixes feature request #552)
2005-02-04:
* Fixed another bug in ajg.last-folder patch
2005-02-04:
* Fixed another bug in ajg.last-folder patch
WHERE char *Sendmail;
WHERE char *Shell;
WHERE char *Signature;
WHERE char *Sendmail;
WHERE char *Shell;
WHERE char *Signature;
+WHERE char *SignOffString;
WHERE char *SimpleSearch;
#if defined(USE_LIBESMTP)
WHERE char *SmtpAuthUser;
WHERE char *SimpleSearch;
#if defined(USE_LIBESMTP)
WHERE char *SmtpAuthUser;
** assumed that filename is a shell command and input should be read from
** its stdout.
*/
** assumed that filename is a shell command and input should be read from
** its stdout.
*/
+ { "signoff_string", DT_STR, R_NONE, UL &SignOffString, UL 0 },
+ /*
+ ** .pp
+ ** If set, this string will be inserted before the signature. This is useful
+ ** for people that want to sign off every message they send with their name.
+ ** .pp
+ ** If you want to insert your website's URL, additional contact information or
+ ** witty quotes into your mails, better use a signature file instead of
+ ** the signoff string.
+ */
{ "simple_search", DT_STR, R_NONE, UL &SimpleSearch, UL "~f %s | ~s %s" },
/*
** .pp
{ "simple_search", DT_STR, R_NONE, UL &SimpleSearch, UL "~f %s | ~s %s" },
/*
** .pp
FILE *tmpfp;
pid_t thepid;
FILE *tmpfp;
pid_t thepid;
+ if (SignOffString) {
+ fprintf(f,"\n%s",SignOffString);
+ }
+
if (Signature && (tmpfp = mutt_open_read (Signature, &thepid)))
{
if (option (OPTSIGDASHES))
fputs ("\n-- \n", f);
if (Signature && (tmpfp = mutt_open_read (Signature, &thepid)))
{
if (option (OPTSIGDASHES))
fputs ("\n-- \n", f);
+ else if (SignOffString)
+ fputs("\n",f);
mutt_copy_stream (tmpfp, f);
fclose (tmpfp);
if (thepid != -1)
mutt_copy_stream (tmpfp, f);
fclose (tmpfp);
if (thepid != -1)
+static void append_signoff_string(FILE *f)
+{
+}
+
/* compare two e-mail addresses and return 1 if they are equivalent */
static int mutt_addrcmp (ADDRESS *a, ADDRESS *b)
{
/* compare two e-mail addresses and return 1 if they are equivalent */
static int mutt_addrcmp (ADDRESS *a, ADDRESS *b)
{