[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem with mhmail
From: |
norm |
Subject: |
Re: Problem with mhmail |
Date: |
Fri, 27 Dec 2019 09:24:43 -0800 |
David Levine <address@hidden> writes:
>I wrote:
>
>> How about this:
>>
>> echo hello norm|mhmail -to norm\@dad.org -subject 'Fetch Errors' -snoop \
>> -profile -sasl -tls -server smtp.gmail.com
>
>Just adding -profile should be sufficient, because the other additions are
>in the send component value of your profile. So,
>
>echo hello norm|mhmail -to norm\@dad.org -subject 'Fetch Errors' -snoop
>-profile
Thank you very much. But I've decided that I am no longer smart enough to
master the intricacies of mhmail.
Instead, I wrote and will use a trivial script, I call "mymail":
-------------------
set -eu
if test $# -ne 1
then
echo >&2 bad arg count
exit 1
fi
folder=+$(mhparam Draft-folder)
draft=$(mhpath new $folder)
echo "To: address@hidden" >> $draft
echo "From: address@hidden" >> $draft
echo "Send: x" >> $draft
echo "Subject: $1" >> $draft
echo ______ >> $draft
cat >> $draft
msg=$(basename $draft)
send $msg
-------------------
Norman Shapiro