Routines for managing attachments. More...
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "format_flags.h"
Go to the source code of this file.
Functions | |
void | mutt_attach_init (struct AttachCtx *actx) |
Create a new Attachment context. More... | |
void | mutt_update_tree (struct AttachCtx *actx) |
Refresh the list of attachments. More... | |
const char * | attach_format_str (char *buf, size_t buflen, size_t col, int cols, char op, const char *src, const char *prec, const char *if_str, const char *else_str, intptr_t data, MuttFormatFlags flags) |
Format a string for the attachment menu - Implements format_t -. More... | |
void | dlg_select_attachment (struct ConfigSubset *sub, struct MailboxView *mv, struct Email *e, FILE *fp) |
Show the attachments in a Menu. More... | |
void | mutt_generate_recvattach_list (struct AttachCtx *actx, struct Email *e, struct Body *parts, FILE *fp, int parent_type, int level, bool decrypted) |
Create a list of attachments. More... | |
struct AttachPtr * | current_attachment (struct AttachCtx *actx, struct Menu *menu) |
Get the current attachment. More... | |
void | mutt_update_recvattach_menu (struct AttachCtx *actx, struct Menu *menu, bool init) |
Update the Attachment Menu. More... | |
void | recvattach_edit_content_type (struct AttachCtx *actx, struct Menu *menu, struct Email *e) |
Edit the content type of an attachment. More... | |
int | ba_add_tagged (struct BodyArray *ba, struct AttachCtx *actx, struct Menu *menu) |
Get an array of tagged Attachments. More... | |
Routines for managing attachments.
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 recvattach.h.
void mutt_attach_init | ( | struct AttachCtx * | actx | ) |
Create a new Attachment context.
actx | Attachment context |
Definition at line 1182 of file recvattach.c.
void mutt_update_tree | ( | struct AttachCtx * | actx | ) |
Refresh the list of attachments.
actx | Attachment context |
Definition at line 114 of file recvattach.c.
void dlg_select_attachment | ( | struct ConfigSubset * | sub, |
struct MailboxView * | mv, | ||
struct Email * | e, | ||
FILE * | fp | ||
) |
Show the attachments in a Menu.
Definition at line 468 of file dlg_attach.c.
void mutt_generate_recvattach_list | ( | struct AttachCtx * | actx, |
struct Email * | e, | ||
struct Body * | parts, | ||
FILE * | fp, | ||
int | parent_type, | ||
int | level, | ||
bool | decrypted | ||
) |
Create a list of attachments.
actx | Attachment context |
e | |
parts | Body of email |
fp | File to read from |
parent_type | Type, e.g. TYPE_MULTIPART |
level | Attachment depth |
decrypted | True if attachment has been decrypted |
Definition at line 1084 of file recvattach.c.
Get the current attachment.
actx | Attachment context |
menu | Menu |
ptr | Current Attachment |
Definition at line 69 of file recvattach.c.
Update the Attachment Menu.
actx | Attachment context |
menu | Menu listing Attachments |
init | If true, create a new Attachments context |
Definition at line 1207 of file recvattach.c.
Edit the content type of an attachment.
Definition at line 927 of file recvattach.c.
Get an array of tagged Attachments.
ba | Empty BodyArray to populate |
actx | List of Attachments |
menu | Menu |
num | Number of selected Attachments |
-1 | Error |
Definition at line 1234 of file recvattach.c.