<p dir="ltr"><br>
Em 26/08/2014 19:17, "Nathanael D. Noblet" <<a href="mailto:nathanael@gnat.ca">nathanael@gnat.ca</a>> escreveu:<br>
><br>
> On Tue, 2014-08-26 at 16:01 -0600, Nathanael D. Noblet wrote:<br>
> > On Tue, 2014-08-26 at 15:39 -0600, Nathanael D. Noblet wrote:<br>
> > > So I received a reply from Victor Silva who pointed me at<br>
> > ><br>
> > > <a href="https://lists.andrew.cmu.edu/pipermail/info-cyrus/2007-February/025173.html">https://lists.andrew.cmu.edu/pipermail/info-cyrus/2007-February/025173.html</a><br>
> > ><br>
> > > Using that I finally found the right incantation I think.<br>
> > ><br>
> > > imapsync --host1 HOST1... --host2 HOST2 --prefix2 "Shared<br>
> > > Folders/shared/secretary/" --regextrans2 's/INBOX//'<br>
> > ><br>
> > > It seems to be working - the one thing I'm not sure about is if it now<br>
> > > ignores what was in the HOST1 users' inbox. I'm hoping it drops the<br>
> > > messages in the INBOX into Shared Folders/shared/secretary, but for now<br>
> > > its seems to be transferring the sub folders properly.<br>
> ><br>
> > So that transfers everything except the contents of the INBOX.<br>
> ><br>
> > Could not create folder [Shared Folders/shared/secretary/] from [INBOX]:<br>
> > 14 NO Mailbox already exists<br>
> ><br>
> > It seems that it thinks this is an error and then doesn't transfer the<br>
> > mail when really its not an error it just tried to create something that<br>
> > already existed? I wonder if that's a bug in imapsync or not but you'd<br>
> > think it would be able to detect the existence of a folder. That's<br>
> > pretty crucial to its main function so I wonder what's going wrong here.<br>
> ><br>
> > Anyone have any ideas?<br>
><br>
> So it seems it has to do with trailing '/' characters. I need to run the<br>
> command twice (or be way better at regexp perhaps).<br>
><br>
> I logged in manually to the imap server to see what it would do with<br>
><br>
> A1 STATUS "Shared Folders/shared/secretary" (MESSAGES UNSEEN RECENT)<br>
> vs<br>
> A1 STATUS "Shared Folders/shared/secretary/" (MESSAGES UNSEEN RECENT)<br>
><br>
> The first command completes successfully, the second is the folder<br>
> doesn't exist. So because of that I need to run one command to sync just<br>
> the inbox with<br>
><br>
> --prefix2 "Shared Folders/shared/secretary" --regextrans2 's/INBOX//'<br>
> --folder INBOX<br>
><br>
> and the other<br>
><br>
> --prefix2 "Shared Folders/shared/secretary/" --regextrans2 's/INBOX//'<br>
><br>
> to get any subfolders. Seems to work now, if there are suggestions on<br>
> how to make that work properly in once command I'm all ears otherwise<br>
> I'll just run it twice.<br>
><br>
> --<br>
> Nathanael<br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@lists.kolab.org">users@lists.kolab.org</a><br>
> <a href="https://lists.kolab.org/mailman/listinfo/users">https://lists.kolab.org/mailman/listinfo/users</a></p>
<p dir="ltr">Can't you use '*' as wildcard? <br>
</p>