Back to index

courier  0.68.2
messageinfo.h
Go to the documentation of this file.
00001 #ifndef       messageinfo_h
00002 #define       messageinfo_h
00003 
00004 
00005 #include      "config.h"
00006 #include      <sys/types.h>
00007 #include      "buffer.h"
00008 
00009 class  Message;
00010 
00012 //
00013 //  The MessageInfo class collects information about a message - namely
00014 //  it calculates where the message headers actually start in the Message
00015 //  class.  We ignore blank lines and "From " lines at the beginning of
00016 //  the message
00017 //
00019 
00020 class  MessageInfo {
00021 public:
00022        off_t msgoffset;     // Skip leading blank lines and From header
00023        Buffer fromname;     // Envelope sender
00024 
00025        MessageInfo() : msgoffset(0)       {}
00026        ~MessageInfo()                     {}
00027 
00028        void   info(Message &);
00029        void   filtered() { msgoffset=0; }
00030 } ;
00031 #endif