NeoMutt  2019-12-07
Teaching an old dog new tricks
DOXYGEN
Body Struct Reference

The body of an email. More...

#include "body.h"

+ Collaboration diagram for Body:

Data Fields

char * xtype
 content-type if x-unknown More...
 
char * subtype
 content-type subtype More...
 
char * language
 content-language (RFC8255) More...
 
struct ParameterList parameter
 parameters of the content-type More...
 
char * description
 content-description More...
 
char * form_name
 Content-Disposition form-data name param. More...
 
long hdr_offset
 Offset in stream where the headers begin. More...
 
LOFF_T offset
 offset where the actual data begins More...
 
LOFF_T length
 length (in bytes) of attachment More...
 
char * filename
 when sending a message, this is the file to which this structure refers More...
 
char * d_filename
 filename to be used for the content-disposition header. More...
 
char * charset
 Send mode: charset of attached file as stored on disk. More...
 
struct Contentcontent
 Detailed info about the content of the attachment. More...
 
struct Bodynext
 next attachment in the list More...
 
struct Bodyparts
 parts of a multipart or message/rfc822 More...
 
struct Emailemail
 header information for message/rfc822 More...
 
struct AttachPtraptr
 Menu information, used in recvattach.c. More...
 
signed short attach_count
 Number of attachments. More...
 
time_t stamp
 Time stamp of last encoding update. More...
 
struct Envelopemime_headers
 Memory hole protected headers. More...
 
unsigned int type: 4
 content-type primary type More...
 
unsigned int encoding: 3
 content-transfer-encoding More...
 
unsigned int disposition: 2
 content-disposition More...
 
bool use_disp: 1
 Content-Disposition uses filename= ? More...
 
bool unlink: 1
 If true, filename should be unlink()ed before free()ing this structure. More...
 
bool tagged: 1
 This attachment is tagged. More...
 
bool deleted: 1
 Attachment marked for deletion. More...
 
bool noconv: 1
 Don't do character set conversion. More...
 
bool force_charset: 1
 Send mode: don't adjust the character set when in send-mode. More...
 
bool goodsig: 1
 Good cryptographic signature. More...
 
bool warnsig: 1
 Maybe good signature. More...
 
bool badsig: 1
 Bad cryptographic signature (needed to check encrypted s/mime-signatures) More...
 
bool is_autocrypt: 1
 Flag autocrypt-decrypted messages for replying. More...
 
bool collapsed: 1
 Used by recvattach. More...
 
bool attach_qualifies: 1
 This attachment should be counted. More...
 

Detailed Description

The body of an email.

Definition at line 34 of file body.h.

Field Documentation

◆ xtype

char* Body::xtype

content-type if x-unknown

Definition at line 36 of file body.h.

◆ subtype

char* Body::subtype

content-type subtype

Definition at line 37 of file body.h.

◆ language

char* Body::language

content-language (RFC8255)

Definition at line 38 of file body.h.

◆ parameter

struct ParameterList Body::parameter

parameters of the content-type

Definition at line 39 of file body.h.

◆ description

char* Body::description

content-description

Definition at line 40 of file body.h.

◆ form_name

char* Body::form_name

Content-Disposition form-data name param.

Definition at line 41 of file body.h.

◆ hdr_offset

long Body::hdr_offset

Offset in stream where the headers begin.

This info is used when invoking metamail, where we need to send the headers of the attachment

Definition at line 42 of file body.h.

◆ offset

LOFF_T Body::offset

offset where the actual data begins

Definition at line 44 of file body.h.

◆ length

LOFF_T Body::length

length (in bytes) of attachment

Definition at line 45 of file body.h.

◆ filename

char* Body::filename

when sending a message, this is the file to which this structure refers

Definition at line 46 of file body.h.

◆ d_filename

char* Body::d_filename

filename to be used for the content-disposition header.

If NULL, filename is used instead.

Definition at line 47 of file body.h.

◆ charset

char* Body::charset

Send mode: charset of attached file as stored on disk.

The charset used in the generated message is stored in parameter.

Definition at line 49 of file body.h.

◆ content

struct Content* Body::content

Detailed info about the content of the attachment.

Used to determine what content-transfer-encoding is required when sending mail.

Definition at line 51 of file body.h.

◆ next

struct Body* Body::next

next attachment in the list

Definition at line 53 of file body.h.

◆ parts

struct Body* Body::parts

parts of a multipart or message/rfc822

Definition at line 54 of file body.h.

◆ email

struct Email* Body::email

header information for message/rfc822

Definition at line 55 of file body.h.

◆ aptr

struct AttachPtr* Body::aptr

Menu information, used in recvattach.c.

Definition at line 57 of file body.h.

◆ attach_count

signed short Body::attach_count

Number of attachments.

Definition at line 59 of file body.h.

◆ stamp

time_t Body::stamp

Time stamp of last encoding update.

Definition at line 61 of file body.h.

◆ mime_headers

struct Envelope* Body::mime_headers

Memory hole protected headers.

Definition at line 63 of file body.h.

◆ type

unsigned int Body::type

content-type primary type

Definition at line 65 of file body.h.

◆ encoding

unsigned int Body::encoding

content-transfer-encoding

Definition at line 66 of file body.h.

◆ disposition

unsigned int Body::disposition

content-disposition

Definition at line 67 of file body.h.

◆ use_disp

bool Body::use_disp

Content-Disposition uses filename= ?

Definition at line 68 of file body.h.

◆ unlink

bool Body::unlink

If true, filename should be unlink()ed before free()ing this structure.

Definition at line 69 of file body.h.

◆ tagged

bool Body::tagged

This attachment is tagged.

Definition at line 70 of file body.h.

◆ deleted

bool Body::deleted

Attachment marked for deletion.

Definition at line 71 of file body.h.

◆ noconv

bool Body::noconv

Don't do character set conversion.

Definition at line 73 of file body.h.

◆ force_charset

bool Body::force_charset

Send mode: don't adjust the character set when in send-mode.

Definition at line 74 of file body.h.

◆ goodsig

bool Body::goodsig

Good cryptographic signature.

Definition at line 75 of file body.h.

◆ warnsig

bool Body::warnsig

Maybe good signature.

Definition at line 76 of file body.h.

◆ badsig

bool Body::badsig

Bad cryptographic signature (needed to check encrypted s/mime-signatures)

Definition at line 77 of file body.h.

◆ is_autocrypt

bool Body::is_autocrypt

Flag autocrypt-decrypted messages for replying.

Definition at line 79 of file body.h.

◆ collapsed

bool Body::collapsed

Used by recvattach.

Definition at line 82 of file body.h.

◆ attach_qualifies

bool Body::attach_qualifies

This attachment should be counted.

Definition at line 83 of file body.h.


The documentation for this struct was generated from the following file: