[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



Is there some way I can stop imapsync going through every folder in the
destination account? Surely it only needs to look at folders relevant to the
folders it is moving from in the source account?

Thanks,

mark.

--001636498e2d2426a9046312ca29
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I have been migrating an archive of old mail to my gmail account, and now h=
ave nearly 1200 labels in my gmail account. I want to consolidate these int=
o a few labels, but unfortunately Google doesn't allow wildcards to sea=
rch label names, and the search string has a fairly short length limit so I=
 can't easily get Google to display messages from a lot of folders in o=
ne view (in which case I could easily then apply a new label to those messa=
ges and I&#39;d be done).<div>

<br></div><div>imapsync to the rescue!</div><div><br></div><div>I have writ=
ten a script to run imapsync successively, moving messages from once Gmail =
folder to a new one. This works fine, but with one catch. It is taking abou=
t 25 minutes to run once (even if it&#39;s only copying a couple of small m=
essages). Before I had all these labels, imapsync was running reasonably qu=
ickly (maybe a couple of minutes per run).</div>

<div><br></div><div>From using --debugimap, it looks like imapsync is cycli=
ng through every folder in the destination account and this is taking the t=
ime.</div><div><br></div><div>Here&#39;s the command line I am using:-</div>
<div><br></div><div><div>imapsync --user1 <a href=3D"mailto:mark at xxx dot com" t=
arget=3D"_blank">mark at xxx dot com</a> --password1  PWCHANGED --user2 <a href=3D"mailto=
:mark at xxx dot com" target=3D"_blank">mark at xxx dot com</a> --password2  PWCHANGED --host1 <=
a href=3D"http://imap.gmail.com"; target=3D"_blank">imap.gmail.com</a> --por=
t1 993 --host2 <a href=3D"http://imap.gmail.com"; target=3D"_blank">imap.gma=
il.com</a> --port2 993 &nbsp;--ssl1 --ssl2 --useheader &#39;Message-Id&#39;=
 --noauthmd5 --skipsize --folder &#39;project1/subfolder1/subfolder2&#39; &=
nbsp;--regextrans2 &#39;s|^project1/subfolder1/subfolder2$|allproject1mail|=
&#39;</div>

<div><br></div><div><div>I have also tried adding the following options, bu=
t they don&#39;t seem to make any difference to the speed:</div><div>--fast=
io1 --fastio2 --prefix2 &#39;moved&#39; --nofoldersizes&nbsp;--exclude &#39=
;^project2&#39;<br>
</div><div><br></div><div>From --debugimap imapsync still appears to be goi=
ng through each and every folder getting number of messages and status.<br>=
</div><div><br></div><div>Is there some way I can stop imapsync going throu=
gh every folder in the destination account? Surely it only needs to look at=
 folders relevant to the folders it is moving from in the source account?</=
div>
<div><br></div><div>Thanks,</div><div><br></div><div>mark.</div><div><br></=
div></div></div>

--001636498e2d2426a9046312ca29--