]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
t_push/t_pop
authorTimo Sirainen <tss@iki.fi>
Mon, 10 May 2004 22:40:29 +0000 (01:40 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 10 May 2004 22:40:29 +0000 (01:40 +0300)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-util.c

index 7b24d387a77c4300b3c46a854b6484186179428b..8d1973e91d386b4b2d01c6b466a7fe568ddc9fc2 100644 (file)
@@ -22,16 +22,21 @@ static int maildir_file_do_try(struct index_mailbox *ibox, uint32_t uid,
        if (fname == NULL)
                return -2; /* expunged */
 
+       t_push();
        if ((flags & MAILDIR_UIDLIST_REC_FLAG_NEW_DIR) != 0) {
                /* probably in new/ dir */
                path = t_strconcat(ibox->path, "/new/", fname, NULL);
                ret = func(ibox, path, context);
-               if (ret != 0)
+               if (ret != 0) {
+                       t_pop();
                        return ret;
+               }
        }
 
        path = t_strconcat(ibox->path, "/cur/", fname, NULL);
-       return func(ibox, path, context);
+       ret = func(ibox, path, context);
+       t_pop();
+       return ret;
 }
 
 int maildir_file_do(struct index_mailbox *ibox, uint32_t uid,