Hi,

Kind of blowing my own horn, but for people running their own Postfix or
Sendmail mail server, this might be handy: https://mailmunge.org/

It's a Swiss-army-knife mail filtering/manipulating tool that integrates
with your MTA.  As an example of something I do with it:  By default,
the Linux list sets the "From:" address to the list address and the
Reply-To: address to the original sender.  I don't like that; I want
my replies to go to the list by default.  So this little snippet of Perl
takes care of it:

        if ($ctx->canonical_sender() =~ 
/^linux\+bounces.*\@linux-ottawa\.org$/i) {
                # The linux list sets Reply-To: to the original sender.
                # I prefer it to be set to the list address.
                # So set From: back to the original sender
                # and Reply-To: to the list address
                my $repto = $ctx->mime_entity->head->get('Reply-To');
                if ($repto) {
                        chomp($repto);
                        $ctx->action_change_header('From', $repto);
                        $ctx->log('info', 'linux-ottawa list: Setting Reply-To: 
to list address and From: to ' . $repto);
                }
                $ctx->action_change_header('Reply-To', 'linux 
<[email protected]>');
        }

I also have it send a notification about incoming email to an IRC
channel on an internal server; on my desktop, I have an IRC bot that
looks for that and notifies me of incoming email with "notify-send".

Regards,

Dianne.

To unsubscribe send a blank message to [email protected]
To get help send a blank message to [email protected]
To visit the archives: https://lists.linux-ottawa.org

Reply via email to