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

Re: current folder patch breaks fcc-hook?



* Fernan Aguero <fernan@xxxxxxxxxxxxxxxx> [2004-11-11 17:41 -0300]:
> For this I use the following in my muttrc:
> fcc-hook . ^

I just entered
:fcc-hook . ^

> However, this fcc-hook does not work when mutt is built with
> the current folder patch. With this mutt, the Fcc is always
> empty (I have not set 'record' in my muttrc). If I change
> the Fcc manually to ^, the message gets saved to the current
> folder as expected.

It seems to work fine.

> My mutt is built from sources using the FreeBSD mutt-devel
> port. I have attached the output of 'mutt -v' in case it's
> useful.

I use the same port, but perhaps a different version of the patch.

Mutt 1.5.6i (2004-02-01)
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.10-RELEASE-p2 (i386) [using ncurses 5.1] [using libiconv 1.9] 
[using libidn 0.5.10 (compiled with 0.5.8)]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
-USE_FCNTL  +USE_FLOCK
+USE_POP  +USE_IMAP  +IMAP_EDIT_THREADS  -USE_GSS  +USE_SSL  -USE_SASL  
-USE_SASL2  
+HAVE_REGCOMP  -USE_GNU_REGEX  +COMPRESSED  
+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  
-BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  -HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_LIBIDN  +HAVE_GETSID  +HAVE_GETADDRINFO  
+USE_HCACHE  
-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.

patch-1.5.6.dw.multiple-crypt-hook.2
patch-1.5.6.dw.confirm-crypt-hook.1
patch-1.5.6.dw.crypt-autoselectkey.1
patch-1.5.6.dw.pgp-menu-traditional.2
patch-1.5.6.dw.maildir-mtime.1
patch-1.5.6.tg.hcache.10
patch-1.5.6.nr.crypt-autohook-ALPHA
patch-1.5.6.dshaw.extend_timeout
patch-1.5.6.eh.thread_subject.1
patch-1.5.5.1.cd.trash_folder.3.4
patch-1.5.1.nr.indicator_not_bright
1.3.26.bj.current_shortcut.1-nr
patch-1.5.6+20040904.tg.mutt-thread.3
rr.compressed
patch-1.5.0.ats.date_conditional.1
dgc.deepif.1



URL:http://home.worldonline.dk/~byrial/mutt/patches/
--- PATCHES~    Tue Nov  6 19:59:33 2001
+++ PATCHES     Tue Nov  6 19:59:42 2001
@@ -1,0 +1 @@
+1.3.26.bj.current_shortcut.1-nr
--- muttlib.c.orig      Sun Dec  2 00:54:12 2001
+++ muttlib.c   Sun Dec  2 00:59:27 2001
@@ -446,7 +446,18 @@
        tail = s + 1;
       }
       break;
-      
+
+      case '^':        
+      {
+       if (Context)
+       {
+         strfcpy (p, Context->path, sizeof (p));
+         tail = s + 1;
+         break;
+       }
+      }
+      /* Fall through */
+
       default:
       {
        *p = '\0';
--- doc/manual.sgml.head.orig   Sun Dec  2 00:54:10 2001
+++ doc/manual.sgml.head        Sun Dec  2 00:59:27 2001
@@ -2024,6 +2024,7 @@
 <item>&gt; -- refers to your <ref id="mbox" name="&dollar;mbox"> file
 <item>&lt; -- refers to your <ref id="record" name="&dollar;record"> file
 <item>- or !! -- refers to the file you've last visited
+<item>^ -- refers to the current open mailbox if any
 <item>&tilde; -- refers to your home directory
 <item>= or + -- refers to your <ref id="folder" name="&dollar;folder"> 
directory
 <item>@<em/alias/ -- refers to the <ref id="save-hook"