isync

mailbox synchronization program
git clone https://git.code.sf.net/p/isync/isync
Log | Files | Refs | README | LICENSE

commit c741d5ffb5273f52fda483adebf367b7d8f21da7
parent 7addc3bea84689d30d9ec2b90ba8e1a28dff29dd
Author: Oswald Buddenhagen <ossi@users.sf.net>
Date:   Sat, 23 Jul 2011 16:13:17 +0200

make creation of trash folder independent from -C option

the trash is not a box which is synced, but a "byproduct" of
manipulating synced boxes, so it makes no sense to bind it to the same
option.

Diffstat:
Msrc/drv_maildir.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/drv_maildir.c b/src/drv_maildir.c @@ -1029,7 +1029,7 @@ maildir_store_msg( store_t *gctx, msg_data_t *data, int to_trash, cb( DRV_BOX_BAD, 0, aux ); return; } - if ((ret = maildir_validate( gctx->conf->path, gctx->conf->trash, gctx->opts & OPEN_CREATE, ctx )) != DRV_OK) { + if ((ret = maildir_validate( gctx->conf->path, gctx->conf->trash, 1, ctx )) != DRV_OK) { free( data->data ); cb( ret, 0, aux ); return;