Changes

Jump to navigation Jump to search
825 bytes added ,  03:32, 5 January 2014
Example using regextrans2
Line 1: Line 1: −
==== Install imapsync on SME9beta2 ====
+
====Example Renaming Destination Folder====
 +
Imapsync can rename folders as it transfers email.  This example transfers 'zLearnAsSpam' and 'zLearnAsHam' from 'Public Folders' on server1 to 'LearnAsSpam' and 'LearnAsSpam' in the root of the destination user's mailbox.
 +
 
 +
The renaming is accomplished using the 'regextrans2' directive.
 +
 
 +
Tested with imapsync v1.350
 +
 
 +
<nowiki>usr/bin/imapsync \
 +
--noauthmd5 --buffersize 8192000 --nosyncacls \
 +
--host1 192.168.1.11 --port1 993 --ssl1 --user1 username1 --passfile1 /root/secret1 \
 +
--delete --expunge1 --prefix1 "Public Folders." \
 +
--host2 localhost --port2 993 --ssl2 --user2 username2 --passfile2 /root/secret2 \
 +
--folder "Public Folders/zLearnAsSpam" \
 +
--folder "Public Folders/zLearnAsHam"  \
 +
--regextrans2 's/Public.Folders.//' \
 +
--regextrans2 's/zLearn/Learn/' \
 +
--noauthmd5</nowiki>
 +
 
 +
== Install imapsync on SME9beta2 ==
 
CentOS6 / SME9 includes one of the imapsync dependencies (perl-Parse-RecDescent) in the 'base' repo.  Consequently, it does not exist in the dag repo.
 
CentOS6 / SME9 includes one of the imapsync dependencies (perl-Parse-RecDescent) in the 'base' repo.  Consequently, it does not exist in the dag repo.
   Line 6: Line 24:       −
==== Older Notes and Comments ====
+
== Older Notes and Comments ==
 
  <nowiki>==== Install imapsync ====
 
  <nowiki>==== Install imapsync ====
 
  yum --enablerepo=dag install perl-Mail-IMAPClient-2.2.9 imapsync
 
  yum --enablerepo=dag install perl-Mail-IMAPClient-2.2.9 imapsync

Navigation menu