From: Art Cancro Date: Wed, 27 Dec 2006 14:51:40 +0000 (+0000) Subject: Sieve FILEINTO was failing to locate public rooms in X-Git-Tag: v7.86~3749 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=afccb03b19fe361e9b2a891c4bad04642358a00a;p=citadel.git Sieve FILEINTO was failing to locate public rooms in certain situations. Fixed. --- diff --git a/citadel/serv_sieve.c b/citadel/serv_sieve.c index fbb826416..5ecbb472f 100644 --- a/citadel/serv_sieve.c +++ b/citadel/serv_sieve.c @@ -184,12 +184,12 @@ int ctdl_fileinto(sieve2_context_t *s, void *my) c = getroom(&CC->room, foldername); /* Then a regular room name match (public and private rooms) */ - if (c < 0) { + if (c != 0) { safestrncpy(foldername, dest_folder, sizeof foldername); c = getroom(&CC->room, foldername); } - if (c < 0) { + if (c != 0) { lprintf(CTDL_WARNING, "FILEINTO failed: target <%s> does not exist\n", dest_folder); return SIEVE2_ERROR_BADARGS; }