Moving to Sylpheed from PMMail

Federico Voges fvoges
Mon May 17 11:44:54 PDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On Thu, 27 Feb 2003 21:34:21 -0800 (PST), stayler wrote:

>Well it seems the promised Linux version of PMMAil is pretty much a
>piece of Vaporware so I'm looking to transfer some of my old PMMail
>folders to Sylpheed.  

I though that I was the only one using PMMail ;)

>PMMail uses directories and a somewhat strange
>way of tagging msg's as individual files.  I understand that Sylpheed
>is similar but the files are numbered in order.  Is there a simple way
>in BASH to rename the files in a directory with numbers in ascending
>order?  
>

Maybe this helps:

- ---- cut ----
#!/bin/bash

SRC=[put PMMail messages dir pathname here]
DST=[put destination dir here]
C=0
# PMMail uses 1 file per message (named [something].msg)
for f in $SRC/*.[mM][sS][gG]
do
  cp $f $DST/$0
  C=$[ $C + 1 ]
done
- ---- cut ----

It's very simple, but should do the work ;)

Note: I haven't tried this script. Use at your own risk :)

BTW: I've looked at the format used by folder.ini and you can get the
folder name. 

cat folder.ini |awk 'BEGIN {FS="\xde"} {print $1}'

You should be able to do some kind of recursive script to convert your
whole folder tree from PMMail to Sylpheed. I don't use Sylpheed, so I
don't know how it stores the mails/folders.

Federico Voges
Socio gerente

Intrasoft
Malabia 2137 14 A
(1425) Buenos Aires
Argentina

Te/Fax: 54-11-4833-5182
e-mail: fvoges at intrasoft.com.ar
Web: http://www.intrasoft.com.ar

-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.0

iQA/AwUBPl79OBRcJRaVKt4XEQJArgCg/Kos/mExl8iSK0z9yZvLEs+SRScAn3f0
ODQIWmk+mt78nabh1KqAoiSe
=kctL
-----END PGP SIGNATURE-----





More information about the Linux-users mailing list