Bug 63275 - autoreply filter for incoming mails
Summary: autoreply filter for incoming mails
Status: RESOLVED DUPLICATE of bug 23303
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.5.3
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-26 12:27 UTC by Stefan Frings
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***