On 20Feb2016 22:01, Gabriel Philippe <gabri.phili...@gmail.com> wrote:
On Sat, Feb 20, 2016 at 9:40 PM, Cameron Simpson <c...@zip.com.au> wrote:
Me too. I run postfix as the local mail system on this Mac and have mutt
deliver to it.

Having your local machine mail system working is very useful - you can send
messages while offline and they will be queued and go out when you're next
online. For example, when catching up on email on a train.

I do use exim and experience all of that. :)

Excellent.

It does require config outside your homedir, but on the other hand your
machine's mail system is then useful.

Can you outline what kind of criteria you would want to use in your hooks?

That's the point. I don't want personal configuration outside of my
$HOME (such as SMTP password). Depending of the recipient or the
folder I'm in, I want to set which SMTP server, password, $from to
use. This can be done easily by using mutt's SMTP capabilities and
dynamically changing $smtp_url, but I would prefer using different
$sendmail.

What I need is an external program to get the message to deliver, with
queue management (that's tricky), and every configuration and
temporary files within my $HOME. Best of 2 worlds. :)

I cannot offer you anything prepackaged (aside from running a private exim or postfix - let us not go there).

One simple thing you can do is use a Maildir for your outbound email and have a small program monitor it for messages. When a message arrives, decide on the SMTP parameters and send. That solves the queuing issue.

Were it me, I would be tempted to use my mail filing program "mailfiler" since it works by monitoing Maildirs and acting on rules. For example:

 "|smtp_send isp1 credentials" . to:person_via_isp1
 "|smtp_send isp2 credentials" . to:person_via_isp2
 "|smtp_send isp3 credentials" . to:(GROUP_FOR_ISP3)

Crude but might work.

Setting $from would need to happen inside mutt in the compose phase.

Cheers,
Cameron Simpson <c...@zip.com.au>

Reply via email to