Re: [Evolution] Bouncing emails



On Fri, 2016-08-05 at 12:18 +0100, Patrick O'Callaghan wrote:
Return to sender, possibly with an error indication.

Hi,

writing a script using msmtp (e.g. /usr/local/bin/msmtp-wrapper.sh)
could do this.

In Evolution

1. Selecting a mail
2. Right-Click
3. Create > Create a Filter Rule for sender...
4. Sender   is   foo bar net
   Pipe to Program   /usr/local/bin/msmtp-wrapper.sh
   or
   Run Program?

I never used it myself. Some MUAs provide variables to hand e.g. just
the message body over. I don't know what exactly Evolution does.

I can't provide such a script, but I once used msmtp myself and at least
simple usage is easy to do without a hard learning curve. It's at least
available for Arch Linux and Ubuntu:

[rocketmouse@archlinux moonstudio]$ ls -Gg /usr/bin/sendmail 
lrwxrwxrwx 1 5 May  6 20:31 /usr/bin/sendmail -> msmtp
[rocketmouse@archlinux moonstudio]$ pacman -Qi msmtp | head -3
Name            : msmtp
Version         : 1.6.4-1
Description     : A mini smtp client
[rocketmouse@archlinux moonstudio]$ ls -hAl usr/sbin/sendmail 
lrwxrwxrwx 1 root root 12 Feb 17 23:55 usr/sbin/sendmail -> ../bin/msmtp
[rocketmouse@archlinux moonstudio]$ sudo systemd-nspawn -q dpkg -l msmtp | grep ii
ii  msmtp          1.6.3-1build1 amd64        light SMTP client with support for server profiles

Regards,
Ralf



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]