Thanks! Here is the improved macro:
macro index,pager G "\
unset wait_key\
\
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\
set wait_key\
" "fetch local and pop3 m
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)"
--
regards,
GPG key 1024D/4434BAB3 2008-08-24
gpg --k
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 "\
> > unset wait_key\
> > \
> > if [[
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 "\
> unset wait_key\
> \
> if [[ -s /var/mail/$USER ]]; then\
> cat /var/mail/$USER >> ~/INBOX;\
> echo
After having discovered macros I came up with the following solution for
moving mail from /var/mail/jatmin to ~/INBOX.
macro index,pager G "\
unset wait_key\
\
if [[ -s /var/mail/$USER ]]; then\
cat /var/mail/$USER >> ~/INBOX;\
echo -n > /var/mail/$USER;\
fi\
set wait_key\
" "fetch local a
e and then synchronization is easy.
Any other suggestions?
Cheers, Josef.
On Fri, Feb 06, 2009 at 11:19:21AM +0100, Ionel Mugurel Ciobica wrote:
> On 6-02-2009, at 11h 06'55", Ionel Mugurel Ciobica wrote about "Re: How can
> I get mail from /var/mail/jatmin to my spoolfil
On 6-02-2009, at 11h 06'55", Ionel Mugurel Ciobica wrote about "Re: How can I
get mail from /var/mail/jatmin to my spoolfile ~/INBOX ?"
>
> I have my maibox in file located in $HOME/Mail by simply setting the
> MAIL variable. I use tcsh so this goes in my .login
On 6-02-2009, at 10h 30'29", Josef Atmin wrote about "How can I get mail from
/var/mail/jatmin to my spoolfile ~/INBOX ?"
>
> Hello mutt users,
>
> I am new to mutt and cannot figure out how to move mail from my local
> spoolfile /var/mail/jatmin (or
Hello mutt users,
I am new to mutt and cannot figure out how to move mail from my local
spoolfile /var/mail/jatmin (or /var/spool/mail/jatmin) to my mutt
$spoolfile ~/INBOX when I press 'G' (or automatically).
I need this for the following reason. Since I work in different
cities, I use di