Hi Steffen,

> No, i am sorry.  This code path just does not know anything about
> readily prepared mail messages, it assumes a plain text body and
> optionally supports some (raw, plain text) header fields.

First of all, thanks for reply! As I'm anyway using a wrapper and
header fields should be at the top of the message, then I could
replace the first line of stdin matching the "^Subject: .*" regex with
plain text "Subject: apt-listchanges: changelogs for vps" line:

$ cat /usr/sbin/sendmail
#!/usr/bin/env bash

sed '0,/^Subject: .*/ s//Subject: apt-listchanges: changelogs for
vps/' | /usr/bin/mailx -t
$

This seems to work fine.


regards,
Martin

Reply via email to