Attachment functions. More...
#include "config.h"#include <stdbool.h>#include <stdio.h>#include "mutt/lib.h"#include "config/lib.h"#include "email/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "functions.h"#include "key/lib.h"#include "menu/lib.h"#include "ncrypt/lib.h"#include "question/lib.h"#include "send/lib.h"#include "attach.h"#include "module_data.h"#include "mutt_attach.h"#include "private_data.h"#include "recvattach.h"#include "recvcmd.h"
Include dependency graph for functions.c:Go to the source code of this file.
Functions | |
| void | attach_init_keys (struct NeoMutt *n, struct SubMenu *sm_generic) |
| Initialise the Attach Keybindings - Implements ::init_keys_api. | |
| static void | attach_collapse (struct AttachCtx *actx, struct Menu *menu, struct ConfigSubset *sub) |
| Close the tree of the current attachment. | |
| static bool | check_attach (struct AttachPrivateData *priv) |
| Check if in attach-message mode. | |
| static bool | check_readonly (struct Mailbox *m) |
| Check if the Mailbox is readonly. | |
| static void | recvattach_extract_pgp_keys (struct AttachPtrArray *aa) |
| Extract PGP keys from attachments. | |
| static int | recvattach_pgp_check_traditional (struct AttachPtrArray *aa) |
| Is the Attachment inline PGP? | |
| static int | op_attach_collapse (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| toggle display of subparts - Implements attach_function_t - | |
| static void | attach_apply_set_deleted (struct AttachPtrArray *apa, bool deleted, int *num_changed, int *num_blocked) |
| Apply the deleted flag to a working set of attachments. | |
| static int | op_attach_delete (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| delete the current entry - Implements attach_function_t - | |
| static int | op_attach_edit_type (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| edit attachment content type - Implements attach_function_t - | |
| static int | op_attach_pipe (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| pipe message/attachment to a shell command - Implements attach_function_t - | |
| static int | op_attach_print (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| print the current entry - Implements attach_function_t - | |
| static int | op_attach_save (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| save message/attachment to a mailbox/file - Implements attach_function_t - | |
| static int | op_attach_undelete (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| undelete the current entry - Implements attach_function_t - | |
| static int | op_attach_view (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| view attachment using mailcap entry if necessary - Implements attach_function_t - | |
| static int | op_attach_view_mailcap (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| force viewing of attachment using mailcap - Implements attach_function_t - | |
| static int | op_attach_view_pager (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| view attachment in pager using copiousoutput mailcap - Implements attach_function_t - | |
| static int | op_attach_view_text (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| view attachment as text - Implements attach_function_t - | |
| static int | op_bounce_message (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| remail a message to another user - Implements attach_function_t - | |
| static int | op_check_traditional (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| check for classic PGP - Implements attach_function_t - | |
| static int | op_compose_to_sender (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| compose new message to the current message sender - Implements attach_function_t - | |
| static int | op_exit (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| exit this menu - Implements attach_function_t - | |
| static int | op_extract_keys (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| extract supported public keys - Implements attach_function_t - | |
| static int | op_forget_passphrase (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| wipe passphrases from memory - Implements attach_function_t - | |
| static int | op_forward_message (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| forward a message with comments - Implements attach_function_t - | |
| static int | op_list_subscribe (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| subscribe to a mailing list - Implements attach_function_t - | |
| static int | op_list_unsubscribe (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| unsubscribe from a mailing list - Implements attach_function_t - | |
| static int | op_reply (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| reply to a message - Implements attach_function_t - | |
| static int | op_resend (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| use the current message as a template for a new one - Implements attach_function_t - | |
| static int | op_followup (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| followup to newsgroup - Implements attach_function_t - | |
| static int | op_forward_to_group (struct AttachFunctionData *fdata, const struct KeyEvent *event) |
| forward to newsgroup - Implements attach_function_t - | |
| int | attach_function_dispatcher (struct MuttWindow *win, const struct KeyEvent *event) |
| Perform a Attach function - Implements function_dispatcher_t -. | |
Variables | |
| static const char * | Function_not_permitted_in_attach_message_mode |
| Error message for unavailable functions in attach mode. | |
| static const struct MenuFuncOp | OpAttach [] |
| Functions for the Attach Menu. | |
| static const struct MenuOpSeq | AttachmentDefaultBindings [] |
| Key bindings for the Attachment Menu. | |
| static const struct AttachFunction | AttachFunctions [] |
| All the NeoMutt functions that the Attach supports. | |
Attachment 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.
Initialise the Attach Keybindings - Implements ::init_keys_api.
Definition at line 126 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Close the tree of the current attachment.
| actx | Attachment context |
| menu | Menu listing Attachments |
| sub | Config subset |
Definition at line 149 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if in attach-message mode.
| priv | Private Attach data |
| true | Mailbox is readonly |
Definition at line 184 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if the Mailbox is readonly.
| m | Mailbox |
| true | Mailbox is readonly |
Definition at line 201 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Extract PGP keys from attachments.
| aa | Selected attachments |
Definition at line 217 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Is the Attachment inline PGP?
| aa | Selected attachments |
| 1 | Any selected Attachment is inline PGP |
Definition at line 231 of file functions.c.
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Apply the deleted flag to a working set of attachments.
| [in] | apa | Working set of AttachPtr pointers |
| [in] | deleted | true to mark as deleted, false to undelete |
| [out] | num_changed | Number of attachments actually changed |
| [out] | num_blocked | Number of attachments rejected (non-multipart) |
Only multipart attachments may be deleted. Non-multipart attachments in the working set are skipped and counted in num_blocked.
Definition at line 273 of file functions.c.
Here is the caller graph for this function:
|
static |
Error message for unavailable functions in attach mode.
Definition at line 52 of file functions.c.
|
static |
Functions for the Attach Menu.
Definition at line 59 of file functions.c.
|
static |
Key bindings for the Attachment Menu.
Definition at line 95 of file functions.c.
|
static |
All the NeoMutt functions that the Attach supports.
Definition at line 792 of file functions.c.