Download

pm2imap.pl 0.0.1 2000-05-29

# convert Pegasusmail 3.12c Mailboxes to Unix (imap) Mailboxes
# tested with Pmail 3.12c, but possible works with any Pmail 3+ versions

# Author: Michiel Dethmers, michiel@***.co.uk
# Copyright (C) 2000 Michiel Dethmers
# License: GPL

# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

# This perl script will convert your pegasus mailboxes *and trays*
# to unix mbox format in an Imap tree.
# 
# Situation: Suppose you use Pegasusmail on a work station that has 
# it's mailbox on a Linux server. Run this script in the folder that
# contains your Pegasus folders and it will create a directory
# structure which reflects the folder structure in Pegasusmail. You can 
# then run an Imap server on your Linux server and access your mail
# with IMAP. A possible and good IMAP server is the one from the 
# Washington University, http://www.washington.edu/imap/
#
# Alternatively, if you store your Pegasus mail folders somewhere
# else, either mount it to your linux box with smbmount (on the like)
# or copy it all across.

# In default settings, it will create the first directory to be 
# "My Mailbox" which is the name Pegasusmail gives the top folder
# that name will be different if you have renamed the top folder
# 
# bugs/todo:
# * I have a huge number of folders and trays in Pegasusmail, and it worked
# for me. The one thing it didn't work on was when the size of a mailfolder
# was very large, so I have put a restriction of 15Mb to the size
# This is probably system dependent, my Linux box doesn't have that much
# memory (32Mb) so it choked on Mailfolders larger than that. If you have
# loads of memory, you can increase the size.
# * The script is quite memory and processor demanding, and I may rewrite it 
# a bit to avoid that, if I find some time.
# * It may break on invalid chars that you use for Folder names. Drop me a line
# if it does.

# Drop me a note if you think this was a useful script.

# Credits: a small part of the code was taken from peg2eud.pl by 
# E. Heyns (heyns@*****.deMon.nl) (sub write_message)

Question: Why would I want to use this script?
Answer: I don't know, I used it, but you have to figure out for yourself whether you need it.