Default Mailbox problem

2000-12-28 Thread Peter Dobrev

Hello everybody!
I've got very little experience in Mutt and I've got a problem. When Mutt
starts it automaticly open /var/spool/mail/peterdob. I've set the mbox
variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by default and store the
new messages there (to move them from /var/spool/mail/peterdob). Is this
possible and how? Thank you!
Best Wishes, Peter! 



Re: Default Mailbox problem

2000-12-28 Thread Frank Naumann

Hallo Peter,
try procmail. You will have to create a file ~/.procmailrc with the
following content:

# ~/.procmailrc
PATH=/bin:/usr/bin
MAILDIR=$HOME/mail
DEFAULT=$MAILDIR/Inbox
LOGFILE=$MAILDIR/log 

Greetings,
Frank


On Thu, Dec 28, 2000 at 11:50:46AM -0200, Peter Dobrev wrote:
 When Mutt
 starts it automaticly open /var/spool/mail/peterdob. I've set the
 mbox
 variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by
 default and store the
 new messages there (to move them from /var/spool/mail/peterdob).
   
-- 

Hi! I'm the infamous .signature virus!
Copy me into your ~/.signature to help me spread!




Re: Default Mailbox problem

2000-12-28 Thread Abhay Ghaisas

Hi,

Frank Naumann [EMAIL PROTECTED]  wrote --
 try procmail. You will have to create a file ~/.procmailrc with the
[snip -- useful .procmailrc info]

 On Thu, Dec 28, 2000 at 11:50:46AM -0200, Peter Dobrev wrote:
  When Mutt
  starts it automaticly open /var/spool/mail/peterdob. I've set the
  mbox
  variable to "~/mail/Inbox". I want Mutt to open ~/mail/Inbox by
  default and store the
  new messages there (to move them from /var/spool/mail/peterdob).

Procmail will take care of saving messages in different inbox for you.
To make that the default spool mailbox for mutt, you will have to set
the "spoolfile" variable instead of "mbox" variable like:

set spoolfile=+Inbox

BTW, for the correct expansion of "+" to "~/mail", you will also have to
set the folder variable to "~/mail" like:

set folder="~/mail"

That, with procmail, would be what the doctor ordered.

Regards,
Abhay.
-- 
Abhay Ghaisas / [EMAIL PROTECTED]
Motorola India Electronics Ltd., Bangalore, India.



Re: Default Mailbox problem

2000-12-28 Thread Dirk Ruediger

Hi,

On Thu, Dec 28, 2000, Frank Naumann wrote:

 Hallo Peter,
 try procmail. You will have to create a file ~/.procmailrc with the
 following content:
 
 # ~/.procmailrc
 PATH=/bin:/usr/bin
 MAILDIR=$HOME/mail
 DEFAULT=$MAILDIR/Inbox
 LOGFILE=$MAILDIR/log 
 
 Greetings,
 Frank
 
 
 On Thu, Dec 28, 2000 at 11:50:46AM -0200, Peter Dobrev wrote:
  When Mutt starts it automaticly open /var/spool/mail/peterdob. I've
  set the mbox variable to "~/mail/Inbox". I want Mutt to open
  ~/mail/Inbox by default and store the new messages there (to move
  them from /var/spool/mail/peterdob).

You forgot to mention, that you have to create a file ~/.forward
with the contents (yust this one line):
|procmail

Your MTA (sendmail etc.) reads this file and (in this case) pipes the
mail through procmail.

Ciao for now, Dirk
-- 
Dirk Ruediger, Rostock, Germany
 
Going to church does not make a person religious, nor does going to school
make a person educated, any more than going to a garage makes a person a car.



Re: Default Mailbox problem

2000-12-28 Thread Frank Naumann

Hello Dirk,
sorry. I forgot to explain, that i use fetchmail to poll from a
foreign pop server. If so, you do not need ~/.forward.

Greetings,
Frank

On Thu, Dec 28, 2000 at 01:03:38PM +0100, Dirk Ruediger wrote:
 
 You forgot to mention, that you have to create a file ~/.forward
 with the contents (yust this one line):
 |procmail

-- 

Hi! I'm the infamous .signature virus!
Copy me into your ~/.signature to help me spread!