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

Re: How can I get mail from /var/mail/jatmin to my spoolfile



Thanks! Here is the improved macro:

   macro index,pager G "\
<enter-command>unset wait_key<enter>\
<shell-escape>\
if [[ -s /var/mail/$USER ]]; then\
  mutt_dotlock -p /var/mail/$USER;\
  cat /var/mail/$USER >> ~/INBOX;\
  echo -n > /var/mail/$USER;\
  mutt_dotlock -p -u /var/mail/$USER;\
fi<return>\
<enter-command>set wait_key<enter>\
<fetch-mail>" "fetch local and pop3 mail"

Josef.


On Sun, Feb 08, 2009 at 11:01:03PM +0800, bill lam wrote:
> On Sun, 08 Feb 2009, Josef Atmin wrote:
> > Thanks for pointing that out.  How would I do that?  Set permissions to
> > non-writable?
> 
> Does any of the followings help?
> $ man -k lock | grep "(1)"
>