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 32 33 34 35 36 37 38 39 40 41 42
|
/*
* Message structure
*/
#ifndef __PFQMESSAGE_H
#define __PFQMESSAGE_H
#define MSG_HOLD 0
#define MSG_DELETE 1
#define MSG_RELEASE 2
#define MSG_REQUEUE 3
#define Q_DEFERRED 0
#define Q_HOLD 1
#define Q_INCOMING 2
#define Q_ACTIVE 3
#define Q_CORRUPT 4
#define MSG_MOVED "Message moved"
// Message structure for frontend
struct msg_t {
char id [20];
char from [100];
char to [100];
char subj [100];
char path [200];
char stat [200];
short hcached; // Header cached
short scached; // Status cached
short tagged;
};
// Message queue for backend
struct be_msg_t {
char id [20];
char path [200];
short changed;
};
#endif
|