43 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Help with /etc/maildr...
FromSent OnAttachments
CourierDec 29, 2005 5:46 pm 
Sam VarshavchikDec 29, 2005 6:25 pm 
Truong Tan SonDec 29, 2005 7:03 pm 
CourierDec 29, 2005 8:07 pm 
Truong Tan SonDec 29, 2005 8:18 pm 
CourierDec 29, 2005 8:50 pm 
Thorsten HaudeDec 30, 2005 1:28 am 
CourierDec 30, 2005 9:08 am 
Thorsten HaudeDec 30, 2005 9:34 am 
CourierDec 30, 2005 2:35 pm 
Todd LyonsDec 30, 2005 2:56 pm 
CourierDec 30, 2005 3:38 pm 
Todd LyonsJan 2, 2006 1:21 pm 
CourierJan 3, 2006 2:40 pm 
Devin RubiaJan 4, 2006 7:03 am 
Todd LyonsJan 4, 2006 8:07 am 
CourierJan 4, 2006 1:56 pm 
Todd LyonsJan 4, 2006 2:54 pm 
CourierJan 4, 2006 6:28 pm 
Devin RubiaJan 5, 2006 6:11 am 
CourierJan 5, 2006 11:28 am 
Devin RubiaJan 5, 2006 11:46 am 
CourierJan 5, 2006 1:01 pm 
Todd LyonsJan 5, 2006 1:20 pm 
Devin RubiaJan 5, 2006 1:21 pm 
CourierJan 5, 2006 3:06 pm 
Devin RubiaJan 6, 2006 6:23 am 
CourierJan 6, 2006 1:29 pm 
Devin RubiaJan 9, 2006 7:13 am 
CourierJan 9, 2006 2:08 pm 
Todd LyonsJan 9, 2006 3:54 pm 
CourierJan 9, 2006 4:32 pm 
Devin RubiaJan 10, 2006 9:02 am 
CourierJan 10, 2006 10:36 am 
Devin RubiaJan 10, 2006 11:46 am 
CourierJan 10, 2006 12:10 pm 
Devin RubiaJan 10, 2006 1:01 pm 
CourierJan 10, 2006 1:11 pm 
Devin RubiaJan 10, 2006 1:29 pm 
CourierJan 10, 2006 1:56 pm 
Devin RubiaJan 11, 2006 6:52 am 
CourierJan 11, 2006 7:29 am 
Devin RubiaJan 11, 2006 7:52 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [maildropl] Help with /etc/maildroprc fileActions...
From:Thorsten Haude (list@thorstenhau.de)
Date:Dec 30, 2005 9:34:41 am
List:net.sourceforge.lists.courier-maildrop

Hi,

please send me every mail only once.

* Courier wrote (2005-12-30 18:08):

Remove the spurious leading whitespace after the if.

I have a lot of these, as they increase reasability, and usually I have no problems.

Do you have a working config that you would be willing to share ?

Of course. I will outline my files (as I use more than one), please ask whatever I leave unclear and please suggest improvements.

I start with main.md (linked from ~/.mailfilter), which is basically: - - - Schnipp - - - include "$HOME/.mutt/lists.md" include "$HOME/.mutt/spam.md" to $IN - - - Schnapp - - -

Later more on mailing lists, spam.md is as follows: - - - Schnipp - - - if ($SIZE < 256000) { xfilter spamc }

if (/^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*/) { EXITCODE = 99 exit }

if (/^X-Spam-Status: YES/) { to $spambox } - - - Schnapp - - -

This drops all spam level 10 and above and moves anything from 5 to 10 to $spambox.

I, too, keep staring at examples on the various websites, and fail to see what it is that I am missing. Sam didn't reply to the question of which "leading whitespace", (...)

My guess is that he meant the white space between if and the parenthesis. But give him more time to answer, it wasn't so long ago.

I do notice several websites talk about how touchy maildrop syntax is

Never noticed something like that. Against Procmail, it's syntactic ointment.

Once working, I'd like to start adding things, like specific subdirectories for mailing lists, etc.

I store mailing lists in a simple database created by a Ruby program: - - - Schnipp - - - #! /usr/bin/ruby -w

require 'gdbm'

GDBM.open("/path/to/your/list.db") { |gdbm| gdbm['cour@lists.sourceforge.net'] = 'Maildrop' } - - - Schnapp - - -

For more lists, just add more lines like the one on Maildrop, then run the program. You need to re-run it if you add new lists.

After that, it's a breeze thanks to Maildrop GDBM support: - - - Schnipp - - - gdbmopen("/path/to/your/list.db")

foreach /^(To|Cc): .*/ { foreach (getaddr($MATCH)) =~ /.+/ { listbox = gdbmfetch(tolower($MATCH)) if ($listbox ne "") { to $MAILDIR/ML/$listbox } } }

gdbmclose - - - Schnapp - - -

I left a few details out, but that should basically work for you.

Thorsten