struct ExpirePolicy epbuf;
long delnum;
time_t xtime, now;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
int a;
struct cdbdata *cdbfr;
long *msglist = NULL;
*/
if (us->flags & US_PERM) purge = 0;
+ /* If the user is an Aide, don't purge him/her/it.
+ */
+ if (us->axlevel == 6) purge = 0;
+
/* If the access level is 0, the record should already have been
* deleted, but maybe the user was logged in at the time or something.
* Delete the record now.
struct EPurgeList *el = NULL;
struct EPurgeList *eptr;
long msgnum;
- struct CtdlMessage *msg;
+ struct CtdlMessage *msg = NULL;
/* Phase 1: traverse through the table, discovering old records... */
lprintf(CTDL_DEBUG, "Purge EUID index: phase 1\n");