[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Diff for mangling of INBOX folder with unix hierarchy seperator
|
From |
Stefan Schmidt <jsj at jsj dot dyndns dot org> |
|
Subject |
Diff for mangling of INBOX folder with unix hierarchy seperator |
|
Date |
Mon, 26 Jan 2009 11:32:16 +0100 |
Hi,
our source server (Cyrus IMAPD) runs with unixhierarchysep, thus our
top-level folder is named "INBOX/" instead of "INBOX.".
This folder is copied to "INBOX/INBOX" on the destination server.
To prevent this to happen -- which does not happen when the source
server's top-level folders are named "INBOX.", the attached patch
fixes this behaviour.
Patch ist against imapsync 1.267.
Greetings,
Stefan
=========================================
--- imapsync.orig 2009-01-09 15:44:02.000000000 +0100
+++ imapsync 2009-01-15 11:40:13.000000000 +0100
@@ -1229,7 +1229,7 @@
$debug and print "inverted separators : [$t_fold]\n";
# Adding the prefix supplied by namespace or the --prefix2 option
$t_fold = $t_prefix . $t_fold
- unless(($t_prefix eq "INBOX.") and ($t_fold =~ m/^INBOX$/i));
+ unless(($t_prefix eq "INBOX" . $t_sep) and ($t_fold =~ m/^INBOX$/i));
$debug and print "added target prefix : [$t_fold]\n";
# Transforming the folder name by the --regextrans2 option(s)
=========================================
--
Stefan Schmidt jsj at jsj dot dyndns dot org