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

send-hook and different email accounts



ciao!
i'm using mutt with two different email accounts. generally i use the
first one but i need to use the second to send email to the university
so i set the following send-hook:

    unhook send-hook
    unhook send2-hook

    send-hook . unmy_hdr From Reply-To


    send-hook . 'set sendmail="~/bin/msmtpQ -a gmail"; \
                 set from = "Marco Giusti <youknow@xxxxxxxxx>"; \
                 my_hdr Reply-To: youknow@xxxxxxxxx'

    send-hook .*unibo\.it 'set sendmail="~/bin/msmtpQ -a hermes"; \
                           set from = "Marco Giusti <youknow@xxxxxxxxxxxxxxx>"
                           my_hdr Reply-To: youknow@xxxxxxxxxxxxxxx'


with this configuration i got a strange behavior i follow these steps:

1. send emails to a generic addresses. no problem at all
2. send an email to .unibo.it. no problem, all the headers are set
correclty
3. send an email to a generic address. now the headers and the variables
are set to the previous values ie. unibo.it account

why i got this? it's my fault or a mutt's bug? how can i achieve the
behaviour needed?

thanks for your help
marco

ps. follow some mutt infos if you need it, anyway is a debian/lenny package

Mutt 1.5.18 (2008-05-17)
Copyright (C) 1996-2008 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: Linux 2.6.25.11 (x86_64)
ncurses: ncurses 5.6.20080830 (compiled with 5.6)
libidn: 1.8 (compiled with 1.9)
hcache backend: GDBM version 1.8.3. 10/15/2002 (built Apr 24 2006 03:50:27)
Opzioni di compilazione:
-DOMAIN
+DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK   
+USE_POP  +USE_IMAP  +USE_SMTP  +USE_GSS  -USE_SSL_OPENSSL  +USE_SSL_GNUTLS  
+USE_SASL  +HAVE_GETADDRINFO  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+CRYPT_BACKEND_CLASSIC_PGP  +CRYPT_BACKEND_CLASSIC_SMIME  -CRYPT_BACKEND_GPGME  
-EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +COMPRESSED  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET 
 +HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +USE_HCACHE  
-ISPELL
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/share/mutt"
SYSCONFDIR="/etc"
EXECSHELL="/bin/sh"
MIXMASTER="mixmaster"
To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
To report a bug, please visit http://bugs.mutt.org/.

patch-1.5.13.cd.ifdef.2
patch-1.5.13.cd.purge_message.3.4
patch-1.5.13.nt+ab.xtitles.4
patch-1.5.4.vk.pgp_verbose_mime
patch-1.5.6.dw.maildir-mtime.1
patch-1.5.8.hr.sensible_browser_position.3

Attachment: signature.asc
Description: Digital signature