Ticket #3026 (closed defect: invalid)

Opened 10 months ago

Last modified 7 months ago

fcc-hook not honoured

Reported by: berni Owned by: mutt-dev
Priority: minor Milestone:
Component: mutt Version: 1.5.17
Keywords: Cc:

Description

Config:

set from = berni@birkenwald.de
set tmpdir = /tmp
set sort = threads
set index_format = "%4C %Z %{%b %d} %-15.15L (%02M) %s"
set editor = "vim '+set textwidth=72' '+syntax on'"
set copy = no
set use_from = yes
set envelope_from = yes
set mime_forward = yes
set imap_user = "berni"
set folder=imap://pop3.mucip.net
set mbox=imap://pop3.mucip.net
set spoolfile=imap://pop3.mucip.net
my_hdr Bcc: berni@birkenwald.de
mailboxes =INBOX =Sent =ipv6 =lists.de-cix =lists.ipv6-ops =unsorted
folder-hook .    set from = berni@birkenwald.de
folder-hook .    fcc-hook . =Sent
folder-hook =ipv6 set from = berni+ipv6@birkenwald.de
folder-hook =ipv6 fcc-hook . =ipv6
ignore *
unignore From To Cc Subject Date Reply-To X-Spam-Level
set header_cache = /tmp/bernicache
set imap_idle=yes
set charset="utf8"
set wrapmargin = 5
alternates 'berni(\+.*)?@birkenwald.de' 

When I hit new mail/reply while being in the folder =ipv6 the Fcc: field in the summary is correctly filled with =ipv6. But when I hit 'y' (send), the message is not saved.

When I hit 'f' (set fcc) in the summary first, acknowledge the already prefilled value "=ipv6" by just pressing ENTER the message is saved correctly when sending.

Version:

Mutt 1.5.17+20080114 (2008-01-14)
Copyright (C) 1996-2007 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.22.14 (i686)
ncurses: ncurses 5.6.20071013 (compiled with 5.6)
libidn: 1.1 (compiled with 1.1)
hcache backend: GDBM version 1.8.3. 10/15/2002 (built Apr 24 2006 03:25:20)
Compile options:
-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@mutt.org>.
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

Change History

Changed 7 months ago by Alain Bench

Hi, and thank you for the report.

 On Sunday, February 3, 2008 at 23:01:32 -0000, Mutt wrote:

> When I hit new mail/reply while being in the folder =ipv6 the Fcc:
> field in the summary is correctly filled with =ipv6. But when I hit
> 'y' (send), the message is not saved.

    Because $copy=no means that you don't want to "Save a copy of this
message?" upon sending. Set $copy to "ask-yes" or "ask-no" to be
prompted, or to "yes" to always save without question.


> When I hit 'f' (set fcc) in the summary first, acknowledge the already
> prefilled value "=ipv6" by just pressing ENTER the message is saved
> correctly when sending.

    Indeed: When the user explicitly enters an FCC, we can presume he
wants to save a copy. Mutt then saves without any question, disregarding
the value of $copy.


>| folder-hook .     fcc-hook . =Sent
>| folder-hook =ipv6 fcc-hook . =ipv6

    BTW if you only have *default* fcc-hooks, don't use fcc-hooks at
all, but set $record instead.

| folder-hook .      set record=+Sent
| folder-hook =ipv6$ set record=+ipv6


>| set charset="utf8"

    Drop this line.


Bye!	Alain.

Changed 7 months ago by berni

  • status changed from new to closed
  • resolution set to invalid

Argh, thanks a lot. A lot of people couldn't figure this out but you have.

Note: See TracTickets for help on using tickets.