1 #ifndef messageinfo_h 2 #define messageinfo_h 3 4 static const char messageinfo_h_rcsid[]="$Id: messageinfo.h,v 1.2 1999/03/31 07:30:03 mrsam Exp $"; 5 6 #include <sys/types.h> 7 #include "config.h" 8 #include "buffer.h" 9 10 class Message; 11 12 /////////////////////////////////////////////////////////////////////////// 13 // 14 // The MessageInfo class collects information about a message - namely 15 // it calculates where the message headers actually start in the Message 16 // class. We ignore blank lines and "From " lines at the beginning of 17 // the message 18 // 19 /////////////////////////////////////////////////////////////////////////// 20 21 class MessageInfo { 22 public: 23 off_t msgoffset; // Skip leading blank lines and From header 24 Buffer fromname; // Envelope sender 25 MessageInfo()26 MessageInfo() : msgoffset(0) {} ~MessageInfo()27 ~MessageInfo() {} 28 29 void info(Message &); filtered()30 void filtered() { msgoffset=0; } 31 } ; 32 #endif 33