-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 12-Jul-2002/13:36 -0400, Jay Daniels <[EMAIL PROTECTED]> wrote: > >With redhat the procmail default mailbox is /var/spool/mail/$USER > >How can I safely set it to use a file in the users home directory like >$USER/mail/INBOX for all users? Or is it safe to do so? > >I would like to try mutt again and had an idea that if procmail would >deliver to ~/mail/INBOX mutt could view all mail folders in the same set >folder directory. Does this make any sense?
I use procmail and mutt just like this. There are two ways to accomplish this in procmail. You can specify a default folder at the beginning of ~/.procmailrc: DEFAULT=$HOME/mail/Inbox I used to do it like that. But I have use this mutt macro to check mail and display the filter results: macro index \ef "!fetchmail ; mailstat ~/procmail.log\n" "Fetchmail" So I press [Esc],[f] and see my mail download and get a summary of where everything went. To get that summary, I have to have procmail log its filter actions: LOGFILE=$HOME/procmail.log And to simplify the folder list in the summary output, I specify $MAILDIR. Mailbox specifications in ~/.procmailrc are relative to $MAILDIR, and the summary output only shows the relative path: MAILDIR=$HOME/mail Instead of specifying a default mail spool, my last mail filter puts all remaining mail into my Inbox: :0 * ^Received Inbox That way, instead of looking like this: Total Number Folder ----- ------ ------ 61709 1 /dev/null 150073 6 /home/username/mail/Inbox 13370 2 folder1 53116 3 folder2 14628 5 folder3 3619 1 folder4 94158 20 folder5 2794 1 folder6 ----- ------ 393467 39 it looks like this: Total Number Folder ----- ------ ------ 61709 1 /dev/null 150073 6 Inbox 13370 2 folder1 53116 3 folder2 14628 5 folder3 3619 1 folder4 94158 20 folder5 2794 1 folder6 ----- ------ 393467 39 >Or could I just make a link to it like so... [snip] Not necessary. >I know there may be an unforseen problem here with locking the mail spool >file when fetchmail runs as daemon mode if you are viewing the file in >mutt at the same time. Any advice? Procmail and mutt handle this well enough that I've never had a problem, although I don't run fetchmail as a daemon very often. Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux: the choice of a GNU Generation. <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]> iD8DBQE9Lx36pCpg3WyUI50RAsISAJ9p+7xqb1luuwrKwc9xssY1n4ka9ACcCjm+ 1fkbp9smi/L5dbsYgRqJIwQ= =G324 -----END PGP SIGNATURE----- _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list