Bincimap 2.0.16
Easy Imapping
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields
MimePart Class Reference

#include <mime.h>

Public Types

enum  FetchType { FetchBody , FetchHeader , FetchMime }
 

Public Member Functions

const std::string & getSubType (void) const
 
bool isMultipart (void) const
 
bool isMessageRFC822 (void) const
 
unsigned int getSize (void) const
 
unsigned int getNofLines (void) const
 
unsigned int getNofBodyLines (void) const
 
unsigned int getBodyLength (void) const
 
unsigned int getBodyStartOffset (void) const
 
void printBody (int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const
 
void printHeader (int fd, Binc::IODevice &output, std::vector< std::string > headers, bool includeheaders, unsigned int startoffset, unsigned int length, std::string &storage) const
 
void printDoc (int fd, Binc::IODevice &output, unsigned int startoffset, unsigned int length) const
 
virtual void clear (void) const
 
const MimePartgetPart (const std::string &findpart, std::string genpart, FetchType fetchType=FetchBody) const
 
virtual int parseOnlyHeader (const std::string &toboundary) const
 
virtual int parseFull (const std::string &toboundary, int &boundarysize) const
 
 MimePart (void)
 
virtual ~MimePart (void)
 

Data Fields

bool multipart
 
bool messagerfc822
 
std::string subtype
 
std::string boundary
 
unsigned int headerstartoffsetcrlf
 
unsigned int headerlength
 
unsigned int bodystartoffsetcrlf
 
unsigned int bodylength
 
unsigned int nlines
 
unsigned int nbodylines
 
unsigned int size
 
Header h
 
std::vector< MimePartmembers
 

Detailed Description

Definition at line 49 of file mime.h.

Member Enumeration Documentation

◆ FetchType

enum FetchType
Enumerator
FetchBody 
FetchHeader 
FetchMime 

Definition at line 67 of file mime.h.

Constructor & Destructor Documentation

◆ MimePart()

MimePart ( void  )

Definition at line 51 of file mime.cc.

◆ ~MimePart()

~MimePart ( void  )
virtual

Definition at line 62 of file mime.cc.

Member Function Documentation

◆ clear()

void clear ( void  ) const
virtual

Reimplemented in MimeDocument.

Definition at line 44 of file mime.cc.

◆ getBodyLength()

unsigned int getBodyLength ( void  ) const
inline

Definition at line 83 of file mime.h.

Here is the caller graph for this function:

◆ getBodyStartOffset()

unsigned int getBodyStartOffset ( void  ) const
inline

Definition at line 84 of file mime.h.

Here is the caller graph for this function:

◆ getNofBodyLines()

unsigned int getNofBodyLines ( void  ) const
inline

Definition at line 82 of file mime.h.

◆ getNofLines()

unsigned int getNofLines ( void  ) const
inline

Definition at line 81 of file mime.h.

◆ getPart()

const Binc::MimePart * getPart ( const std::string &  findpart,
std::string  genpart,
FetchType  fetchType = FetchBody 
) const

Definition at line 23 of file mime-getpart.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSize()

unsigned int getSize ( void  ) const
inline

Definition at line 80 of file mime.h.

◆ getSubType()

const std::string & getSubType ( void  ) const
inline

Definition at line 77 of file mime.h.

◆ isMessageRFC822()

bool isMessageRFC822 ( void  ) const
inline

Definition at line 79 of file mime.h.

Here is the caller graph for this function:

◆ isMultipart()

bool isMultipart ( void  ) const
inline

Definition at line 78 of file mime.h.

Here is the caller graph for this function:

◆ parseFull()

int parseFull ( const std::string &  toboundary,
int &  boundarysize 
) const
virtual

Definition at line 569 of file mime-parsefull.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseOnlyHeader()

int parseOnlyHeader ( const std::string &  toboundary) const
virtual

Definition at line 54 of file mime-parseonlyheader.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printBody()

void printBody ( int  fd,
Binc::IODevice output,
unsigned int  startoffset,
unsigned int  length 
) const

Definition at line 29 of file mime-printbody.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printDoc()

void printDoc ( int  fd,
Binc::IODevice output,
unsigned int  startoffset,
unsigned int  length 
) const

Definition at line 28 of file mime-printdoc.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ printHeader()

void printHeader ( int  fd,
Binc::IODevice output,
std::vector< std::string >  headers,
bool  includeheaders,
unsigned int  startoffset,
unsigned int  length,
std::string &  storage 
) const

Definition at line 28 of file mime-printheader.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Field Documentation

◆ bodylength

unsigned int bodylength
mutable

Definition at line 61 of file mime.h.

◆ bodystartoffsetcrlf

unsigned int bodystartoffsetcrlf
mutable

Definition at line 60 of file mime.h.

◆ boundary

std::string boundary
mutable

Definition at line 55 of file mime.h.

◆ h

Header h
mutable

Definition at line 73 of file mime.h.

◆ headerlength

unsigned int headerlength
mutable

Definition at line 58 of file mime.h.

◆ headerstartoffsetcrlf

unsigned int headerstartoffsetcrlf
mutable

Definition at line 57 of file mime.h.

◆ members

std::vector<MimePart> members
mutable

Definition at line 75 of file mime.h.

◆ messagerfc822

bool messagerfc822
mutable

Definition at line 53 of file mime.h.

◆ multipart

bool multipart
mutable

Definition at line 52 of file mime.h.

◆ nbodylines

unsigned int nbodylines
mutable

Definition at line 63 of file mime.h.

◆ nlines

unsigned int nlines
mutable

Definition at line 62 of file mime.h.

◆ size

unsigned int size
mutable

Definition at line 64 of file mime.h.

◆ subtype

std::string subtype
mutable

Definition at line 54 of file mime.h.


The documentation for this class was generated from the following files: