mutt: reply email from console

1.2k views Asked by At

I'm using mutt to send me an e-mail when certain event happens:

if [ ... ]
then
  echo "Content" | mutt -s "Subject" -- "[email protected]"
fi

This will send me a new email every time, but I would like that it replies the same e-mail over and over so there is only one e-mail "thread" instead of a new thread for every e-mail.

How can I do this?

Thanks

1

There are 1 answers

0
glenn jackman On BEST ANSWER

You need to add the In-Reply-To: header, and the value will be the message-id of the original email.

I think you'll do this (untested)

echo "content" | 
mutt -s "Subject" -e 'my_hdr In-Reply-To: <[email protected]>' -- [email protected]