NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
Body Struct Reference

The body of an email. More...

#include "body.h"

+ Collaboration diagram for Body:

Data Fields

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

Detailed Description

The body of an email.

Definition at line 35 of file body.h.

Field Documentation

◆ type

unsigned int Body::type

content-type primary type, ContentType

Definition at line 40 of file body.h.

◆ encoding

unsigned int Body::encoding

content-transfer-encoding, ContentEncoding

Definition at line 41 of file body.h.

◆ disposition

unsigned int Body::disposition

content-disposition, ContentDisposition

Definition at line 42 of file body.h.

◆ badsig

bool Body::badsig

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

Definition at line 43 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 44 of file body.h.

◆ goodsig

bool Body::goodsig

Good cryptographic signature.

Definition at line 45 of file body.h.

◆ noconv

bool Body::noconv

Don't do character set conversion.

Definition at line 46 of file body.h.

◆ use_disp

bool Body::use_disp

Content-Disposition uses filename= ?

Definition at line 47 of file body.h.

◆ warnsig

bool Body::warnsig

Maybe good signature.

Definition at line 48 of file body.h.

◆ is_autocrypt

bool Body::is_autocrypt

Flag autocrypt-decrypted messages for replying.

Definition at line 50 of file body.h.

◆ offset

LOFF_T Body::offset

offset where the actual data begins

Definition at line 52 of file body.h.

◆ length

LOFF_T Body::length

length (in bytes) of attachment

Definition at line 53 of file body.h.

◆ description

char* Body::description

content-description

Definition at line 55 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 56 of file body.h.

◆ content_id

char* Body::content_id

Content-Id (RFC2392)

Definition at line 58 of file body.h.

◆ filename

char* Body::filename

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

Definition at line 59 of file body.h.

◆ form_name

char* Body::form_name

Content-Disposition form-data name param.

Definition at line 60 of file body.h.

◆ subtype

char* Body::subtype

content-type subtype

Definition at line 61 of file body.h.

◆ xtype

char* Body::xtype

content-type if x-unknown

Definition at line 62 of file body.h.

◆ parameter

struct ParameterList Body::parameter

Parameters of the content-type.

Definition at line 63 of file body.h.

◆ unlink

bool Body::unlink

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

Definition at line 68 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 70 of file body.h.

◆ next

struct Body* Body::next

next attachment in the list

Definition at line 72 of file body.h.

◆ parts

struct Body* Body::parts

parts of a multipart or message/rfc822

Definition at line 73 of file body.h.

◆ email

struct Email* Body::email

header information for message/rfc822

Definition at line 74 of file body.h.

◆ aptr

struct AttachPtr* Body::aptr

Menu information, used in recvattach.c.

Definition at line 75 of file body.h.

◆ mime_headers

struct Envelope* Body::mime_headers

Memory hole protected headers.

Definition at line 76 of file body.h.

◆ stamp

time_t Body::stamp

Time stamp of last encoding update.

Definition at line 77 of file body.h.

◆ language

char* Body::language

content-language (RFC8255)

Definition at line 78 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 79 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 81 of file body.h.

◆ attach_qualifies

bool Body::attach_qualifies

This attachment should be counted.

Definition at line 87 of file body.h.

◆ deleted

bool Body::deleted

Attachment marked for deletion.

Definition at line 88 of file body.h.

◆ nowrap

bool Body::nowrap

Do not wrap the output in the pager.

Definition at line 89 of file body.h.

◆ tagged

bool Body::tagged

This attachment is tagged.

Definition at line 90 of file body.h.

◆ attach_count

signed short Body::attach_count

Number of attachments.

Definition at line 91 of file body.h.


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