Re: mailfilter (was Re: missing /var/mail)
On Mon, Feb 04, 2008 at 03:34:01AM -0600, Ron Johnson wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 02/04/08 01:54, Chris Bannister wrote:
> [snip]
> >
> > example from .mailfilter:
> >
> > DEFAULT=$HOME/Mail/IN-personal/
> >
> > if (/^X-Loop: debian-user@lists\.debian\.org$/)
> > {
> > to "$HOME/Mail/IN-debian-user/"
> > }
> >
> > Notice the slash after IN-debian-user and IN-personal
>
> Are you using Maildir?
Yep.
> This is how it has to look when you drop email into Maildir:
Has to?
> if ( /^Subject: \-\- Spam \-\-/ )
^^^^^^^^^^^^^[1]
> {
> to "Maildir/.Spam"
> }
The Directory is immaterial, I have mine in $HOME/Mail/
also:
ls -al Mail/IN-debian-user/
total 132
drwx------ 5 chrisb staff 4096 2007-09-23 08:30 .
drwx------ 117 chrisb staff 4096 2008-02-03 19:54 ..
drwx------ 2 chrisb staff 45056 2008-02-05 02:15 cur
drwx------ 2 chrisb staff 73728 2008-02-08 22:59 new
drwx------ 2 chrisb staff 4096 2008-02-08 22:59 tmp
And since "Mail/IN-debian-user/" is a directory and not a file then I see
"Mail/IN-debian-user/" rather than "Mail/IN-debian-user" being more
correct.
> if ( /^X-Mailing-List:.*<debian-user@lists.debian.org>*/ )
^^^^^^^^^^^^^^^^^^^^^[2]
> {
> to "Maildir/.Lists.Debian.User.2008q1"
^^^^^^^^^^^^^^^^^^^^^^^^^
Is that a nested directory structure, or one directory?
> }
>
My setup is working perfectly.
[1] Why are you escaping the '-' here but ...
[2] not here?
--
Chris.
======
Reply to: