Re: [SPAM?] How to allow mutt to send from different accounts on the command line?
On Thu, Aug 11, 2016 at 05:48:01PM -0500, Peng Yu wrote: > Hi, I have msmtp set up on my computer. But I don't find how to > specify different accounts to send email from mutt command line. Does > anybody know how to do it? Thanks. I am also using msmtp, but in a way so that different email addresses are mapped to different accounts in msmtprc because I use different login creds for different accounts: [common settings] account a from o...@example.com [server creds for account a] account b from t...@example.com [server creds for account b] account c [...and so on...] A more mutt-like solution could be to use send-hooks to set the $sendmail variable every time the From: header of an email changes. msmtp accepts the account to be used on the command line as -a $account, send-hook "~f o...@example.com" 'set sendmail = "/usr/bin/msmtp -a a"' send-hook "~f t...@example.com" 'set sendmail = "/usr/bin/msmtp -a b"'
message-hook to run scripts
Hey everyone, I've had a long running problem with my mutt configuration when using message-hook to run a script for unread messages. The configuration looks like this: ``` message-hook '~U !~T ~f notifications@github\.com' \ "push 'set my_old_pipe_decode=\$pipe_decode \ nopipe_decode \ ghnotification.sh \ set pipe_decode=\$my_old_pipe_decode'" ``` Full code here: https://github.com/keith/dotfiles/commit/2071bd80f5d2b44189a1ed6d2aaf00085eaf719f The intention here is to run a script that curls the magic image in GitHub emails to mark them as read on GitHub. Doing this for unread (and as an optimization for the problem, also untagged) messages works fine from the index. If I open a message from the index, the script is executed correctly. The problem comes when I *delete* an *unread* email from the index. In this case it seems that the command is interpreted as a series of key presses. This results in a directory being created locally called: ``` enter-command>set my_old_pipe_decode (etc) ``` It seems that the problem is in how I'm executing the command doesn't work with my delete command: ``` macro index,pager d "+gmail/trash" "Delete message" ``` Any advice on how to work around this would be greatly appreciated! Thanks for reading! -- Keith Smiley
Re: [SPAM?] How to allow mutt to send from different accounts on the command line?
* Peng Yu [08-11-16 18:54]: > Hi, I have msmtp set up on my computer. But I don't find how to > specify different accounts to send email from mutt command line. Does > anybody know how to do it? Thanks. copy your ~/.muttrc to another filename and then edit and change the "from" account. Then specify the alternate rc file on the command line. there are probably other means available ... -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.orgopenSUSE Community Memberfacebook/ptilopteri http://wahoo.no-ip.orgPhoto Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535@ http://linuxcounter.net
[SPAM?] How to allow mutt to send from different accounts on the command line?
Hi, I have msmtp set up on my computer. But I don't find how to specify different accounts to send email from mutt command line. Does anybody know how to do it? Thanks. -- Regards, Peng