Changeset 5033:bf208df92829
- Timestamp:
- 2007-03-31 16:07:36 (22 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- default
- Message:
-
Allow IMAP FCC to reconnect if append fails (closes: #890)
- Location:
- imap
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5026
|
r5033
|
|
| 271 | 271 | if (rc != IMAP_CMD_OK) |
| 272 | 272 | { |
| 273 | | if (flags & IMAP_CMD_FAIL_OK) |
| | 273 | if (flags & IMAP_CMD_FAIL_OK && idata->status != IMAP_FATAL) |
| 274 | 274 | return -2; |
| 275 | 275 | |
-
|
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); |