Synchronizing Gmail emails with mbsync

2012-09-01 Thread Grégory Pakosz
Hello, I would like to understand the difference between the two following configurations: 1) IMAPAccount gmail Host imap.gmail.com User x...@gmail.com UseIMAPS yes CertificateFile ~/gmail/gmail.crt IMAPStore gmail-imap Account gmail MaildirStore gmail-local Path ~/gmail Inbox ~/gmail/Maildir

[commit] master: fix a bunch of warnings

2012-09-01 Thread Oswald Buddenhagen
commit 378da8ad0d8865eac3ac690a34fa8a1ce40db8a3 Author: Oswald Buddenhagen o...@kde.org Date: Sat Jul 7 17:19:17 2012 +0200 fix a bunch of warnings src/compat/convert.c |4 ++-- src/drv_imap.c |2 +- src/drv_maildir.c|2 +- src/sync.c |6 +++--- 4 files

[commit] master: de-duplicate error paths

2012-09-01 Thread Oswald Buddenhagen
commit ffe569ce305c163201b2cf97772d515de9c0e025 Author: Oswald Buddenhagen o...@kde.org Date: Sun Apr 10 09:58:41 2011 +0200 de-duplicate error paths makes the code more compact. yay for gotos. src/sync.c | 72 +--- 1 files

[commit] master: purge imap_store_t::currentnc vestiges

2012-09-01 Thread Oswald Buddenhagen
commit 1e659c275425d6296a1dddbb48aad67a85ecf9f1 Author: Oswald Buddenhagen o...@kde.org Date: Mon Nov 15 10:30:24 2010 +0100 purge imap_store_t::currentnc vestiges we always actually open the mailbox before appending to it, so we obviously know that it exists - that's why the

[commit] master: after [TRYCREATE], just resend the same command instead of cloning it

2012-09-01 Thread Oswald Buddenhagen
commit e12c4f563eed973d64ee2eedb1f24322c0fa5828 Author: Oswald Buddenhagen o...@kde.org Date: Sat Nov 20 10:17:41 2010 +0100 after [TRYCREATE], just resend the same command instead of cloning it src/drv_imap.c | 18 +++--- 1 files changed, 7 insertions(+), 11 deletions(-)

[commit] master: remove redundant use_ssl variables

2012-09-01 Thread Oswald Buddenhagen
commit 0969c96d8545a40600d6d63b5b9ca54b8c47f76c Author: Oswald Buddenhagen o...@kde.org Date: Wed Dec 15 19:01:27 2010 +0100 remove redundant use_ssl variables just use the presence of an SSL object as an indicator. if something goes wrong during the ssl handshake or

[commit] master: DRV_SERVER_BAD is and will probably stay unused = trash

2012-09-01 Thread Oswald Buddenhagen
commit a05e2646adf946029353e55c9bf7d43d6960c9c7 Author: Oswald Buddenhagen o...@kde.org Date: Sat Nov 20 23:48:23 2010 +0100 DRV_SERVER_BAD is and will probably stay unused = trash src/isync.h |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/src/isync.h

[commit] master: always use return value from get_cmd_result()

2012-09-01 Thread Oswald Buddenhagen
commit 39142eb0e1589200f44775002f75a13f603a6b8e Author: Oswald Buddenhagen o...@kde.org Date: Sun Mar 20 13:45:42 2011 +0100 always use return value from get_cmd_result() once we have callback-based error reporting, this will ensure that we don't operate on invalidated data

[commit] master: don't decode aux pointer on DRV_CANCELED

2012-09-01 Thread Oswald Buddenhagen
commit 08f5a625b0cbf26f11da63f08d51237d91b20516 Author: Oswald Buddenhagen o...@kde.org Date: Sun Jun 17 14:52:46 2012 +0200 don't decode aux pointer on DRV_CANCELED the aux data was already free()d by the error callback by the time we get this status code. src/sync.c | 110

[commit] master: don't access free'd memory in cancel_sync()

2012-09-01 Thread Oswald Buddenhagen
commit 27427f4f56df8166fc59d2475eee1322c7f07f87 Author: Oswald Buddenhagen o...@kde.org Date: Sun Jul 22 17:46:54 2012 +0200 don't access free'd memory in cancel_sync() as it happens, the 1st round *may* trash svars - if we get the cancelation request after the slave store has

[commit] master: don't call cancel() repeatedly on a store

2012-09-01 Thread Oswald Buddenhagen
commit e4fb0f457faceb75fd7f3f4210f28ffdd5634850 Author: Oswald Buddenhagen o...@kde.org Date: Sun Apr 3 16:29:18 2011 +0200 don't call cancel() repeatedly on a store erroring command replies will trickle in even after canceling src/sync.c |7 +-- 1 files changed, 5

