| skipped 1555 lines |
1556 | 1556 | | menu_get_index(shared->adata->menu), true); |
1557 | 1557 | | } |
1558 | 1558 | | |
| 1559 | + | /* |
| 1560 | + | * op_attachment_new_mime_before - Compose new attachment using mailcap entry - Implements ::compose_function_t - @ingroup compose_function_api |
| 1561 | + | */ |
| 1562 | + | static int op_attachment_new_mime_before(struct ComposeSharedData *shared, int op) |
| 1563 | + | { |
| 1564 | + | return compose_new_mime(shared, _("New file to insert before: "), |
| 1565 | + | menu_get_index(shared->adata->menu), false); |
| 1566 | + | } |
| 1567 | + | |
1559 | 1568 | | /** |
1560 | 1569 | | * op_attachment_print - Print the current entry - Implements ::compose_function_t - @ingroup compose_function_api |
1561 | 1570 | | */ |
| skipped 552 lines |
2114 | 2123 | | { OP_ATTACHMENT_MOVE_UP, op_attachment_move_up }, |
2115 | 2124 | | { OP_ATTACHMENT_NEW_MIME, op_attachment_new_mime }, |
2116 | 2125 | | { OP_ATTACHMENT_NEW_MIME_AFTER, op_attachment_new_mime_after }, |
| 2126 | + | { OP_ATTACHMENT_NEW_MIME_BEFORE, op_attachment_new_mime_before }, |
2117 | 2127 | | { OP_PIPE, op_attachment_filter }, |
2118 | 2128 | | { OP_ATTACHMENT_PRINT, op_attachment_print }, |
2119 | 2129 | | { OP_ATTACHMENT_RENAME_ATTACHMENT, op_attachment_rename_attachment }, |
| skipped 55 lines |