<<< Date Index >>>     <<< Thread Index >>>

bug#1818: marked as done (mutt-1.4.2i: signature set by send-hook is not reset for next mail)



Your message dated Sat, 28 Feb 2004 15:10:08 -0500
with message-id <20040228201008.GA8062@xxxxxxxxxxx>
and subject line bug#1818: mutt-1.4.2i: signature set by send-hook is not reset 
for next mail
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Herr der Kaefer
(administrator, GUUG bugs database)

--------------------------------------
Received: (at submit) by bugs.guug.de; 28 Feb 2004 19:06:28 +0000
>From jip@xxxxxxxxxxxxxxxxxxxxx Sat Feb 28 20:06:24 2004
Received: from e165253.upc-e.chello.nl
        ([213.93.165.253] helo=moya.lambermont.dyndns.org ident=postfix)
        by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
        id 1Ax9n5-0000Dq-00
        for <submit@xxxxxxxxxxxx>; Sat, 28 Feb 2004 20:06:24 +0100
Received: from localhost (localhost [127.0.0.1])
        by moya.lambermont.dyndns.org (Postfix) with ESMTP
        id 3BA0D36401; Sat, 28 Feb 2004 20:09:07 +0100 (CET)
Received: from moya.lambermont.dyndns.org ([127.0.0.1])
 by localhost (moya.lambermont.dyndns.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 21159-05; Sat, 28 Feb 2004 20:09:06 +0100 (CET)
Received: by moya.lambermont.dyndns.org (Postfix, from userid 1003)
        id E0B6B36403; Sat, 28 Feb 2004 20:09:06 +0100 (CET)
Subject: mutt-1.4.2i: signature set by send-hook is not reset for next mail
To: submit@xxxxxxxxxxxx
Message-Id: <20040228190906.E0B6B36403@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 28 Feb 2004 20:09:06 +0100 (CET)
From: jip@xxxxxxxxxxxxxxxxxxxxx (jip)
X-Virus-Scanned: by amavisd-new-20030616.p5 at lambermont.dyndns.org
X-Spam-Status: No, hits=0.0 required=4.0
        tests=none
        version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

Package: mutt
Version: 1.4.2i
Severity: normal

-- Please type your report below this line

Hi,

I've made a send-hook to use an alternative signature for emails
sent to a set of pre-defined emailaddresses:

send-hook '~C "(november2002babies|eindhovense_ooievaars|bv-plus|bv-list)"' 'set
signature="~/.signature_nl"'

I discovered that the next email I send doesn't automatically
use the default signature if the to-address doesn't match the
list in the send-hook. Instead it uses the last used signature.

I currently use a second send-hook (bleh!) to work around this problem.

send-hook '~C "."' 'set signature="~/.signature"'

Kind regards,
jip

-- Build environment information

(Note: This is the build environment installed on the system
muttbug is run on.  Information may or may not match the environment
used to build mutt.)

- gcc version information
cc -I/usr/local/include
Using builtin specs.
gcc version 2.95.4 20020320 [FreeBSD]

- CFLAGS
-Wall -O -pipe

-- Mutt Version Information

Mutt 1.4.2i (2004-02-11)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: FreeBSD 4.9-PRERELEASE (i386) [using ncurses 5.1]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
-USE_FCNTL  +USE_FLOCK
+USE_POP  +USE_IMAP  -USE_GSS  +USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET 
 +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  +HAVE_GETADDRINFO  
ISPELL="/usr/local/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
To report a bug, please use the flea(1) utility.

vvv.initials
1.3.28.nr.threadcomplete
patch-1.4.1.rr.compressed.1

--- Begin /home/jip/.muttrc
push V
set help
send-hook '~C "."' 'set signature="~/.signature"'
send-hook '~C "(november2002babies|eindhovense_ooievaars|bv-plus|bv-list)"' 
'set signature="~/.signature_nl"'
set editor="vim -c 'syntax off'"
set autoedit
set include=yes
set indent_string="> "
set quote_regexp="^([ \t]*[>=])+"
set pager_stop
unset smart_wrap
unset markers
set attribution="%n wrote:\n"
set sort=threads
set strict_threads
set auto_tag
set delete=yes
mailboxes ! =november2002babies =bv-plus =bv-list =spam =SPAM
unset confirmappend
set confirmcreate
set copy=yes
set record="=sent"
set postponed=+postponed
set move=no
set alias_file="~/.muttrc/aliases"
source "~/.mutt/aliases"
set askcc
unset metoo
ignore *
unignore  from: to subject date organization newsgroups cc reply-to sender 
resent-from resent-to message-id
hdr_order from: to subject date organization newsgroups cc reply-to sender 
resent-from resent-to message-id x-
unset use_from
unset use_domain
mono bold bold
mono underline underline
mono indicator reverse
mono  index bold ~N
mono header bold "^(From|Subject):"
mono  body bold "(http|https|ftp|news|telnet|finger)://[^ \">\t\r\n]*"
mono  body bold "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
mono  body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+";
mono  body bold "news:[^ \">\t\r\n]*"
color normal white black
color bold brightwhite black
color markers magenta black
color status black cyan
color indicator brightwhite black
color tree green black
color error red black
color index cyan black ~N
color index blue black ~D
color index magenta black ~T
color hdrdefault green black
color message white black
color quoted cyan black
color signature green black
color attachment yellow black
color search brightwhite black
color tilde cyan black
color header white black "^(From|Subject):"
color header blue black "^X-Spam"
color body blue black "(http|https|ftp|news|telnet|finger)://[^ \">\t\r\n]*"
color body cyan black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
color body cyan black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+";
color body blue black "news:[^ \">\t\r\n]*"
color body black yellow "[;:]-*[)>(<|]"       # :-) etc...
color body black yellow "\\*[A-Za-z]+\\*"      # *Bold* text.
--- End /home/jip/.muttrc


---------------------------------------
Received: (at 1818-done) by bugs.guug.de; 28 Feb 2004 20:10:14 +0000
>From bbell@xxxxxx Sat Feb 28 21:08:55 2004
Received: from zmamail03.zma.compaq.com ([161.114.64.103])
        by trithemius.gnupg.org with esmtp (Exim 3.35 #1 (Debian))
        id 1AxAla-0001iR-00
        for <1818-done@xxxxxxxxxxxx>; Sat, 28 Feb 2004 21:08:54 +0100
Received: from taynzmail03.nz-tay.cpqcorp.net (taynzmail03.nz-tay.cpqcorp.net 
[16.47.4.103])
        by zmamail03.zma.compaq.com (Postfix) with ESMTP
        id 38CF311303; Sat, 28 Feb 2004 15:11:42 -0500 (EST)
Received: from anw.zk3.dec.com (alpha.zk3.dec.com [16.140.128.4])
        by taynzmail03.nz-tay.cpqcorp.net (Postfix) with ESMTP
        id 355BA2290; Sat, 28 Feb 2004 15:11:07 -0500 (EST)
Received: from zk3.dec.com by anw.zk3.dec.com (8.11.1/1.1.22.2/08Sep98-0251PM)
        id i1SKB380001203005; Sat, 28 Feb 2004 15:11:07 -0500 (EST)
Received: by zk3.dec.com (sSMTP sendmail emulation); Sat, 28 Feb 2004 15:10:08 
-0500
Date: Sat, 28 Feb 2004 15:10:08 -0500
From: Bob Bell <bbell@xxxxxxxxxxxxxxxxxxxxx>
To: jip <jip@xxxxxxxxxxxxxxxxxxxxx>, 1818-done@xxxxxxxxxxxx
Subject: Re: bug#1818: mutt-1.4.2i: signature set by send-hook is not reset for 
next mail
Message-ID: <20040228201008.GA8062@xxxxxxxxxxx>
References: <20040228190906.E0B6B36403@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Disposition: inline
In-Reply-To: <20040228190906.E0B6B36403@xxxxxxxxxxxxxxxxxxxxxxxxxx>
X-Editor: Vim http://www.vim.org/
X-URL: http://www.css.tayloru.edu/~bbell/
User-Agent: Mutt/1.5.5.1i
X-Spam-Status: No, hits=-6.0 required=4.0
        tests=AWL,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,
              REFERENCES,REPLY_WITH_QUOTES,USER_AGENT_MUTT
        autolearn=ham version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

On Sat, Feb 28, 2004 at 08:09:06PM +0100, jip <jip@xxxxxxxxxxxxxxxxxxxxx> wrote:
> I've made a send-hook to use an alternative signature for emails
> sent to a set of pre-defined emailaddresses:
> 
> send-hook '~C "(november2002babies|eindhovense_ooievaars|bv-plus|bv-list)"' 
> 'set
> signature="~/.signature_nl"'
> 
> I discovered that the next email I send doesn't automatically
> use the default signature if the to-address doesn't match the
> list in the send-hook. Instead it uses the last used signature.
> 
> I currently use a second send-hook (bleh!) to work around this problem.
> 
> send-hook '~C "."' 'set signature="~/.signature"'

That's the way it's supposed to work.  All hooks are permanent changes,
including send-hooks.  If you want some sort of default value to use in
"non-hooked" situation, you have to create a "default hook".  For
instance, I would put the following before any other send-hooks in my
.muttrc, much like you have (but just a little simpler):
    send-hook . set signature="~/.signature"

-- 
Bob Bell <bbell@xxxxxxxxxxxxxxxxxxxxx>