Re: How can I get mail from /var/mail/jatmin to my spoolfile
On Sun, Feb 08, 2009 at 11:15:31AM +0800, bill lam wrote:
> On Sat, 07 Feb 2009, Josef Atmin wrote:
> > After having discovered macros I came up with the following solution for
> > moving mail from /var/mail/jatmin to ~/INBOX.
> >
> > macro index,pager G "\
> > <enter-command>unset wait_key<enter>\
> > <shell-escape>\
> > if [[ -s /var/mail/$USER ]]; then\
> > cat /var/mail/$USER >> ~/INBOX;\
> > echo -n > /var/mail/$USER;\
> > fi<return>\
> > <enter-command>set wait_key<enter>\
> > <fetch-mail>" "fetch local and pop3 mail"
> >
>
> Did you forget to file lock mail/$USER on entry of script?
>
Thanks for pointing that out. How would I do that? Set permissions to
non-writable?
Josef.