File: foldinfo.h

package info (click to toggle)
procmail 3.22-24
  • links: PTS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 2,104 kB
  • sloc: ansic: 9,885; sh: 1,957; makefile: 132
file content (32 lines) | stat: -rw-r--r-- 1,254 bytes parent folder | download | duplicates (11)
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

#define ft_NOTYET	(-3)		     /* spool file doesn't exist yet */
#define ft_CANTCREATE	(-2)	/* wrong file type and can't change our mind */
#define ft_TOOLONG	(-1)		    /* path + UNIQnamelen > linebuf? */
#define ft_PIPE		  0		    /* program, stdout, or /dev/null */
#define ft_MAILDIR	  1				   /* maildir folder */
#define ft_MH		  2					/* MH folder */
#define ft_FILE		  3					/* real file */
#define ft_DIR		  4			     /* msg.inode# directory */

#define ft_lock(type)	   ((type)>ft_MAILDIR)		   /* kernel lock fd */
#define ft_atime(type)	   ((type)==ft_FILE)	      /* force atime < mtime */
#define ft_dotlock(type)   ((type)>ft_MAILDIR)		 /* dotlock $DEFAULT */
#define ft_delim(type)	   ((type)==ft_FILE)		   /* add MMDF delim */
#define ft_checkcloser(type) ((type)>ft_MH)
#define ft_forceblank(type) ((type)!=ft_MAILDIR)  /* force blank line at end */

int
 foldertype Q((int type,int forcedir,mode_t*const modep,
  struct stat*const paranoid)),
 screenmailbox Q((char*chp,const gid_t egid,const int Deliverymode));

extern const char maildirnew[];
extern int accspooldir;

#ifdef TESTING
static const char*FT2str[]=
{ "Not-Yet","Can't-Create","Too-Long",
  "Pipe","Maildir","MH","File","Directory"
};
#define ft2str	(FT2str-ft_NOTYET)
#endif