Greg,
At 2000/11/10/14:41 -0500 Greg Whitlock <[EMAIL PROTECTED]> wrote:
> Thanks for the response! The problem with using save-hook seems to
> be that you can only specify one filename for each save-hook command.
> In the case of list mail the filename to save to would be (potentially)
> different for each message. I simply don't want the list name to be
> the default filename for the save folder. I want it to be the sender's
> address.
O.K. I think I know what you are trying to do now. I think what you
want is to be able to save all traffic to a particular list on a
message-by-message basis. You want each message to be stored in a
folder whose name is associated with the (human) originator of the
message. So when John Smith sends to Some List, you want to be able
to save the message in a folder that represents John Smith. Jane
Doe's messages, however, you want to be able to store in a folder
that represents Jane Doe. If so, then how about experimenting with
format strings?
The manual says:
``Format strings'' are similar to the strings used in the ``C''
function printf to format output (see the man page for more detail).
The following sequences are defined in Mutt:
%a address of the author
%b filename of the original message folder (think mailBox)
%B the list to which the letter was sent, or else the folder name (%
b).
%c number of characters (bytes) in the message
%C current message number
%d date and time of the message in the format specified by
``date_format'' converted to sender's time zone
%D date and time of the message in the format specified by
``date_format'' converted to the local time zone
.
.
.
When I did:
save-hook "some_regexp" =%a
(substituting a real regexp for "some_regexp") it resulted in the prompt:
Save to mailbox ('?' for list): [EMAIL PROTECTED]
where [EMAIL PROTECTED] was the address of the person sending the
message. I think this is what you want.
David
--
Live in a world of your own, but always welcome visitors.