<<< Date Index >>>     <<< Thread Index >>>

Re: Running a shell command while saving messages to mailboxes



+----[ Michael Kjorling <michael@xxxxxxxxxxxx> (16.Dec.2004 11:47):
|
| I'm not entirely up to speed on maildir, so the "cur" may be wrong,
| but what about a cron job doing something like this? (Assuming bash.)
| 
|       for msg in mailbox/cur/*
|       do
|         cat mailbox/cur/${msg} | sa-larn --ham
|       done
|
+----]

Actually, it's simpler:

sa-learn --ham path/to/mailbox/cur

works for me (it scans all messages under cur/)

Fernan