In case the consistency issue isn't as obvious as I had thought, I
present some specific concerns. Suppose, for simplicity, that my desktop
computer is always connected to the internet, with perfect uptime, and
that I have the rsync cron job on my laptop, which is often not
connected to the internet. I can also run the rsync manually. Here are
some problematic situations that could arise.

I inc on the laptop but close it before I run rsync. Then I inc on the
desktop. Both inc runs created new files in the same folder with the
same number.

I write a draft on the laptop when I do not have internet access. Before
I get around to connecting to the laptop, I also write a draft on the
desktop. Both drafts have the same number.

I refile 1000 messages, or I pack, on the laptop while I do not have
internet access. The issue is the same sort of issue as the previous
scenarios, except that it's a lot more messages.



I guess I could do rsync and have a way of resolving the conflicts: If
two identically named files aren't exact matches, rename one of them to
a higher number. Has anyone already written that?

On Thu, Sep 1, 2016, at 03:56 PM, hy...@lactose.homelinux.net wrote:
> rsync from cron ?
> 
> --hymie!    http://lactose.homelinux.net/~hymie   
> hy...@lactose.homelinux.net
> My fitbit says I've walked 3304 steps today (as of 15:49).
> 
> Thomas Levine writes:
> >I want to access the same mails from both my laptop computer and my
> >desktop computer. I can do this with naive copying if I always
> >synchronize before I inc, refile, send, &c, but that often requires a good
> >internet connection, and it is too easy for the synchronization to
> >accidentally not happen and thus to lead to filename conflicts.
> >Are there any very good ways of using mail between two computers?
> >
> >Two easy things I thought of
> >
> >* Use separate folders for the separate computers
> >  (+laptop/inbox, +laptop/outbox, +desktop/inbox, +desktop/outbox)
> >  and write wrappers that make the typing less verbose.
> >* Patch nmh so that you can configure a different modulus for each
> >  computer. New files will be numbered only as multiples of this
> >  modulus. In my case, for example, I could use odd numbers for the
> >  desktop and even numbers for the laptop
> 
> _______________________________________________
> Nmh-workers mailing list
> Nmh-workers@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/nmh-workers

_______________________________________________
Nmh-workers mailing list
Nmh-workers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to