Bincimap 2.0.16
Easy Imapping
Loading...
Searching...
No Matches
Public Member Functions
MimeDocument Class Reference

#include <mime.h>

Public Member Functions

void parseOnlyHeader (int fd) const
 
void parseFull (int fd) const
 
void clear (void) const
 
bool isHeaderParsed (void)
 
bool isAllParsed (void)
 
 MimeDocument (void)
 
 ~MimeDocument (void)
 
- Public Member Functions inherited from MimePart
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)
 

Additional Inherited Members

- Public Types inherited from MimePart
enum  FetchType { FetchBody , FetchHeader , FetchMime }
 
- Data Fields inherited from MimePart
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 101 of file mime.h.

Constructor & Destructor Documentation

◆ MimeDocument()

MimeDocument ( void  )

Definition at line 23 of file mime.cc.

◆ ~MimeDocument()

~MimeDocument ( void  )

Definition at line 30 of file mime.cc.

Member Function Documentation

◆ clear()

void clear ( void  ) const
virtual

Reimplemented from MimePart.

Definition at line 35 of file mime.cc.

Here is the caller graph for this function:

◆ isAllParsed()

bool isAllParsed ( void  )
inline

Definition at line 112 of file mime.h.

◆ isHeaderParsed()

bool isHeaderParsed ( void  )
inline

Definition at line 111 of file mime.h.

◆ parseFull()

void parseFull ( int  fd) const

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

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

◆ parseOnlyHeader()

void parseOnlyHeader ( int  fd) const

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

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

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