Compose functions. More...
#include "config.h"#include <errno.h>#include <limits.h>#include <stdbool.h>#include <stdio.h>#include <string.h>#include <sys/stat.h>#include <unistd.h>#include "private.h"#include "mutt/lib.h"#include "config/lib.h"#include "email/lib.h"#include "core/lib.h"#include "conn/lib.h"#include "gui/lib.h"#include "mutt.h"#include "lib.h"#include "attach/lib.h"#include "browser/lib.h"#include "editor/lib.h"#include "history/lib.h"#include "imap/lib.h"#include "index/lib.h"#include "key/lib.h"#include "menu/lib.h"#include "ncrypt/lib.h"#include "nntp/lib.h"#include "pop/lib.h"#include "question/lib.h"#include "send/lib.h"#include "attach_data.h"#include "external.h"#include "functions.h"#include "globals.h"#include "hook.h"#include "mutt_header.h"#include "mutt_logging.h"#include "muttlib.h"#include "mview.h"#include "mx.h"#include "nntp/adata.h"#include "protos.h"#include "rfc3676.h"#include "shared_data.h"#include <libintl.h>
Include dependency graph for functions.c:Go to the source code of this file.
Functions | |
| static bool | check_count (struct AttachCtx *actx) |
| Check if there are any attachments. | |
| static char * | gen_cid (void) |
| Generate a random Content ID. | |
| static bool | check_cid (const char *cid) |
| Check if a Content-ID is valid. | |
| static int | check_attachments (struct AttachCtx *actx, struct ConfigSubset *sub) |
| Check if any attachments have changed or been deleted. | |
| static int | delete_attachment (struct AttachCtx *actx, int aidx) |
| Delete an attachment. | |
| static void | update_idx (struct Menu *menu, struct AttachCtx *actx, struct AttachPtr *ap) |
| Add a new attachment to the message. | |
| static void | compose_attach_swap (struct Email *e, struct AttachCtx *actx, int first, int second) |
| Swap two adjacent entries in the attachment list. | |
| static int | group_attachments (struct ComposeSharedData *shared, char *subtype) |
| Group tagged attachments into a multipart group. | |
| static int | op_attachment_attach_file (struct ComposeSharedData *shared, int op) |
| Attach files to this message - Implements compose_function_t -. | |
| static int | op_attachment_attach_key (struct ComposeSharedData *shared, int op) |
| Attach a PGP public key - Implements compose_function_t -. | |
| static int | op_attachment_attach_message (struct ComposeSharedData *shared, int op) |
| Attach messages to this message - Implements compose_function_t -. | |
| static int | op_attachment_detach (struct ComposeSharedData *shared, int op) |
| Delete the current entry - Implements compose_function_t -. | |
| static int | op_attachment_edit_content_id (struct ComposeSharedData *shared, int op) |
| Edit the 'Content-ID' of the attachment - Implements compose_function_t -. | |
| static int | op_attachment_edit_description (struct ComposeSharedData *shared, int op) |
| Edit attachment description - Implements compose_function_t -. | |
| static int | op_attachment_edit_encoding (struct ComposeSharedData *shared, int op) |
| Edit attachment transfer-encoding - Implements compose_function_t -. | |
| static int | op_attachment_edit_language (struct ComposeSharedData *shared, int op) |
| Edit the 'Content-Language' of the attachment - Implements compose_function_t -. | |
| static int | op_attachment_edit_mime (struct ComposeSharedData *shared, int op) |
| Edit attachment using mailcap entry - Implements compose_function_t -. | |
| static int | op_attachment_edit_type (struct ComposeSharedData *shared, int op) |
| Edit attachment content type - Implements compose_function_t -. | |
| static int | op_attachment_filter (struct ComposeSharedData *shared, int op) |
| Filter attachment through a shell command - Implements compose_function_t -. | |
| static int | op_attachment_get_attachment (struct ComposeSharedData *shared, int op) |
| Get a temporary copy of an attachment - Implements compose_function_t -. | |
| static int | op_attachment_group_alts (struct ComposeSharedData *shared, int op) |
| Group tagged attachments as 'multipart/alternative' - Implements compose_function_t -. | |
| static int | op_attachment_group_lingual (struct ComposeSharedData *shared, int op) |
| Group tagged attachments as 'multipart/multilingual' - Implements compose_function_t -. | |
| static int | op_attachment_group_related (struct ComposeSharedData *shared, int op) |
| Group tagged attachments as 'multipart/related' - Implements compose_function_t -. | |
| static int | op_attachment_move_down (struct ComposeSharedData *shared, int op) |
| Move an attachment down in the attachment list - Implements compose_function_t -. | |
| static int | op_attachment_move_up (struct ComposeSharedData *shared, int op) |
| Move an attachment up in the attachment list - Implements compose_function_t -. | |
| static int | op_attachment_new_mime (struct ComposeSharedData *shared, int op) |
| Compose new attachment using mailcap entry - Implements compose_function_t -. | |
| static int | op_attachment_print (struct ComposeSharedData *shared, int op) |
| Print the current entry - Implements compose_function_t -. | |
| static int | op_attachment_rename_attachment (struct ComposeSharedData *shared, int op) |
| Send attachment with a different name - Implements compose_function_t -. | |
| static int | op_attachment_save (struct ComposeSharedData *shared, int op) |
| Save message/attachment to a mailbox/file - Implements compose_function_t -. | |
| static int | op_attachment_toggle_disposition (struct ComposeSharedData *shared, int op) |
| Toggle disposition between inline/attachment - Implements compose_function_t -. | |
| static int | op_attachment_toggle_recode (struct ComposeSharedData *shared, int op) |
| Toggle recoding of this attachment - Implements compose_function_t -. | |
| static int | op_attachment_toggle_unlink (struct ComposeSharedData *shared, int op) |
| Toggle whether to delete file after sending it - Implements compose_function_t -. | |
| static int | op_attachment_ungroup (struct ComposeSharedData *shared, int op) |
| Ungroup a 'multipart' attachment - Implements compose_function_t -. | |
| static int | op_attachment_update_encoding (struct ComposeSharedData *shared, int op) |
| Update an attachment's encoding info - Implements compose_function_t -. | |
| static int | op_envelope_edit_headers (struct ComposeSharedData *shared, int op) |
| Edit the message with headers - Implements compose_function_t -. | |
| static int | op_compose_edit_file (struct ComposeSharedData *shared, int op) |
| Edit the file to be attached - Implements compose_function_t -. | |
| static int | op_compose_edit_message (struct ComposeSharedData *shared, int op) |
| Edit the message - Implements compose_function_t -. | |
| static int | op_compose_ispell (struct ComposeSharedData *shared, int op) |
| Run ispell on the message - Implements compose_function_t -. | |
| static int | op_compose_postpone_message (struct ComposeSharedData *shared, int op) |
| Save this message to send later - Implements compose_function_t -. | |
| static int | op_compose_rename_file (struct ComposeSharedData *shared, int op) |
| Rename/move an attached file - Implements compose_function_t -. | |
| static int | op_compose_send_message (struct ComposeSharedData *shared, int op) |
| Send the message - Implements compose_function_t -. | |
| static int | op_compose_write_message (struct ComposeSharedData *shared, int op) |
| Write the message to a folder - Implements compose_function_t -. | |
| static int | op_display_headers (struct ComposeSharedData *shared, int op) |
| Display message and toggle header weeding - Implements compose_function_t -. | |
| static int | op_exit (struct ComposeSharedData *shared, int op) |
| Exit this menu - Implements compose_function_t -. | |
| static int | op_forget_passphrase (struct ComposeSharedData *shared, int op) |
| Wipe passphrases from memory - Implements compose_function_t -. | |
| int | compose_function_dispatcher (struct MuttWindow *win, int op) |
| Perform a Compose function - Implements function_dispatcher_t -. | |
Variables | |
| const struct MenuFuncOp | OpCompose [] |
| Functions for the Compose Menu. | |
| const struct MenuOpSeq | ComposeDefaultBindings [] |
| Key bindings for the Compose Menu. | |
| static const struct ComposeFunction | ComposeFunctions [] |
| All the NeoMutt functions that the Compose supports. | |
Compose functions.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file functions.c.
|
static |
Check if there are any attachments.
| actx | Attachment context |
| true | There are attachments |
Definition at line 220 of file functions.c.
Here is the caller graph for this function:
|
static |
Generate a random Content ID.
| ptr | Content ID |
Definition at line 237 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if a Content-ID is valid.
| cid | Content-ID to check |
| true | Content-ID is valid |
| false | Content-ID is not valid |
Definition at line 253 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if any attachments have changed or been deleted.
| actx | Attachment context |
| sub | ConfigSubset |
| 0 | Success |
| -1 | Error |
Definition at line 273 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Delete an attachment.
| actx | Attachment context |
| aidx | Index number of attachment to delete |
| 0 | Success |
| -1 | Error |
Definition at line 336 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Add a new attachment to the message.
| menu | Current menu |
| actx | Attachment context |
| ap | Attachment to add |
Definition at line 426 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Swap two adjacent entries in the attachment list.
| e | |
| actx | Attachment information |
| first | Index of first attachment to swap |
| second | Index of second attachment to swap |
Definition at line 451 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Group tagged attachments into a multipart group.
| shared | Shared compose data |
| subtype | MIME subtype |
| FR_SUCCESS | Success |
| FR_ERROR | Failure |
Definition at line 517 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const struct MenuFuncOp OpCompose[] |
Functions for the Compose Menu.
Definition at line 87 of file functions.c.
| const struct MenuOpSeq ComposeDefaultBindings[] |
Key bindings for the Compose Menu.
Definition at line 155 of file functions.c.
|
static |
All the NeoMutt functions that the Compose supports.
Definition at line 2089 of file functions.c.