Changeset 4131:287b90895158
- Timestamp:
- 2005-08-02 07:39:56 (3 years ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
In compose menu, detach should be able to unlink files generated by mutt,
but not files that existed before.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r4118
|
r4131
|
|
| 687 | 687 | char *att = files[i]; |
| 688 | 688 | idx[idxlen] = (ATTACHPTR *) safe_calloc (1, sizeof (ATTACHPTR)); |
| | 689 | idx[idxlen]->unowned = 1; |
| 689 | 690 | idx[idxlen]->content = mutt_make_file_attach (att); |
| 690 | 691 | if (idx[idxlen]->content != NULL) |
| … |
… |
|
| 815 | 816 | case OP_DELETE: |
| 816 | 817 | CHECK_COUNT; |
| 817 | | idx[menu->current]->content->unlink = 0; |
| | 818 | if (idx[menu->current]->unowned) |
| | 819 | idx[menu->current]->content->unlink = 0; |
| 818 | 820 | if (delete_attachment (menu, &idxlen, menu->current) == -1) |
| 819 | 821 | break; |
-
|
r4098
|
r4131
|
|
| 856 | 856 | int level; |
| 857 | 857 | int num; |
| | 858 | unsigned int unowned : 1; /* don't unlink on detach */ |
| 858 | 859 | } ATTACHPTR; |
| 859 | 860 | |