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

Re: mailto links - from and reply to



Hello Dave,

 On Wednesday, March 22, 2006 at 18:04:34 +0000, Dave wrote:

> when starting [Mutt] from a mailto link in a webpage some settings
> were being ignored - the folder hooks

    That makes sense: Folder-hooks are triggered when opening a folder.
When you start Mutt with a recipient address, just to send one mail,
you're not entering a folder: Folder-hooks are not triggered (not even
the "." default one).


>| set from=dave@xxxxxxxxxxxxxxx
>| set signature="~/.mutt/signature|"

    Good: You've found the correct static way to set your default email
address. You only forgot $realname, and perhaps $hostname.


> but can't seem to find a workaround for Reply To.

    Setting a "Reply-To:" pointing to the same address as the "From:" is
a waste. Better keep then the "From:" only. But if you're sure to want a
"Reply-To:" field, set statically:

| my_hdr Reply-To: dave@xxxxxxxxxxxxxxx


>| folder-hook dave my_hdr From: dave@xxxxxxxxxxxxxxx

    In folder-hooks it is better to set $from, instead of using
"my_hdr From:". Something like:

| folder-hook .         "set from=dave@xxxxxxxxxxxxxxx"
| folder-hook somebox$  "set from=someother@xxxxxxxxxxx"

    First the default folder-hook ("." matching all folders), setting or
resetting the default address (normally the same as the static one).
Then one or more specific folder-hooks, setting the specific address
wanted for each folder.


Bye!    Alain.
-- 
Mutt muttrc tip to send mails in best adapted first necessary and sufficient
charset (version for Western Latin-1/Latin-9/CP-850/CP-1252 terminal users):
set send_charset="us-ascii:iso-8859-1:iso-8859-15:windows-1252:utf-8"