Subject: PC-pine / pine dual-boot?

From: Rick Carter <[email-masked]>
Date: Wed, 3 Mar 2004 15:56:57 -0500 (Eastern Standard Time)

Hi all,

I've been searching the archives, and aside from someone in 2001 saying it
wasn't working for them, I was wondering if anyone's been able to do what
I want to do:

My PC is dual-boot -- Windows 2000 (probably soon to be Windows XP
Professional) and RedHat Linux 9.  I'm currently just getting my mail on
the Windows side with PC-Pine from a POP3 server.  The mailboxes and
pinerc are on a FAT32 partition (drive F:) which I mount as /F on the
Linux side.

I need to be on each side of this system relatively equally, and ideally
would love to use pine and pc-pine to hit the same mailboxes.

Last I knew (doing some experiments back when I was reading pine on a Sun
and put PC-pine on my home Windows box), the end-of-line difference
between Windows and unix/Linux made this not work properly, but I'm
surprised not to see lots of requests for getting this to work somehow.

So, can any/all of the following be done (easily, or with workarounds):

- Read the mailboxes on both sides without one side of this causing
corruption? (vital)

- Get my pop3 mail to my INBOX, and send mail from either side (vital)

- Read the .pinerc and appropriately apply/ignore options (not as vital --
I can just remember to update one with any changes in, say filtering
rules, or write a perl script or something to do it).

If I can get this working, my last major dual-boot unhappiness will be
solved. :)

Thanks,

- Rick
-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Matt Ackeret <[email-masked]>
Date: Wed, 3 Mar 2004 13:12:43 -0800 (PST)

>- Get my pop3 mail to my INBOX, and send mail from either side (vital)

Why don't you just use IMAP?  I _think_ that will solve part of your
problems, since the mail will just be on the server, and it doesn't matter
where you access it from.. you can even access it from multiple clients
simultaneously, which you can't do with POP.

---

From: Rico Barth <[email-masked]>
Date: Thu, 4 Mar 2004 09:00:27 +0100 (Westeuropäische Normalzeit)

Hi!

> simultaneously, which you can't do with POP.

IMAP will solve some problems, but if you need your boxes on a local
filesystem you could configure this in .pinerc.
You must set "sentmail", "savemail" and other used folders on Unix to
the path of your mounted Win partition.
Another way is to set an rsync at login/logout to sync your local boxes
between win and Unix. In this case you should convert your windows mail
folders to Unix line end.
Backup up your local folders before you do this. the folders could crash
sometimes on win.

Hope that helps

Bye Rico

-- 
Dipl.-Math. Rico Barth
T-Systems
Systems Integration
Berater BU Sachsen
Anschrift: Clausstrasse 3 , 09126 Chemnitz
Telefon:   +49 ( 371) 5359 - 350
Telefax:   +49 ( 371) 5359 - 133
Mobil:     +49 ( 160) 94 82 15 82
E-Mail:    [email-masked]
Internet:  http://www.t-systems.com

PGP-Key:
Fingerprint: 8A56 C021 6240 EAD5  AB42 EA2B 9B2E 1405  874C 8377
http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x874C8377

---

From: Rico Barth <[email-masked]>
Date: Thu, 4 Mar 2004 09:44:47 +0100 (Westeuropäische Normalzeit)

Hi Simon!

On Thu, 4 Mar 2004, Simon White wrote:

> 04-Mar-04 at 09:00, Rico Barth ([email-masked]) wrote :
> How do you rsync between a system that is shutting down and another that
> hasn't booted yet?

the shutdown of operation systems says nothing about the reachability of
their filesystems. the data of mail folders is on a physical volume. after
Unix boot partition on harddrive which is used by Win could mount. in this
case you could say on login or in boot-scripts

rsync -av --delete ${PATH_to_mounted_win_drive}/${Mail Path}/ ~user/Mail/

and on logout or in halt-scripts in the other way.

> I managed to convert some Windows Pine folders to UNIX mboxes which then
> opened back up in Pine OK, but I don't remember the exact details. That
> might be a solution. IMAP would probably be better.

that's right, the reasons for central mail servers and folders are for
instance:

-central backup
-big volumes with enough space
-reachability from any point on the net

Bye

Rico

PGP-Key:

---

From: Simon White <[email-masked]>
Date: Thu, 4 Mar 2004 09:55:28 +0100

> their filesystems. the data of mail folders is on a physical volume. after

