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 "key/lib.h"
#include "menu/lib.h"
#include "ncrypt/lib.h"
#include "question/lib.h"
#include "send/lib.h"
#include "attach.h"
#include "functions.h"
#include "mutt_attach.h"
#include "private_data.h"
#include "recvattach.h"
#include "recvcmd.h"
Go to the source code of this file.
Functions | |
static void | attach_collapse (struct AttachCtx *actx, struct Menu *menu) |
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 AttachCtx *actx, struct Menu *menu) |
Extract PGP keys from attachments. | |
static int | recvattach_pgp_check_traditional (struct AttachCtx *actx, struct Menu *menu) |
Is the Attachment inline PGP? | |
static int | op_attachment_collapse (struct AttachPrivateData *priv, int op) |
toggle display of subparts - Implements attach_function_t - | |
static int | op_attachment_delete (struct AttachPrivateData *priv, int op) |
delete the current entry - Implements attach_function_t - | |
static int | op_attachment_edit_type (struct AttachPrivateData *priv, int op) |
edit attachment content type - Implements attach_function_t - | |
static int | op_attachment_pipe (struct AttachPrivateData *priv, int op) |
pipe message/attachment to a shell command - Implements attach_function_t - | |
static int | op_attachment_print (struct AttachPrivateData *priv, int op) |
print the current entry - Implements attach_function_t - | |
static int | op_attachment_save (struct AttachPrivateData *priv, int op) |
save message/attachment to a mailbox/file - Implements attach_function_t - | |
static int | op_attachment_undelete (struct AttachPrivateData *priv, int op) |
undelete the current entry - Implements attach_function_t - | |
static int | op_attachment_view (struct AttachPrivateData *priv, int op) |
view attachment using mailcap entry if necessary - Implements attach_function_t - | |
static int | op_attachment_view_mailcap (struct AttachPrivateData *priv, int op) |
force viewing of attachment using mailcap - Implements attach_function_t - | |
static int | op_attachment_view_pager (struct AttachPrivateData *priv, int op) |
view attachment in pager using copiousoutput mailcap - Implements attach_function_t - | |
static int | op_attachment_view_text (struct AttachPrivateData *priv, int op) |
view attachment as text - Implements attach_function_t - | |
static int | op_bounce_message (struct AttachPrivateData *priv, int op) |
remail a message to another user - Implements attach_function_t - | |
static int | op_check_traditional (struct AttachPrivateData *priv, int op) |
check for classic PGP - Implements attach_function_t - | |
static int | op_compose_to_sender (struct AttachPrivateData *priv, int op) |
compose new message to the current message sender - Implements attach_function_t - | |
static int | op_exit (struct AttachPrivateData *priv, int op) |
exit this menu - Implements attach_function_t - | |
static int | op_extract_keys (struct AttachPrivateData *priv, int op) |
extract supported public keys - Implements attach_function_t - | |
static int | op_forget_passphrase (struct AttachPrivateData *priv, int op) |
wipe passphrases from memory - Implements attach_function_t - | |
static int | op_forward_message (struct AttachPrivateData *priv, int op) |
forward a message with comments - Implements attach_function_t - | |
static int | op_list_subscribe (struct AttachPrivateData *priv, int op) |
subscribe to a mailing list - Implements attach_function_t - | |
static int | op_list_unsubscribe (struct AttachPrivateData *priv, int op) |
unsubscribe from a mailing list - Implements attach_function_t - | |
static int | op_reply (struct AttachPrivateData *priv, int op) |
reply to a message - Implements attach_function_t - | |
static int | op_resend (struct AttachPrivateData *priv, int op) |
use the current message as a template for a new one - Implements attach_function_t - | |
static int | op_followup (struct AttachPrivateData *priv, int op) |
followup to newsgroup - Implements attach_function_t - | |
static int | op_forward_to_group (struct AttachPrivateData *priv, int op) |
forward to newsgroup - Implements attach_function_t - | |
int | attach_function_dispatcher (struct MuttWindow *win, int op) |
Perform a Attach function - Implements function_dispatcher_t -. | |
Variables | |
static const char * | Not_available_in_this_menu = N_("Not available in this menu") |
Error message for unavailable functions. | |
static const char * | Function_not_permitted_in_attach_message_mode |
Error message for unavailable functions in attach mode. | |
const struct MenuFuncOp | OpAttachment [] |
Functions for the Attachment Menu. | |
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.
Close the tree of the current attachment.
actx | Attachment context |
menu | Menu listing Attachments |
Definition at line 133 of file functions.c.
|
static |
Check if in attach-message mode.
priv | Private Attach data |
true | Mailbox is readonly |
Definition at line 168 of file functions.c.
|
static |
Check if the Mailbox is readonly.
m | Mailbox |
true | Mailbox is readonly |
Definition at line 185 of file functions.c.
Extract PGP keys from attachments.
actx | Attachment context |
menu | Menu listing attachments |
Definition at line 202 of file functions.c.
Is the Attachment inline PGP?
actx | Attachment to check |
menu | Menu listing Attachments |
1 | The (tagged) Attachment(s) are inline PGP |
Definition at line 229 of file functions.c.
|
static |
Error message for unavailable functions.
Definition at line 55 of file functions.c.
|
static |
Error message for unavailable functions in attach mode.
Definition at line 57 of file functions.c.
const struct MenuFuncOp OpAttachment[] |
Functions for the Attachment Menu.
Definition at line 64 of file functions.c.
const struct MenuOpSeq AttachmentDefaultBindings[] |
Key bindings for the Attachment Menu.
Definition at line 100 of file functions.c.
|
static |
All the NeoMutt functions that the Attach supports.
Definition at line 676 of file functions.c.