imapsync from Gmail to Courier subfolder

This is a discussion on imapsync from Gmail to Courier subfolder within the IMAP forums in Other Technologies category; I've had it with Googlemail's tagging duplicating messages in subfolders when viewed via an IMAP client. So I'm migrating my Google messages to my Courier IMAP server, with imapsync. What I want to achieve, is to replicate the confusing Google hierachy under INBOX.gmail.*, then I'll deal with it manually from there. I read the FAQ (from Google's cache - it appears to be down), but no dice. imapsync --host1 imap.googlemail.com --user1 someuser --passfile1 imappasswd \ --host2 localhost --user2 someotheruser --passfile2 imappasswd2 --ssl1 \ --regextrans2 's/^(.*)/INBOX.GMAIL.$1/' --dry --justfoldersizes However the output suggests that --regextrans2 isn't working. Should it contain entries for ...

Go Back   Application Development Forum > Other Technologies > IMAP

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 07-22-2008, 12:57 PM
TD
Guest
 
Default imapsync from Gmail to Courier subfolder

I've had it with Googlemail's tagging duplicating messages in subfolders when
viewed via an IMAP client. So I'm migrating my Google messages to my Courier
IMAP server, with imapsync.

What I want to achieve, is to replicate the confusing Google hierachy under
INBOX.gmail.*, then I'll deal with it manually from there.

I read the FAQ (from Google's cache - it appears to be down), but no dice.

imapsync --host1 imap.googlemail.com --user1 someuser --passfile1 imappasswd \
--host2 localhost --user2 someotheruser --passfile2 imappasswd2 --ssl1 \
--regextrans2 's/^(.*)/INBOX.GMAIL.$1/' --dry --justfoldersizes

However the output suggests that --regextrans2 isn't working. Should it
contain entries for INBOX.GMAIL.*? All I see are entries for currently
existing folders on the target.
Reply With Quote
  #2  
Old 07-22-2008, 01:47 PM
Bill Kearney
Guest
 
Default Re: imapsync from Gmail to Courier subfolder


"TD" <topper.doggle@googlemail.com> wrote in message
news:g653i8$ml6$1@registered.motzarella.org...
> I've had it with Googlemail's tagging duplicating messages in subfolders
> when
> viewed via an IMAP client. So I'm migrating my Google messages to my
> Courier
> IMAP server, with imapsync.


I've had mixed success trying to sync boxes. Instead I've switched to
using fetchmail to pull all the mail from one and then use dmail to deliver
it locally. Works great, but that's with the uw-imap package.

Reply With Quote
  #3  
Old 07-22-2008, 01:49 PM
TD
Guest
 
Default Re: imapsync from Gmail to Courier subfolder

On 2008-07-22, Bill Kearney <wkearney99@hotmail.com> wrote:
>
> "TD" <topper.doggle@googlemail.com> wrote in message
> news:g653i8$ml6$1@registered.motzarella.org...
>> I've had it with Googlemail's tagging duplicating messages in subfolders
>> when
>> viewed via an IMAP client. So I'm migrating my Google messages to my
>> Courier
>> IMAP server, with imapsync.

>
> I've had mixed success trying to sync boxes. Instead I've switched to
> using fetchmail to pull all the mail from one and then use dmail to deliver
> it locally. Works great, but that's with the uw-imap package.
>


Thanks but I'm sure this is do-able with imapsync if I get the parameters
right. I'm not changing IMAP server for such a small reason.
Reply With Quote
  #4  
Old 07-24-2008, 09:44 PM
Bill Kearney
Guest
 
Default Re: imapsync from Gmail to Courier subfolder


> Thanks but I'm sure this is do-able with imapsync if I get the parameters
> right. I'm not changing IMAP server for such a small reason.


I've never been that optimistic at getting the various imap syncing tools to
work (and stay working) reliably. I don't know that you can't do the same
thing with your server. fetchmail itself doesn't really care about the
server, it's the tool used to insert the mail that's server-specific. So
don't rule it out, especially after banging your head against the wall
trying to wrestle with the sync tools.


Reply With Quote
  #5  
Old 07-25-2008, 03:26 AM
Gilles Lamiral
Guest
 
Default Re: imapsync from Gmail to Courier subfolder



> imapsync ...
> --regextrans2 's/^(.*)/INBOX.GMAIL.$1/' --dry --justfoldersizes
>
> However the output suggests that --regextrans2 isn't working. Should it
> contain entries for INBOX.GMAIL.*? All I see are entries for currently
> existing folders on the target.


The mistake comes from --justfoldersizes option meaning:
--justfoldersizes : exit after printed the folder sizes.

Try:
--justfolders : just do things about folders (ignore
messages).

Just --dry is good too.

Au revoir, 02 99 64 31 77
Gilles Lamiral. France, Chavagne (35310) 06 20 79 76 06
Reply With Quote
  #6  
Old 07-25-2008, 04:56 AM
TD
Guest
 
Default Re: imapsync from Gmail to Courier subfolder

On 2008-07-25, Gilles Lamiral <gilles.lamiral@gmail.com> wrote:
>
>
>> imapsync ...
>> --regextrans2 's/^(.*)/INBOX.GMAIL.$1/' --dry --justfoldersizes
>>
>> However the output suggests that --regextrans2 isn't working. Should it
>> contain entries for INBOX.GMAIL.*? All I see are entries for currently
>> existing folders on the target.

>
> The mistake comes from --justfoldersizes option meaning:
> --justfoldersizes : exit after printed the folder sizes.
>
> Try:
> --justfolders : just do things about folders (ignore
> messages).
>
> Just --dry is good too.
>


Thanks Gilles, I tried --justfolders and it looks better. I'll try the real
sync now.
Reply With Quote
  #7  
Old 07-28-2008, 10:25 PM
Gilles Lamiral
Guest
 
Default Re: imapsync from Gmail to Courier subfolder

Hello TD,

> Thanks Gilles, I tried --justfolders and it looks better. I'll try the real
> sync now.


Did you succeed ?
Don't hesitate to feedback issues with imapsync.
I can help a little about it.

Au revoir, 02 99 64 31 77
Gilles Lamiral. France, Chavagne (35310) 06 20 79 76 06
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 03:37 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.