[commit] master: replace DRV_STORE_BAD with a separate bad_callback()

2012-09-01 Thread Oswald Buddenhagen
commit 5fc409ac86bd5bbfd611ee65494b1e282ae241d0 Author: Oswald Buddenhagen o...@kde.org Date: Sun Jul 15 12:55:04 2012 +0200 replace DRV_STORE_BAD with a separate bad_callback() that way we don't have to piggy-back (possibly asynchronous) fatal errors to particular commands.

[commit] master: fix error paths wrt sync drivers, take 2

2012-09-01 Thread Oswald Buddenhagen
commit 57e48f0118bacf555ca7b361b6c5f7d44345d700 Author: Oswald Buddenhagen o...@kde.org Date: Sun Jul 29 23:14:48 2012 +0200 fix error paths wrt sync drivers, take 2 synchronous error codes which are passed through callbacks aren't a particularly good idea, after all: latest

[commit] master: make callbacks return early when canceling

2012-09-01 Thread Oswald Buddenhagen
commit b37f28daecd6269935d43c744c016662a19779a3 Author: Oswald Buddenhagen o...@kde.org Date: Sun Jul 29 23:15:12 2012 +0200 make callbacks return early when canceling even after driver-cancel() the store may complete commands successfully. return early in this case, so we

[commit] master: security fix: failure to load the certificate file is *not* OK ...

2012-09-01 Thread Oswald Buddenhagen
commit 8d60732360ac8934050ab4eea636a26206c6 Author: Oswald Buddenhagen o...@kde.org Date: Sun Apr 10 13:28:48 2011 +0200 security fix: failure to load the certificate file is *not* OK ... src/socket.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[commit] master: make imap_exec() result reporting callback-based

2012-09-01 Thread Oswald Buddenhagen
commit 6894a1fd0f0e5ebfc82a49d7530423609366a5fe Author: Oswald Buddenhagen o...@kde.org Date: Sun Apr 3 18:15:36 2011 +0200 make imap_exec() result reporting callback-based this makes the IMAP command submission interface asynchronous. the functions still have synchronous

[commit] master: add simple mainloop implementation

2012-09-01 Thread Oswald Buddenhagen
commit 57a7ef438ce5febf231fa8adf88f9ed96aeb3bf3 Author: Oswald Buddenhagen o...@kde.org Date: Sun Mar 13 14:29:12 2011 +0100 add simple mainloop implementation not used so far configure.in |2 +- src/isync.h | 14 src/main.c |1 + src/util.c | 167

[commit] master: fully asynchronous IMAP operation

2012-09-01 Thread Oswald Buddenhagen
commit c84f4a8a5d00bba20caa1c6c672d3db2a3e9fb94 Author: Oswald Buddenhagen o...@kde.org Date: Sat Aug 25 18:26:23 2012 +0200 fully asynchronous IMAP operation - asynchronous sockets using an event loop - connect starttls have completion callback parameters - callbacks

[commit] master: centralize imap_cmd_refcounted_state refcount decrementing

2012-09-01 Thread Oswald Buddenhagen
commit 720de7760e51356380237ec3cada442005edf450 Author: Oswald Buddenhagen o...@kde.org Date: Sun Mar 20 18:23:09 2011 +0100 centralize imap_cmd_refcounted_state refcount decrementing no else branches remain, so the if() can be put into imap_refcounted_done() src/drv_imap.c |

[commit] master: compile with -ansi -pedantic on gcc

2012-09-01 Thread Oswald Buddenhagen
commit 36a7682a20e7ae313734c8f31095da82cfa1 Author: Oswald Buddenhagen o...@kde.org Date: Sun Mar 13 15:03:59 2011 +0100 compile with -ansi -pedantic on gcc greatly helps portability ... configure.in|2 +- src/drv_imap.c | 12 ++-- src/mdconvert.c |2 +-

[commit] master: enlarge receive buffer considerably

2012-09-01 Thread Oswald Buddenhagen
commit 1ca0b4c9fbc5b7b1867f0e0a2b8b9d8540396209 Author: Oswald Buddenhagen o...@kde.org Date: Sun Mar 27 17:50:13 2011 +0200 enlarge receive buffer considerably the tiny buffer makes no sense in the face of huge payloads and now additionally masses of replies from pipelined

[commit] master: cleanup maildir error paths

2012-09-01 Thread Oswald Buddenhagen
commit 2e74fd9c37d13aaf56fe2ba936efca7c403b9ddc Author: Oswald Buddenhagen o...@kde.org Date: Sun May 22 17:53:28 2011 +0200 cleanup maildir error paths don't try to unlock and close databases and files - this will happen a moment later anyway, through cancelation or

