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