-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stefano Pogliani wanted us to know:

>In the examples I saw, the default was always to $HOME/Mail

Mail gets delivered to a default (what you might call INBOX) of
/var/spool/mail/${USER}.  This is also where UW-Imap expects INBOX to
be.

All other mailboxes usually exist in ${HOME}/mail or ${HOME}/Mail,
depends on your imap server.  I think UW uses ${HOME}/mail.  So
configure your .procmailrc to do something like:


MAILDIR=$HOME/mail      
<snip>

# Regenerate "From" lines to make sure they are valid
:0 fhw
| formail -I "From " -a "From "

# Header inserted by SpamAssassin
:0:
* ^X-Spam-Flag.*YES
Spam

# I don't want all the bug tracking emails at my home
:0:
* [EMAIL PROTECTED]
/dev/null

:0:
* ^X-Loop.*cooker@
Cooker

:0:
* ^X-Loop:.*expert@
Expert

# Send all bounces into a special folder
:0:
* ^From.*MAILER-DAEMON
MailerDaemon

# CRON jobs come from root, so capture to a special folder
:0:
* ^From:.*root@
Root
 
>  1. if the format of the file in /var/spool/mail/{username} is the
>     same of the one supposed to be in $HOME/Mail nor if a difference
>     in format would make any difference at all

If you're using UW-Imap, it by default uses mbox style which is the same
as /var/spool/mail/${USER}.

>  2. how to make the "username" in /var/spool/Mail/{username}
>     parametric so that it actually gets the username of the current
>     account

Not sure what you're asking.  You don't want to filter your emails into
that directory.  That's where they go by default.  The general thought
process is that the mails run through procmail and check through each
rule.  If it makes it to the end without matching anything, it gets
delivered to the default location of /var/spool/mail/${USER}.  The mail
system knows what the username is.

- -- 
Blue skies...           Todd
| Get a bigger hammer!   |  All vendors suck, but different ones  |
| http://www.mrball.net  |  suck less in different applications.  |
| http://faq.mrball.net  |                --Andy Walden on NANOG  |
Linux kernel 2.4.19-24mdk   5 users,  load average: 0.00, 0.04, 0.22
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: http://www.mrball.net/todd.asc

iD8DBQE/MEc6IBT1264ScBURAuYxAJ9el6zuRXMjeBvVQJzc1IzbRQOUZQCgl9zb
HgZ95qnzbK6TlPadZn9cV1c=
=1ohD
-----END PGP SIGNATURE-----

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to