NeoMutt  2024-10-02-7-gd3e66a
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
cid.h
Go to the documentation of this file.
1
24#ifndef MUTT_ATTACH_CID_H
25#define MUTT_ATTACH_CID_H
26
27#include "config.h"
28#include "mutt/lib.h"
29
30struct Body;
31
35struct CidMap
36{
37 char *cid;
38 char *fname;
40};
41STAILQ_HEAD(CidMapList, CidMap);
42
43void cid_map_free (struct CidMap **ptr);
44struct CidMap *cid_map_new (const char *cid, const char *filename);
45void cid_map_list_clear (struct CidMapList *cid_map_list);
46void cid_save_attachments(struct Body *body, struct CidMapList *cid_map_list);
47void cid_to_filename (struct Buffer *filename, const struct CidMapList *cid_map_list);
48
49#endif /* MUTT_ATTACH_CID_H */
struct CidMap * cid_map_new(const char *cid, const char *filename)
Initialise a new CidMap.
Definition: cid.c:65
void cid_map_free(struct CidMap **ptr)
Free a CidMap.
Definition: cid.c:46
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:151
void cid_to_filename(struct Buffer *filename, const struct CidMapList *cid_map_list)
Replace Content-IDs with filenames.
Definition: cid.c:170
void cid_map_list_clear(struct CidMapList *cid_map_list)
Empty a CidMapList.
Definition: cid.c:82
Convenience wrapper for the library headers.
#define STAILQ_HEAD(name, type)
Definition: queue.h:312
The body of an email.
Definition: body.h:36
String manipulation buffer.
Definition: buffer.h:36
List of Content-ID to filename mappings.
Definition: cid.h:36
char * fname
Filename.
Definition: cid.h:38
char * cid
Content-ID.
Definition: cid.h:37
STAILQ_ENTRY(CidMap) entries
Linked list.