SM_RCSID("@(#)$Sendmail: queue.c,v 8.863.2.30 2003/03/20 00:20:16 ca Exp $")
SM_RCSID("@(#)$Sendmail: queue.c,v 8.863.2.61 2003/09/03 19:58:26 ca Exp $")
SM_RCSID("@(#)$Sendmail: queue.c,v 8.863.2.30 2003/03/20 00:20:16 ca Exp $")#include <dirent.h># define RELEASE_QUEUE	(void) 0# define ST_INODE(st)	(st).st_ino/***  Historical notes:**     QF_VERSION == 4 was sendmail 8.10/8.11 without _FFR_QUEUEDELAY**     QF_VERSION == 5 was sendmail 8.10/8.11 with    _FFR_QUEUEDELAY**     QF_VERSION == 6 is  sendmail 8.12      without _FFR_QUEUEDELAY**     QF_VERSION == 7 is  sendmail 8.12      with    _FFR_QUEUEDELAY*/#if _FFR_QUEUEDELAY# define QF_VERSION	7	/* version number of this queue format */static time_t	queuedelay __P((ENVELOPE *));# define queuedelay_qfver_unsupported(qfver) false#else /* _FFR_QUEUEDELAY */# define QF_VERSION	6	/* version number of this queue format */# define queuedelay(e)	MinQueueAge# define queuedelay_qfver_unsupported(qfver) ((qfver) == 5 || (qfver) == 7)#endif /* _FFR_QUEUEDELAY */#if _FFR_QUARANTINEstatic char	queue_letter __P((ENVELOPE *, int));static bool	quarantine_queue_item __P((int, int, ENVELOPE *, char *));#endif /* _FFR_QUARANTINE *//* Naming convention: qgrp: index of queue group, qg: QUEUEGROUP *//***  Work queue.*/struct work{	char		*w_name;	/* name of control file */	char		*w_host;	/* name of recipient host */	bool		w_lock;		/* is message locked? */	bool		w_tooyoung;	/* is it too young to run? */	long		w_pri;		/* priority of message, see below */	time_t		w_ctime;	/* creation time */	time_t		w_mtime;	/* modification time */	int		w_qgrp;		/* queue group located in */	int		w_qdir;		/* queue directory located in */	struct work	*w_next;	/* next in queue */};