[commit] master: reject qualified mailboxes with the magic name INBOX

2012-09-01 Thread Oswald Buddenhagen
commit a91d7e4c28665e3944149aabcbb76f2e7205afea Author: Oswald Buddenhagen o...@kde.org Date: Thu Jun 2 19:21:19 2011 +0200 reject qualified mailboxes with the magic name INBOX otherwise we couldn't tell them apart from the real INBOX after stripping away the Path.

[commit] master: don't crash when select() on master fails synchronously

2012-09-01 Thread Oswald Buddenhagen
commit 33484cfbd42690a9e980c9f4a7606b62830e1940 Author: Oswald Buddenhagen o...@kde.org Date: Sat Aug 25 15:34:26 2012 +0200 don't crash when select() on master fails synchronously svars-drv[S] would not be initialized yet, so cancel_sync() would crash. src/sync.c |4

[commit] master: refactor: imap_select2_p2 = imap_refcounted_done_box

2012-09-01 Thread Oswald Buddenhagen
commit fa09e3b0ffcb4dc859af66543622fa5a4c6e6ef2 Author: Oswald Buddenhagen o...@kde.org Date: Mon Jun 13 12:13:31 2011 +0200 refactor: imap_select2_p2 = imap_refcounted_done_box soon, we'll use it for something different, too src/drv_imap.c | 37

[commit] master: add support for hierarchical mailboxes

2012-09-01 Thread Oswald Buddenhagen
commit 4f17ae1c3dc738cd4da5c61c2d5e0789cb8315b5 Author: Oswald Buddenhagen o...@kde.org Date: Sat Aug 11 18:34:46 2012 +0200 add support for hierarchical mailboxes configure.in |2 +- src/drv_imap.c| 142 + src/drv_maildir.c | 139

[commit] master: introduce ability to flatten the hierarchy of Stores

2012-09-01 Thread Oswald Buddenhagen
commit 46389fba6480163d673d0a8920387a11db971e36 Author: Oswald Buddenhagen o...@kde.org Date: Sat Aug 18 13:58:14 2012 +0200 introduce ability to flatten the hierarchy of Stores src/config.c | 13 - src/isync.h |4 +++- src/main.c |9 + src/mbsync.1 | 12

[commit] master: make use of UID EXPUNGE

2012-09-01 Thread Oswald Buddenhagen
commit bdec3efbfbe8d28d5bee8b21d04f99ac094a4cc4 Author: Oswald Buddenhagen o...@kde.org Date: Sat Aug 25 20:30:04 2012 +0200 make use of UID EXPUNGE src/drv_imap.c | 38 ++ src/mbsync.1 | 12 ++-- 2 files changed, 40 insertions(+), 10

[commit] master: use a hash table for message = sync record lookup

2012-09-01 Thread Oswald Buddenhagen
commit d576755380080653a385ac474b34b082396fca66 Author: Oswald Buddenhagen o...@kde.org Date: Sun Aug 26 13:36:12 2012 +0200 use a hash table for message = sync record lookup this removes the pathological O(number of sync records * number of new messages) case at the cost of

[commit] master: fix rpm packaging

2012-09-01 Thread Oswald Buddenhagen
commit 06ebf085e4e5d38f8166c3f69b5c6d3da9806246 Author: Oswald Buddenhagen o...@kde.org Date: Sun Aug 26 15:02:38 2012 +0200 fix rpm packaging Makefile.am |9 + isync.spec.in |4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile.am

[commit] master: update debian packaging

2012-09-01 Thread Oswald Buddenhagen
commit a206d294674ca9962b9dd350290b0561d7589f49 Author: Oswald Buddenhagen o...@kde.org Date: Sun Aug 26 16:16:12 2012 +0200 update debian packaging Makefile.am | 14 ++-- debian/{.cvsignore = .gitignore} |2 +- debian/changelog | 141

[commit] master: replace FSF address with something more ... contemporary

2012-09-01 Thread Oswald Buddenhagen
commit 8b790e74399143b7a6e47432a015e5ea7dbcf2a8 Author: Oswald Buddenhagen o...@kde.org Date: Sun Apr 10 19:34:36 2011 +0200 replace FSF address with something more ... contemporary debian/copyright |3 +-- src/compat/config.c |3 +-- src/compat/convert.c |3 +--

[commit] master: install the config examples to docdir

2012-09-01 Thread Oswald Buddenhagen
commit f3fe7a41f6af410858416fe855fd90b0523a05ab Author: Oswald Buddenhagen o...@kde.org Date: Sun Aug 26 16:29:37 2012 +0200 install the config examples to docdir src/Makefile.am|6 +- src/compat/Makefile.am |6 +- 2 files changed, 10 insertions(+), 2 deletions(-)