On Sun, Mar 07, 1999 at 10:05:30PM -0500, James FitzGibbon wrote:
> I use Maildir for all my mail, including lists and fcc folders. Under Pine,
> I organized these folders like so:
>
> ~/mail/
> /inbox/
> /lists/
> /mutt-users/
> ...
> /saved/
> [EMAIL PROTECTED]/
> [EMAIL PROTECTED]/
> ...
>
> Under Mutt, I can't seem to get the fcc to be set based upon the full To:
> address yet still put the folders under "+saved/". I have to live with the
> fcc folders getting stored in ~/mail, which makes the menu displayed by the
> change-folder function very messy.
>
> I've looked at the fcc-hook command, but it doesn't seem to indicate if it's
> possible to prefix the "mailbox" name, or if you can interpolate the
> original value of $record into the mailbox name.
>
> If I could use something like
>
> fcc-hook . +saved/$record
>
> Then an message that would have been saved in [EMAIL PROTECTED]/ would get
> saved in [EMAIL PROTECTED]/
>
My suggestion is to read the mailing list archive before posting...
http://www.egroups.com/list/mutt-users/
(Naturally after saying this, the next time I have a question it will
have been in the archive! ;) ) -- I asked a very similar question
around the middle of Jan this year.
Anyway, the result was (after help from Byrial):
You can use the %-sequences from the index-format command in the
foldernames in fcc, save, and fcc-save hooks.
By using a '%u' the save-to name will be that of the author. This is
fine when saving doing a save, but falls over when doing a fcc. The
fcc will be saved under the authors name (i.e. me).
The better (?) way to do this is:
fcc-save-hook ~A +saved/%O
where %O is : (from the manual)
(_O_riginal save folder) Where mutt would formerly have stashed the
message: list name or recipient name if no list
(But %O is just the name - not the name@address. Time to RTFM...)
S.
--
Theoretical Physicist,N.:A physicist whose existence is postulated, to make
the numbers balance but who is never actually observed in the laboratory.
PGP signature