Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1009617: mailscripts: new script to reinject a message via sendmail: sendmail-reinject

0 views
Skip to first unread message

Jameson Graef Rollins

unread,
Apr 12, 2022, 6:40:04 PM4/12/22
to
Package: mailscripts
Version: 0.24-1
Severity: wishlist
Tags: patch

Attached is a patch (via git format-patch) for a script to re-inject
an existing message via sendmail. The script extracts the sender and
all recipients from the message and constructs the appropriate
sendmail command to re-send the message. This is very useful for
messages that were fcc'd but for some reason failed to make it out on
an initial pass (e.g. MTA misconfiguration). A man page is also
included.

Thanks for the useful package!

jamie.


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (600, 'testing'), (500, 'unstable-debug'), (200, 'unstable'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.16.0-5-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages mailscripts depends on:
ii libconfig-tiny-perl 2.28-1
ii libfile-which-perl 1.23-1
ii libipc-system-simple-perl 1.30-1
ii liblist-moreutils-perl 0.430-2
ii libmail-box-perl 3.009-1
ii perl 5.34.0-3
ii python3 3.9.8-1

Versions of packages mailscripts recommends:
ii devscripts 2.22.1
ii git 1:2.35.1-1
ii libgit-wrapper-perl 0.048-1
ii notmuch 0.35-2
ii python3-argcomplete 1.12.3-0.1
ii python3-gssapi 1.6.12-2
ii python3-pgpy 0.5.4-4

Versions of packages mailscripts suggests:
ii gnutls-bin 3.7.3-4+b1
ii gpg 2.2.27-3+b1
ii gpg-agent 2.2.27-3+b1
ii gpgsm 2.2.27-3+b1
pn libdbd-sqlite3-perl <none>
ii libemail-date-format-perl 1.005-1.1
ii libio-socket-ssl-perl 2.074-2
ii libmailtools-perl 2.21-1
ii libmime-lite-perl 3.033-1
ii libtry-tiny-perl 0.31-1
pn libxml-feed-perl <none>
ii openssl 1.1.1n-1

-- no debconf information
0001-new-script-to-reinject-message-via-sendmail.patch

Jameson Graef Rollins

unread,
May 16, 2022, 12:30:03 PM5/16/22
to
On Wed, May 11 2022, Sean Whitton <spwh...@spwhitton.name> wrote:
> Hello Jameson,
>
> On Tue 12 Apr 2022 at 03:17PM -07, Jameson Graef Rollins wrote:
>
>> Package: mailscripts
>> Version: 0.24-1
>> Severity: wishlist
>> Tags: patch
>>
>> Attached is a patch (via git format-patch) for a script to re-inject
>> an existing message via sendmail. The script extracts the sender and
>> all recipients from the message and constructs the appropriate
>> sendmail command to re-send the message. This is very useful for
>> messages that were fcc'd but for some reason failed to make it out on
>> an initial pass (e.g. MTA misconfiguration). A man page is also
>> included.
>
> Cool, I'd like to add this. Just two questions
>
> - what license are you releasing it under? please add the usual
> copyright and license headers and update d/copyright
>
> - how about renaming --id to --notmuch-id or --notmuch-message-id ?

Thanks Sean. --notmuch-id seems ok to me. Do you want to go ahead and
make the change, or should I resend the patch?

jamie.

Sean Whitton

unread,
May 16, 2022, 1:00:04 PM5/16/22
to
Hello,
Well, you also need to add the license header, so please resend.

--
Sean Whitton

Jameson Graef Rollins

unread,
May 16, 2022, 3:40:04 PM5/16/22
to
Here's a new version of the patch addressing Sean's comments.

0001-new-script-to-reinject-message-via-sendmail.patch

Jameson Graef Rollins

unread,
May 16, 2022, 7:40:03 PM5/16/22
to
One more time...

0001-new-script-to-reinject-message-via-sendmail.patch
0 new messages