Bug 63275

Summary: autoreply filter for incoming mails
Product: [Applications] kmail Reporter: Stefan Frings <stefan.frings>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: wishlist    
Priority: NOR    
Version: 1.5.3   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:

Description Stefan Frings 2003-08-26 12:27:41 UTC
Version:           1.5.3 (using KDE 3.1.3)
Installed from:    SuSE
Compiler:          gcc version 3.2
OS:          Linux (i686) release 2.4.19-4GB

I like to auto-reply all eMails that contain a keyword and were send to my old eMail account that I do not want to use anymore. I think this can only be done by an external filter program although this is a very common filter. Therefore you may want to include such a filter into the kmail program nstead using an external program to make it easier:

IF (receiver contains "mail.isis.de") AND (message text contains "sms") THEN run external program ~/autoreply:

#!/bin/sh
tmp=`mktemp /tmp/mailXXXXXX`
formail -r > $tmp
echo "My eMail address has changed to stefan.frings@vodafone.de. Please send aga
in." >> $tmp
/usr/sbin/sendmail `formail -x "To:" <$tmp` < $tmp
rm $tmp

In my case I want only answer mails containing the keyword sms because I do not want to answer bulk mails and mails coming from MS-Outlook worms.

bye
Comment 1 Marc Mutz 2003-09-28 01:54:01 UTC

*** This bug has been marked as a duplicate of 23303 ***