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

Re: current folder patch breaks fcc-hook?



+----[ Christoph Berg <cb@xxxxxxxx> (12.Nov.2004 10:47):
|
| Re: Nicolas Rachinsky in <20041111205043.GA10819@xxxxxxxxxxxx>
| > --- 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)
| 
| Hi.
| 
| The problem with Nicolas' "old" patch is that it is clumsy to use in
| folder-hooks. You need something like the following to make it work:
| 
|       folder-hook . 'push ":set trash=\"^.trash\"\n"'
| 
| Context isn't defined there.

Hi Christoph, and thanks for your reply.

I'm now using the patch mentioned before in this thread
(1.3.26...) and I don't need to quote anything either in
hooks (fcc- or folder-) or while setting global variables
like record.

fcc-hook . ^                    # this works
folder-hook . set record=^      # this also works
folder-hook . 'set record=^'    # and this
folder-hook . 'set record="^"'  # and this one too

in all cases, the sent mail was stored in the current
mailbox, and not in the one specified by 'record' or in the
CURDIR where mutt was running.

| I'd quote it:
| 
|       folder-hook . 'set trash="^.trash"'
|       folder-hook . 'set record="^"'
| 
| > What version of the current folder patch are you using?
| 
| I'm using the attached version that you've already spotted.

which, for the archives, is current_shortcut.2

| "fcc-hook . '^'" doesn't work with my patch, too, but you should really
| use folder-hook as above here. (The ^ gets expanded only once so you'd
| either end up with a literal "^" as fcc folder, or the current folder on
| mutt startup, or something even less defined.)
| 
| Christoph
| -- 
| cb@xxxxxxxx | http://www.df7cb.de/
|
+----]

Yes, that was what happened with yout patch, the ^ was evaluated
literally ... I already purged two or three maildirs named ^
that were the result of testing different fcc- and
folder-hooks. 

Perhaps the problem you experienced with the "old" bj's
patch (clumsy folder-hooks) was evident in earlier
mutt-devel releases? I don't see this behaviour now ...

Fernan

BTW, thanks to all who replied and helped with this issue.

-- 
Fernán Agüero | Instituto de Investigaciones Biotecnológicas
email         | fernan at { iib.unsam.edu.ar , mail.retina.ar }
wwww          | http://genoma.unsam.edu.ar/~fernan
phone, fax    | +54 11 { 4580-7255 ext 310, 4752-9639 }