NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
Attachment Selection Dialog


The Attachment Selection Dialog lets the user select an email attachment.

This is a Simple Dialog


Name Type See Also
Attachment Selection Dialog WT_DLG_ATTACH dlg_select_attachment()




The Simple Dialog holds a Menu. The Attachment Selection Dialog stores its data (AttachCtx) in Menu::mdata.


Once constructed, it is controlled by the following events:

Event Type Handler
NT_CONFIG attach_config_observer()
NT_WINDOW attach_window_observer()

The Attachment Selection Dialog doesn't have any specific colours, so it doesn't need to support NT_COLOR.

The Attachment Selection Dialog does not implement MuttWindow::recalc() or MuttWindow::repaint().

Some other events are handled by the Simple Dialog.

Function Description
attach_collapse() Close the tree of the current attachment
attach_config_observer - Notification that a Config Variable has changed() Implements observer_t
attach_format_str - Format a string for the attachment menu - Implements format_t()
attach_make_entry - Format a menu item for the attachment list - Implements Menu::make_entry()()
attach_tag - Tag an attachment - Implements Menu::tag()()
attach_window_observer - Notification that a Window has changed() Implements observer_t
mutt_attach_display_loop() Event loop for the Attachment menu
mutt_attach_init() Create a new Attachment context
mutt_generate_recvattach_list() Create a list of attachments
mutt_pipe_attachment_list() Pipe a list of attachments to a command
mutt_print_attachment_list() Print a list of Attachments
mutt_save_attachment_list() Save a list of attachments
mutt_update_recvattach_menu() Update the Attachment Menu
mutt_update_tree() Refresh the list of attachments
mutt_update_v2r() Update the virtual list of attachments