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