On Mon, 2009-11-16 at 14:18 -0700, LuKreme wrote:
On 16-Nov-2009, at 11:43, JW Simpson wrote:
Well I don't have the same mailbox setup that you have.
I've developed enough interest in your project though, that if you want
to zip up your Maildir ( with any sensitive info purged, of course ),
and e-mail it to me, I'd be happy to experiment and see what I can come
up with.
I made sure there where some new emails (11 I think) and I stripped out the
non-current mailboxes. It's all list mail, so not at all private personal,
etc.
(url clipped)
Ok ... here is a start:
john(_at_)system76-pc:~/LuKreme/tmp$ cat test.rc
VERBOSE=no
LOGFILE=/dev/stderr
CUR_LIST=`/usr/bin/find Maildir/ -regex '.*/cur/.*,'|/usr/bin/gawk -F/
'{print $2}'`
:0
* 1^1 CUR_LIST ?? httpd-users
{ n_HTTPD_USERS = $= }
:0
* 1^1 CUR_LIST ?? mailman-users
{ n_MAILMAN_USERS = $= }
:0
* 1^1 CUR_LIST ?? mythtv-users
{ n_MYTHTV_USERS = $= }
:0
* 1^1 CUR_LIST ?? postfix-users
{ n_POSTFIX_USERS = $= }
:0
* 1^1 CUR_LIST ?? procmail
{ n_PROCMAIL = $= }
:0
* 1^1 CUR_LIST ?? ^.*$
{ TOTAL = $= }
MESSAGE_TEXT="$n_HTTPD_USERS httpd-users
$n_MAILMAN_USERS mailman-users
$n_MYTHTV_USERS mythtv-users
$n_POSTFIX_USERS postfix-users
$n_PROCMAIL procmail"
LOG="$MESSAGE_TEXT
"
:0
/dev/null
john(_at_)system76-pc:~/LuKreme/tmp$ echo "" | procmail -pm test.rc
2 httpd-users
1 mailman-users
5 mythtv-users
1 postfix-users
2 procmail
Folder: /dev/null
1
john(_at_)system76-pc:~/LuKreme/tmp$
I have a recursive for loop for procmail if you want to get *really* fancy. :D
--
JW Simpson <john(_at_)swajime(_dot_)com>
SwaJime's Cove℠
____________________________________________________________
procmail mailing list Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)de
http://mailman.rwth-aachen.de/mailman/listinfo/procmail