View Single Post
  #6 (permalink)  
Old 04-21-2008, 07:46 AM
The Fold The Fold is offline
Active Member
 
Posts: 49
Default

This is just a thought, but would it not be possible to modify the script so that it converts all the e-mail first for a folder then performs a zmmailbox addMessage against that whole folder?

I'm no perl expert by any means but if the line...

Code:
system ("/opt/zimbra/bin/zmmailbox -z -m $user addmessage  /$dirname /tmp/$user/$dirname/mail_$dirname$count.txt");
were moved just outside of the $msg loop and adjusted to read

Code:
system ("/opt/zimbra/bin/zmmailbox -z -m $user addmessage  /$dirname /tmp/$user/$dirname/;
would that not mean it would upload the whole folder?
Reply With Quote