imapsync to a shared folder

Victor Silva vfbsilva at gmail.com
Wed Aug 27 02:25:00 CEST 2014


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

Can't you use '*' as wildcard?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20140826/6cc75c4f/attachment.html>


More information about the users mailing list