Handling of email attachments. More...
#include "config.h"
#include <string.h>
#include "mutt/lib.h"
#include "email/lib.h"
#include "attach.h"
Go to the source code of this file.
Functions | |
struct AttachPtr * | mutt_aptr_new (void) |
Create a new Attachment Pointer. | |
void | mutt_aptr_free (struct AttachPtr **ptr) |
Free an Attachment Pointer. | |
void | mutt_actx_add_attach (struct AttachCtx *actx, struct AttachPtr *attach) |
Add an Attachment to an Attachment Context. | |
void | mutt_actx_ins_attach (struct AttachCtx *actx, struct AttachPtr *attach, int aidx) |
Insert an Attachment into an Attachment Context at Specified Index. | |
void | mutt_actx_add_fp (struct AttachCtx *actx, FILE *fp_new) |
Save a File handle to the Attachment Context. | |
void | mutt_actx_add_body (struct AttachCtx *actx, struct Body *b) |
Add an email body to an Attachment Context. | |
void | mutt_actx_entries_free (struct AttachCtx *actx) |
Free entries in an Attachment Context. | |
struct AttachCtx * | mutt_actx_new (void) |
Create a new Attachment Context. | |
void | mutt_actx_free (struct AttachCtx **ptr) |
Free an Attachment Context. | |
Handling of email 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 attach.c.
struct AttachPtr * mutt_aptr_new | ( | void | ) |
Create a new Attachment Pointer.
ptr | New Attachment Pointer |
Definition at line 40 of file attach.c.
void mutt_aptr_free | ( | struct AttachPtr ** | ptr | ) |
Add an Attachment to an Attachment Context.
actx | Attachment context |
attach | Attachment to add |
Definition at line 65 of file attach.c.
Insert an Attachment into an Attachment Context at Specified Index.
actx | Attachment context |
attach | Attachment to insert |
aidx | Index to insert attachment at |
Definition at line 91 of file attach.c.
void mutt_actx_add_fp | ( | struct AttachCtx * | actx, |
FILE * | fp_new | ||
) |
Save a File handle to the Attachment Context.
actx | Attachment context |
fp_new | File handle to save |
Definition at line 121 of file attach.c.
Add an email body to an Attachment Context.
Definition at line 142 of file attach.c.
void mutt_actx_entries_free | ( | struct AttachCtx * | actx | ) |
Free entries in an Attachment Context.
actx | Attachment context |
Definition at line 162 of file attach.c.
struct AttachCtx * mutt_actx_new | ( | void | ) |
void mutt_actx_free | ( | struct AttachCtx ** | ptr | ) |
Free an Attachment Context.
[out] | ptr | Attachment context |
Definition at line 198 of file attach.c.