File: pfqmessage.h

package info (click to toggle)
pfqueue 0.5.3-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,400 kB
  • ctags: 595
  • sloc: sh: 8,964; ansic: 3,904; makefile: 80
file content (40 lines) | stat: -rw-r--r-- 649 bytes parent folder | download
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

/*
 * 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 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