commit 56401f00fd943832029ae4c078f68bd534055c38 Author: Oswald Buddenhagen <o...@kde.org> Date: Sat Aug 11 17:05:22 2012 +0200
ensure that mailbox creation in maildir_store() is limited to trashing other mailboxes would have been maildir_select()ed already. src/drv_maildir.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/drv_maildir.c b/src/drv_maildir.c index b68d9ce..401c27f 100644 --- a/src/drv_maildir.c +++ b/src/drv_maildir.c @@ -1101,7 +1101,7 @@ maildir_store_msg( store_t *gctx, msg_data_t *data, int to_trash, maildir_make_flags( data->flags, fbuf ); nfsnprintf( buf, sizeof(buf), "%s%s/tmp/%s%s", prefix, box, base, fbuf ); if ((fd = open( buf, O_WRONLY|O_CREAT|O_EXCL, 0600 )) < 0) { - if (errno != ENOENT) { + if (errno != ENOENT || !to_trash) { sys_error( "Maildir error: cannot create %s", buf ); free( data->data ); cb( DRV_BOX_BAD, 0, aux ); ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ isync-devel mailing list isync-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/isync-devel