Claus -

        I read email from both my laptop and desktop machines (which are
each in different email domains, ISPs, etc), and I do this fairly simply
since my email server uses POP3 (I believe that something similar is
possible using IMAP, but I don't know exactly how to do it since I don't
have access to any mail servers which run IMAP).  Just use fetchmail and
supply the UIDL keyword - now each host running email will d/l its own
copy of your mail (thus, both the laptop and the main PC will each have
the full set of email).  Of course, you'll have to d/l and mark as read
email on 1 machine which you've already read on the other but that's
pretty trivial and easy.  And using fetchmail makes it easy to use
procmail as well, which is a Good Thing.

Here's my fetchmail invocation from my .fetchmailrc:

poll <pop3 mail server> with proto POP3 uidl
       user "<remote username>" there with password "<password>"
       is "<local username>" here
              options keep

Works okay for me and is fully automatic.  No need for rsync, single
mutt running guarantees, etc.

/joel

Quoting Claus Fischer <[EMAIL PROTECTED]>:

> ------------------------------
> 
> Date: Fri, 13 Oct 2000 23:31:03 -0700
> From: Claus Fischer <[EMAIL PROTECTED]>
> Subject: How can I use mutt on disconnected laptops?
> 
> I have a laptop which is sometimes disconnected from my main PC.
> I want to use mutt alternatingly on both systems, for the same
> inbox and mail folders.
> Does anyone have a proven method of doing that?
> Like that:
>              work on main PC
>              synchronize
>              disconnect
>              work on laptop
>              connect
>              synchronize
>              ... [ start over ]
> 1. I'm thinking of using rsync for the mail folders. I'd have to use
>    an mbox since rsync doesn't know about mail spool locking.
>    Can I somehow run mutt in batch mode to move all mail from
>    /var/spool/username to ~username/mbox before syncing?
> 2. Is there a better tool for handling mail boxes than rsync?
>    One that merges two mailbox files but doesn't create
>    duplicate identical messages?
> 3. I need to guarantee that mutt isn't running while I do the
>    rsync, otherwise something will be corrupted.
>    Is it possible to gracefully terminate a running mutt?
>       killall -QUIT mutt
>           mutt:
>           -> kill editor
>           -> postpone currently composed message
>           -> do a `quit' (including expunge)
>           -> remove pid file
>           -> exit(0)
>       wait for pid file to go away and rsync
>       [ just dreaming ]
> If someone has experience with that situation I would
> appreciate scripts or comments; otherwise I'll experiment
> and perhaps report back.
> Regards,
> Claus
> - -- 
> Claus Fischer <[EMAIL PROTECTED]>
> 

-- 

joel wittenberg
[EMAIL PROTECTED]             [work]
[EMAIL PROTECTED]             [permanent]

Reply via email to