Since I've always used rsync between two separate running systems
(remote sync) I hadn't thought about syncing two folders on the same
running system. But why, in this case, use rsync at all, instead of
directly accessing the same mail store in Win and Linux? Is rsync doing
DOS to UNIX file format conversion (you could simply use dos2unix /
unix2dos for that)... what is the 'added value' of rsync here?

Regards,

-- 
 /| _ _  Simon White, Web Manager 
/ |  | \ MediaDev, 5 bis rue du Louvre, 75001 Paris, France
 _|_ |   Tel: +33 1 40 15 92 00  Fax: +33 1 40 15 92 62
    _|_/ http://www.mediadev.com  email: [email-masked]

---

From: Rico Barth <[email-masked]>
Date: Thu, 4 Mar 2004 10:07:03 +0100 (Westeuropäische Normalzeit)

Hi Simon!

> unix2dos for that)... what is the 'added value' of rsync here?

the only reasons to use rsync on the same system are to get a local backup
of the mailfolders and you don't need to change the default values in
.pinerc. The better way is to set the mounted folders in .pinerc. This was
my first thought I wrote in the first mail.
IMHO rsync can't use dos2unix or unix2dos online. but if you need this
feature try to pipe the data.

Bye

Rico

PGP-Key:

---

From: Simon White <[email-masked]>
Date: Thu, 4 Mar 2004 10:19:00 +0100

04-Mar-04 at 10:07, Rico Barth ([email-masked]) wrote :
> the only reasons to use rsync on the same system are to get a local
> backup of the mailfolders and you don't need to change the default
> values in .pinerc. The better way is to set the mounted folders in
> .pinerc. This was my first thought I wrote in the first mail.

Forgive me my pedantry, but that doesn't explain the added value of
rsync.

If I recall correctly, rsync (even local) requires running a daemon, no?
What I'm getting at is that how is rsync different from plain old "cp
-R" to move those files around? Sure, the rsync might only copy
differences, but with most mail folders on a local harddisk is the extra
effort really worth it?

Regards,

---

From: Rico Barth <[email-masked]>
Date: Thu, 4 Mar 2004 10:30:38 +0100 (Westeuropäische Normalzeit)

Hi Simon!

> differences, but with most mail folders on a local harddisk is the extra

And this is why I use rsync. rsync transfers only differences and files
which are deleted would also remove from the destination. in case of use
of cp -R deleted files stay in destination directory til the day you
remove it manually.
if you use rsync on local system the daemon will start automatically only
for the sync process even if you start rsync on console to sync
directories.

Bye

Rico

PGP-Key:

---

From: Nancy McGough <[email-masked]>
Date: Thu, 4 Mar 2004 11:11:38 +0000 (GMT)

> - Read the mailboxes on both sides without one side of this causing

If you're having trouble with mailboxes that are in mbox format,
try using c-client MBX format. I think that this format, which is
better in a lot of ways, should work with both Unix- and PC-Pine
(and not need any end-of-line adjustments). I have some
information and lots of links about Pine's mailbox formats here:

 <http://www.ii.com/internet/messaging/pine/#wishFormat>

> - Get my pop3 mail to my INBOX, and send mail from either side (vital)

To do get your pop3 mail, use Pine's Maildrop feature, which I
discuss here:

 <http://www.ii.com/internet/messaging/pine/pc/#mvMaildrop>

To send from either side, set smtp-server to the appropriate SMTP
server (or list of servers).

> rules, or write a perl script or something to do it).

You can run Pine with commands like this:

 pine -p pinerc-shared -x pinerc-windows
 pine -p pinerc-shared -x pinerc-linux

where the -x (exceptions) pinerc contains settings that are
specific to that system. I discuss this in detail here:

 <http://www.ii.com/internet/messaging/pine/sharing/>

> If I can get this working, my last major dual-boot unhappiness will be

Let us know if you get this working.
Good luck,
Nancy

-- 
Nancy McGough
Infinite Ink ~ <http://www.ii.com>
Deflexion & Reflexion ~ <http://deflexion.com>

---

From: Ryan Barrett <[email-masked]>
Date: Thu, 4 Mar 2004 22:25:47 -0800 (PST)

> for the sync process even if you start rsync on console to sync

if you rsync to/from a remote machine, you can do rsync -e to use a remote
shell program (like rsh or ssh) instead of the rsync daemon. in fact, this
is almost always how i see rsync used.

-Ryan

--
"Woooo!"  -Twinsen