Bug 14242 - import procmail filters
Summary: import procmail filters
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Applications
Component: filtering (show other bugs)
Version: 1.1.99
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-31 18:03 UTC by Emmanuel Blindauer
Modified: 2012-05-11 17:31 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 4.9


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel Blindauer 2000-10-31 17:59:01 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: kmail
Version: 1.1.99 (KDE 2.0)
Severity: wishlist
Compiler: gcc version 2.95.2 20000220 (Debian GNU/Linux)
OS: Linux 2.2.17 i686 (Debian Package 4:2.0-final-0)

It should be fine if procmailrc files could be inported for simple procmail files :)

Emmanuel
Comment 1 H Dijkema 2001-05-30 22:42:24 UTC
What are those procmailrc files?
Comment 2 Malte Cornils 2002-08-04 02:27:22 UTC
Hi

you wrote:
> What are those procmailrc files?

following up to the bug report on 14242. I'm not the original reporter but 
since such a feature (importing those files via kmailcvt) would be extremely 
useful to me too here it goes.

Procmail is *the* UNIX standard package for a local mail filter system after 
the MTA has delivered mail. You can also use procmail stand-alone as a filter 
for local mailboxes. 

procmail has lots of documentation available in its man pages and on the web; 
however I've attached a sample .procmailrc file afterwards which should 
make it obvious how simple filters are constructed with procmail. Procmail is 
infinitely more powerful than that though :-)

-Malte #8-)

---cut (my ~/.procmailrc or at least an excerpt)---
PATH=/usr/local/bin:/usr/bin:/bin
MAILDIR=$HOME/Mail      #you'd better make sure it exists
DEFAULT=$MAILDIR/test_out   #completely optional 
                                             #(otherwise /var/mail/$USER 
                                              #is taken
#LOGFILE=$MAILDIR/from   #recommended

#############################################
#lists that filter via Resent-Sender
#############################################

:0:
* ^Resent-Sender.*debian-devel-request@lists.debian.org
debian-dev

:0:
* ^Resent-Sender.*debian-user-german-request@lists.debian.org
debian-user-de

:0:
* ^Resent-Sender.*debian-openoffice-request@lists.debian.org
debian-oo

:0:
* ^Resent-Sender.*debian-kde-request@lists.debian.org
debian-kde

:0:
* ^Resent-Sender.*debian-x-request@lists.debian.org
debian-x

#############################################
#lists that filter via Delivered-To
#############################################

:0:
* ^Delivered-To.*lyx-devel@lists.lyx.org
lyx

:0:
* ^Delivered-To.*dev@tools.openoffice.org
oo-tools

:0:
* ^Delivered-To.*skipstone@muhri.net
skipstone


#############################################
#fake lists that filter via Reply-To
#############################################

:0:
* ^Reply-To.*dante-misc@inet.no
dante

#############################################
#fake lists that filter via To (DANGEROUS!)
#############################################

:0:
* ^To.*dante-misc@inet.no
dante

#############################################
#fake lists that filter via From
#############################################

:0:
* ^From.*info@baden-wuerttemberg.de
info-bawue

:0:
* ^From.*info@transgaming.com>
transgaming

:0:
* ^From.*webmaster@pc-gratis.de>
pc-gratis

:0:
* ^From.*pdesc@ddtp.debian.org
ddtp

#############################################
#lists that filter via Sender
#############################################

:0:
* ^Sender.*owner-pm@studis.de
pm

:0:
* ^Sender.*owner-abs-ak@studis.de
abs

:0:
* ^Sender.*owner-basin@faveve.uni-stuttgart.de
basin

:0:
* ^Sender.*owner-lak-bawue@faveve.uni-stuttgart.de
lak-bawue

:0:
* ^Sender.*owner-abiword-dev@abisource.com
abiword

:0:
* ^Sender.*video4linux-list-admin@redhat.com
v4l

:0:
* ^Sender.*ipaq-admin@handhelds.org
ipaq

:0:
* ^Sender.*support-admin@freenetproject.org
freenet-support

:0:
* ^Sender.*owner-xpert@XFree86.Org
xpert

:0:
* ^Sender.*xpert-admin@XFree86.Org
xpert

:0:
* ^Sender.*owner-plex86@fastxs.net
plex86

:0:
* ^Sender.*winex-cvs_logs-admin@lists.sourceforge.net
winex-cvs

:0:
* ^Sender.*gabber-discuss-admin@lists.sourceforge.net
gabber-discuss

:0:
* ^Sender.*licq-devel-admin@lists.sourceforge.net
licq

:0:
* ^Sender.*licq-main-admin@lists.sourceforge.net
licq-main

#############################################
#single persons that filter via From
#############################################

:0:
* ^From.*Jane Doe
friends

:0:
* ^From.*John Doe
enemies
-------end!--------
Comment 3 Daniel Molkentin 2003-02-23 20:54:40 UTC
This belongs to KMail itself, since importing filters is out of KMailCvt's scope. 
Comment 4 Mikolaj Machowski 2008-03-06 20:20:05 UTC
Hmm. Pity it wasn't implemented but... Is it really relevant in 2008? Less and less people are coming into Linux/KDE from command line world. I think this wish could be close with WONTFIX.
Comment 5 Jonas Vejlin 2009-07-31 08:03:48 UTC
The devs did have around 9 years to fix it and have not done it so I agree with #4
Comment 6 Laurent Montel 2012-01-23 13:08:00 UTC
I added abstract filter import (thunderbird and evolution filter was implemented now). If I understand procmail filter I can add it.
Comment 7 Laurent Montel 2012-02-24 15:53:06 UTC
I started to implement load procmail filter in 4.9