Mailing List CGatePro@mail.stalker.com Message #95940
From: David Colville <david@keyoptions.com.au>
Subject: Re: Converting mailboxes from plaintext to mdir. - Case[6OHZ0902-905KY]
Date: Wed, 3 Sep 2008 09:04:30 +1000
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
X-Mailer: Apple Mail (2.928.1)
Hi,
I've found better luck with the script from Niversoft.

http://www.niversoft.com/products/cgscripts/#convert_mailboxes
On 03/09/2008, at 8:52 AM, ish Support wrote:

Roman

I think the script needs a little bit of tweaking, I know no perl so i can not help.

None the less it looked t o do a lot but result wise it seems to just have duplicated the directory structure naming one as --old--, which still has all of the email in it and the new structure having nothing in it. Is it safe to just re-run the script again on the server? Or should we just manage the rest manually.

Thanks

Support
On 02/09/2008, at 1:21 PM, Technical Support, Stalker Labs wrote:

Hello,
ish Support on 02.09.2008 6:49 wrote:

Roman
The only download link I can find on that page is, http://www.communigate.com/CGPerl/CLI.pm. this is the same download I used  this morning and its still not working. Is there a later version somewhere else? I have been unable to find it.

*** Can't kill sessions for postmaster@scc.nsw.edu.au:

Use some other account for testing, not postmaster.

When it converts mailboxes it needs to be no open sessions with that account.


Thanks
Support
On 02/09/2008, at 11:50 AM, Technical Support, Stalker Labs wrote:
Hello,
ish Support on 02.09.2008 4:55 wrote:

Roman
Thanks, I copied the script you sent to me, and updated the server in question to 5.2.7 as it came out 15 minutes after you sent your email. :) I have just set it now to work on one email account only and I am receving the following:
./ConvertMailboxesnew.pl
* OK CommuniGate Pro IMAP Server 5.2.7 at scc.nsw.edu.au ready
Account: postmaster@scc.nsw.edu.au
Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/5.8.8/BSDPAN/CLI.pm line 3358, <GEN1> line 4.

Please update the CLI.pm, get one from <http://www.communigate.com/CGPerl/>

Use of uninitialized value in concatenation (.) or string at ./ConvertMailboxesnew.pl line 115, <GEN1> line 4.
*** Can't kill sessions for postmaster@scc.nsw.edu.au:
Done
Use of uninitialized value in pattern match (m//) at /usr/local/lib/perl5/5.8.8/BSDPAN/CLI.pm line 3358, <GEN1> line 4.
Thanks
Jurgen
On 02/09/2008, at 9:31 AM, Technical Support, Stalker Labs wrote:
Hello,
ish Support on 02.09.2008 3:12 wrote:

Hello
I have a client I wish to convert their mailboxes from plaintext to mdir for a variety of reasons. To complete this I am using the following script written by Roma.
http://cgpro.servicemail24.com/index.php?main=view.php&subid=65

In that web page some long lines are broken; and the below broken line causes the error you're getting:
die "*** Can't login to CGPro IMAP: $responseLine.\n" unless($responseLine =~ /^x
OK/);


I fill in all the variables as necessary and download the CLI, when I run the script I receive the following output:
/ConvertMailboxes.pl
* OK CommuniGate Pro IMAP Server 5.1.3 at scc.nsw.edu.au ready

Please upgrade to 5.2.6 <http://www.communigate.com/CommuniGatePro/History.html>

*** Can't login to CGPro IMAP: x OK completed
.
It does not matter what I did I could not get it to work. I upped the logged on the imap listener and got this
09:05:50.924 5 IMAP connection request from [127.0.0.1]:64169, socket=25
09:05:50.924 5 IMAP new VStream created, n=8
09:05:50.924 5 IMAP stream thread started
09:05:50.924 4 IMAP-031092([127.0.0.1]) got connection on [127.0.0.1]:143(scc.nsw.edu.au) from [127.0.0.1]:64169
09:05:50.924 5 IMAP-031092([127.0.0.1]) out: * OK CommuniGate Pro IMAP Server 5.1.3 at scc.nsw.edu.au ready\r\n
09:05:50.924 5 IMAP-031092([127.0.0.1]) inp: x LOGIN postmaster ter$123
09:05:50.924 2 IMAP-031092([127.0.0.1]) 'postmaster@scc.nsw.edu.au' connected from [127.0.0.1]:64169
09:05:50.924 5 IMAP-031092([127.0.0.1]) out: x OK completed\r\n
09:05:50.925 3 IMAP-031092([127.0.0.1]) read failed. Error Code=connection closed by peer
09:05:50.925 2 IMAP-031092([127.0.0.1]) 'postmaster@scc.nsw.edu.au' disconnected ([127.0.0.1]:64169)
09:05:50.925 4 IMAP-031092([127.0.0.1]) closing connection
09:05:50.925 4 IMAP-031092([127.0.0.1]) releasing stream
Cgate server version 5.1.3, running on FreeBSD 6.2.
Thanks for your help to any clues on how I might get this running.
Support.
-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001


--
Sincerely,
Roman



--
Sincerely,
Roman

=======================================================================
When answering to letters sent to you by the tech.support staff, make
sure the original message you have received is included into your reply.
-------------------------->
ish
http://www.ish.com.au
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001


--
Sincerely,
Roman

=======================================================================
When answering to letters sent to you by the tech.support staff, make
sure the original message you have received is included into your reply.

-------------------------->
ish
Level 1, 30 Wilson Street Newtown 2042 Australia
phone +61 2 9550 5001   fax +61 2 9550 4001


-----------------------------------------------
David Colville
Technical Director
Key Options Technology Pty Ltd
11/78 Reserve Road  Artarmon   NSW    2064
E: david@keyoptions.com.au T:  1300 721 769 - F:  +61 2 9475 0837 - M: +61 412 200 855

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster