NeoMutt  2022-04-29-323-g5fcc6c
Teaching an old dog new tricks
DOXYGEN
cid.h
Go to the documentation of this file.
1
23#ifndef MUTT_ATTACH_CID_H
24#define MUTT_ATTACH_CID_H
25
26#include "config.h"
27#include "mutt/lib.h"
28
29struct Body;
30
34struct CidMap
35{
36 char *cid;
37 char *fname;
39};
40STAILQ_HEAD(CidMapList, CidMap);
41
42void cid_map_free (struct CidMap **ptr);
43struct CidMap *cid_map_new (const char *cid, const char *filename);
44void cid_map_list_clear (struct CidMapList *cid_map_list);
45void cid_save_attachments(struct Body *body,
46 struct CidMapList *cid_map_list);
47void cid_to_filename (struct Buffer *filename,
48 const struct CidMapList *cid_map_list);
49
50#endif /* MUTT_ATTACH_CID_H */
struct CidMap * cid_map_new(const char *cid, const char *filename)
Initialise a new CidMap.
Definition: cid.c:64
void cid_map_free(struct CidMap **ptr)
Free a CidMap.
Definition: cid.c:45
void cid_save_attachments(struct Body *body, struct CidMapList *cid_map_list)
Save all attachments in a "multipart/related" group with a Content-ID.
Definition: cid.c:150
STAILQ_HEAD(CidMapList, CidMap)
void cid_to_filename(struct Buffer *filename, const struct CidMapList *cid_map_list)
Replace Content-IDs with filenames.
Definition: cid.c:169
void cid_map_list_clear(struct CidMapList *cid_map_list)
Empty a CidMapList.
Definition: cid.c:81
Convenience wrapper for the library headers.
The body of an email.
Definition: body.h:36
String manipulation buffer.
Definition: buffer.h:34
List of Content-ID to filename mappings.
Definition: cid.h:35
char * fname
Filename.
Definition: cid.h:37
char * cid
Content-ID.
Definition: cid.h:36
STAILQ_ENTRY(CidMap) entries
Linked list.