On Tue, Feb 05, 2002 at 08:12, David T-G wrote: > % Has nobody ever had this problem or knows anything about it? > % > % Is this a known issue or am I doing something wrong with the regexps? > > It's new to me, and I guess it's new to everyone else, too. I've been > waiting for the followups :-) > > Perhaps you could work up a sample muttrc that's as short as possible > which exhibits the failure and seend in that, a test case procedure or > two, and your `mutt -v` to give us some more detail.
I have done some more testing and found out much more about this problem and learned a bit more about the send-hook mechanism. It is setting global variables, so you have to set the header on each sending mail (one way or the other) to get correct settings all the time. So, the problem turns out to be a little bit different and maybe mutt works correctly as it should be, but I would like to work it differently :-) The bcc header is set correctly (no matter if an alias or typed in), but is only valid for all following mails and NOT the one I am composing at that moment. So, I have a delayed reaction of one mail composition. I have attached a reduced muttrc, mail_alias and a version file. The most important part is this: send-hook '~t my@address\.de' 'unmy_hdr bcc' send-hook '!~t my@address\.de' 'my_hdr Bcc: [EMAIL PROTECTED]' Intended is a BCC to 'my@address\.de' on all mails except on mails that are sent to 'my@address\.de' in the TO field. On starting mutt, use 'm' and try the following addresses in the 'To:' question (subject does not matter, abort mail in composer editor): my no bcc [EMAIL PROTECTED] no bcc [EMAIL PROTECTED] bcc my no bcc [EMAIL PROTECTED] no bcc [EMAIL PROTECTED] bcc [EMAIL PROTECTED] no bcc [EMAIL PROTECTED] bcc Any solutions for this problem? Is this behavior intended? Bye, Steffen
alias my [EMAIL PROTECTED]
set folder=~/Mail # where i keep my mailboxes set alias_file=.mail_aliases # where I keep my aliases set tmpdir="~/tmp" # where to store temp files set editor="vim" # editor to use when composing messages set spoolfile='+inbox' # where my new mail is located set alternates="[EMAIL PROTECTED]|[EMAIL PROTECTED]" #set autoedit # go to the editor right away when composing set edit_headers # let me edit the message header when composing set hdrs # include `my_hdr' lines in outgoing messages #set use_from # always generate the `From:' header field set write_bcc=yes # include bcc lines in the message header #my_hdr Bcc: [EMAIL PROTECTED] #set envelope_from # set envelop from by the From: field #set reverse_name # use my address as it appears in the message # i am replying to #set reverse_alias # attempt to look up my names for people send-hook '~t my@address\.de' 'unmy_hdr bcc' send-hook '!~t my@address\.de' 'my_hdr Bcc: [EMAIL PROTECTED]' mailboxes +inbox source mail_aliases # where I keep my aliases # EOF
Mutt 1.3.25i (2002-01-01) Copyright (C) 1996-2001 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.4.17-tr1 (i686) [using ncurses 5.2] Compile options: -DOMAIN +DEBUG -HOMESPOOL +USE_SETGID +USE_DOTLOCK +DL_STANDALONE +USE_FCNTL -USE_FLOCK +USE_POP +USE_IMAP -USE_GSS -USE_SSL +USE_GNUTLS +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/bin/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 <[EMAIL PROTECTED]>. To report a bug, please use the flea(1) utility. patch-1.3.24.rr.compressed.1 patch-1.3.24.appoct.2 patch-1.3.15.sw.pgp-outlook.1 patch-1.3.24.admcd.gnutls.1 Md.use_editor Md.paths_mutt.man Md.muttbug_no_list Md.use_etc_mailname Md.muttbug_warning Md.gpg_status_fd patch-1.2.xtitles.1 patch-1.3.23.1.ametzler.pgp_good_sign