1
0
mirror of https://github.com/imapsync/imapsync.git synced 2024-11-17 08:12:48 +01:00
imapsync/W/test2.bat

66 lines
3.0 KiB
Batchfile
Raw Normal View History

2011-03-12 03:45:06 +01:00
2013-05-21 00:04:57 +02:00
REM $Id: test2.bat,v 1.15 2013/05/06 08:15:39 gilles Exp gilles $
2012-12-29 01:43:39 +01:00
REM
2011-03-12 03:45:06 +01:00
cd C:\msys\1.0\home\Admin\imapsync
REM perl ./imapsync --host1 p --user1 tata --passfile1 secret.tata --host2 p --user2 titi --passfile2 secret.titi --delete2 --expunge2 --folder INBOX
2011-04-24 23:19:36 +02:00
REM perl ./imapsync --host1 p --user1 tata --passfile1 secret.tata --host2 p --user2 titi --passfile2 secret.titi --delete2 --expunge1 --expunge2 --folder INBOX --usecache
REM imapsync --host1 p --user1 tata --passfile1 secret.tata --host2 p --user2 titi --passfile2 secret.titi --justfolders --nofoldersize --folder INBOX.yop.yap --sep1 / --regextrans2 "s,/,_,"
2011-06-14 13:02:33 +02:00
REM imapsync --host1 p --user1 tata --passfile1 secret.tata --host2 p --user2 titi --passfile2 secret.titi --nofoldersize --folder INBOX.yop.yap --regexflag 's/\\Answered//g' --debug > out.txt
2011-04-24 23:19:36 +02:00
2011-06-14 13:02:33 +02:00
REM perl imapsync --version
REM perl imapsync --tests_debug
2011-06-14 13:04:24 +02:00
REM imapsync.exe ^
REM --host1 p --user1 big1 --passfile1 secret.big1 ^
REM --host2 p --user2 big2 --passfile2 secret.big2 ^
REM --folder INBOX.bigmail
2011-03-12 03:45:06 +01:00
2011-09-25 22:31:48 +02:00
REM perl imapsync
REM perl imapsync --host1 p --user1 tata --passfile1 secret.tata --host2 p --user2 titi --passfile2 secret.titi --nofoldersize --folder INBOX.yop.yap --regexflag "s/\\ /\\/g" --debugflags
2012-04-17 00:30:19 +02:00
REM FOR /F "tokens=1,2,3,4 delims=; eol=#" %%G IN (file.txt) DO imapsync ^
REM --host1 imap.side1.org --user1 %%G --password1 %%H ^
REM --host2 imap.side2.org --user2 %%I --password2 %%J
REM imapsync --host1 p --user1 tata --passfile1 secret.tata ^
REM --host2 p --user2 dollar --password2 "$%%&<>|^"^" --justlogin
2012-09-03 02:04:29 +02:00
REM imapsync --host1 p --user1 tata --passfile1 secret.tata ^
REM --host2 p --user2 equal --password2 "==lalala" --justlogin --debugimap2
2012-04-17 00:33:16 +02:00
2012-09-03 02:08:57 +02:00
REM perl ./imapsync --host1 p --user1 tata --passfile1 secret.tata ^
REM --host2 p --user2 titi --passfile2 secret.titi ^
REM --folder INBOX.useuid --useuid --debugcache --delete2
2012-11-27 23:32:36 +01:00
REM perl ./imapsync --host1 p --user1 tata --passfile1 secret.tata ^
REM --host2 imap.gmail.com --ssl2 --user2 gilles.lamiral@gmail.com --passfile2 secret.gilles_gmail ^
REM --usecache --nofoldersizes --folder INBOX --regextrans2 "s(INBOX)([Gmail]/te*st)"
2012-12-29 01:43:39 +01:00
REM perl ./imapsync --host1 imap.gmail.com --port1 993 --ssl1 --host2 imap.bigs.dk --justconnect
2012-11-27 23:32:36 +01:00
2012-12-29 01:43:39 +01:00
REM imapsync.exe --host1 imap.gmail.com --port1 993 --ssl1 --host2 imap.bigs.dk --justconnect
REM @echo off
2013-05-21 00:04:57 +02:00
SET csvfile=file.txt
2012-12-29 01:43:39 +01:00
DATE /t
TIME /t
FOR /f "tokens=1-4 delims=-/: " %%a IN ('DATE /t') DO (SET mydate=%%c_%%a_%%b_%%d)
FOR /f "tokens=1-2 delims=-/: " %%a IN ('TIME /t') DO (SET mytime=%%a_%%b)
ECHO %mydate%_%mytime%
if not exist LOG mkdir LOG
2013-05-21 00:04:57 +02:00
FOR /F "tokens=1,2,3,4 delims=; eol=#" %%G IN (%csvfile%) DO ECHO syncing to user %%I & imapsync ^
2012-12-29 01:43:39 +01:00
--host1 imap.side1.org --user1 %%G --password1 %%H ^
--host2 imap.side2.org --user2 %%I --password2 %%J ^
> LOG\log_%%I_%mydate%_%mytime%.txt 2>&1
ECHO Loop finished
ECHO log files are in LOG directory
PAUSE