[Mutt] help on complicated per-folder or per-sender sending email hooks
Mihai Lazarescu
mtlagm at gmail.com
Wed Nov 24 17:21:06 UTC 2021
On Wednesday, November 24, 2021 at 10:23:31 -0600, Ranjan Maitra wrote:
> set smtp_url="smtp://yourusername@smtp.example.com:587/"
> set smtp_pass="Your1!Really2 at AweSome3#Password"
>
> But what do I do about the work email that uses postfix?
If you unset smtp_url mutt should connect to port 25 on localhost
to send, where should listen postfix properly configured for work
in your case.
> 2. I want e-mails in a few folders (basically the ones attached
> to mailing lists) to use a specific account. For example, I
> have a folder called mutt, and I would like to be able to use
> this email address that I am using to be my account whenever I
> send emails from this folder. Otherwise, I would like emails
> sent to a specific account also be responded to from that
> account.
I think you want to use folder-hook recipes, something like:
folder-hook . 'unset smtp_url'
folder-hook 'mutt' 'set from = maitra at email.com; set smtp_url="smtp://yourusername@smtp.example.com:587/"; set smtp_pass="Your1!Really2 at AweSome3#Password"'
Mihai
More information about the Mutt-users
mailing list