ordago
ordago

Reputation: 375

mutt: reply email from console

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

Upvotes: 2

Views: 1272

Answers (1)

glenn jackman
glenn jackman

Reputation: 246877

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]

Upvotes: 2

Related Questions