Changeset 5033:bf208df92829 for imap/imap.c
- Timestamp:
- 2007-03-31 16:07:36 (22 months ago)
- Branch:
- default
- Files:
-
- 1 modified
-
imap/imap.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
imap/imap.c
r5028 r5033 64 64 char mailbox[LONG_STRING]; 65 65 char mbox[LONG_STRING]; 66 int rc; 66 67 67 68 if (imap_parse_path (path, &mx)) … … 97 98 } 98 99 99 if ( imap_exec (idata, buf, IMAP_CMD_FAIL_OK) < 0)100 if ((rc = imap_exec (idata, buf, IMAP_CMD_FAIL_OK)) < 0) 100 101 { 101 102 dprint (1, (debugfile, "imap_access: Can't check STATUS of %s\n", mbox)); 102 return -1;103 return rc; 103 104 } 104 105 … … 341 342 } 342 343 if (flags & M_IMAP_CONN_NOSELECT && idata && idata->state >= IMAP_SELECTED) 344 continue; 345 if (idata && idata->status == IMAP_FATAL) 343 346 continue; 344 347 break; … … 772 775 char mailbox[LONG_STRING]; 773 776 IMAP_MBOX mx; 777 int rc; 774 778 775 779 if (imap_parse_path (ctx->path, &mx)) … … 794 798 795 799 /* really we should also check for W_OK */ 796 if ( !imap_access (ctx->path, F_OK))800 if ((rc = imap_access (ctx->path, F_OK)) == 0) 797 801 return 0; 802 803 if (rc == -1) 804 return -1; 798 805 799 806 snprintf (buf, sizeof (buf), _("Create %s?"), mailbox);
