From 07cd3fc40cd47f760316b5793f66ae80677d4000 Mon Sep 17 00:00:00 2001 From: cantcuckthis <102478867+cantcuckthis@users.noreply.github.com> Date: Mon, 28 Mar 2022 06:06:57 +0000 Subject: [PATCH] Changes for sendmail Runs pass show and directs its output to /dev/null trying to send mail --- bin/mw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mw b/bin/mw index 6f2e271..cbcda2d 100755 --- a/bin/mw +++ b/bin/mw @@ -94,7 +94,7 @@ prepmutt() { echo "# vim: filetype=neomuttrc # muttrc file for account $fulladdr set realname = \"$realname\" set from = \"$fulladdr\" -set sendmail = \"msmtp -a $fulladdr\" +set sendmail = \"pass show $fulladdr &> /dev/null; msmtp -a $fulladdr\" alias me $realname <$fulladdr> set folder = \"$folder\" set header_cache = $cachedir/$fulladdr/headers @@ -132,7 +132,7 @@ set imap_pass = \"\`pass $fulladdr\`\" set ssl_starttls = yes set ssl_force_tls = yes" ;; - pop) synccmd="macro index o \"mpop $fulladdr\" \"run mpop to get $fulladdr's mail\"" + pop) synccmd="macro index o \"pass show $fulladdr &> /dev/null; mpop $fulladdr\" \"run mpop to get $fulladdr's mail\"" folder="$maildir/$fulladdr" prepmpop ;; *) synccmd="macro index o \"pass show $fulladdr &> /dev/null; mw -y $fulladdr\" \"run mbsync to sync $fulladdr\""