summaryrefslogtreecommitdiff
path: root/sendmail-reinject.1.pod
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2022-04-12 13:03:53 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-05-16 16:45:24 -0700
commit932a5acda1c5e5fddcc4fba7d249b2d2b0168fa1 (patch)
treeffec91def4dc5a876c65237ffe1cd1e51f667dee /sendmail-reinject.1.pod
parent6224a07059b71d279c424641422461810d273a6d (diff)
downloadmailscripts-932a5acda1c5e5fddcc4fba7d249b2d2b0168fa1.tar.gz
new script to reinject message via sendmail(1)
This script simply takes an existing mail file, parses it for sender and all recipients, and constructs an appropriate sendmail(1) command to resend the message. It requires the sendmail(1) binary at runtime, and the notmuch python library in order to extract the message from an existing notmuch store. Signed-off-by: Jameson Graef Rollins <jrollins@finestructure.net>
Diffstat (limited to 'sendmail-reinject.1.pod')
-rw-r--r--sendmail-reinject.1.pod45
1 files changed, 45 insertions, 0 deletions
diff --git a/sendmail-reinject.1.pod b/sendmail-reinject.1.pod
new file mode 100644
index 0000000..f89d0f1
--- /dev/null
+++ b/sendmail-reinject.1.pod
@@ -0,0 +1,45 @@
+=encoding utf8
+
+=head1 NAME
+
+sendmail-reinject - reinject an e-mail via sendmail
+
+=head1 SYNOPSIS
+
+B<sendmail-reinject> B<message.eml>
+
+B<sendmail-reinject> B<-> <B<message.eml>
+
+B<sendmail-reinject> B<-i> B<messageID>
+
+
+=head1 DESCRIPTION
+
+B<sendmail-reinject> reinjects a message to your MTA via sendmail.
+The message is read in (via path, stdin, or from notmuch via message
+ID), the sender and recipients are extracted, and the appropriate
+senmdail command is contructed to resent the message.
+
+=head1 OPTIONS
+
+=over 4
+
+=item B<--notmuch-id>,B<-i> B<messageID>
+
+Message ID of message to reinject as know to a local notmuch database.
+Assumes the python3-notmuch package is available.
+
+=item B<--help>, B<-h>
+
+Show usage instructions.
+
+=back
+
+=head1 SEE ALSO
+
+sendmail(1), notmuch(1)
+
+=head1 AUTHOR
+
+B<sendmail-reinject> and this manpage were written by Jameson Graef
+Rollins <jrollins@finestructure.net>.