{
time_t modreqlife = 0;
- char *modreqlifestr;
int fd;
- modreqlifestr = ctrlvalue(list, "modreqlife");
- if(modreqlifestr) {
- modreqlife = atol(modreqlifestr);
- myfree(modreqlifestr);
- }
+ modreqlife = ctrltimet(list, "modreqlife");
if(modreqlife == 0)
modreqlife = MODREQLIFE;
struct dirent *dp;
char *mailname, *fromname, *toname, *reptoname, *from, *to, *repto;
char *ch, *dirname = concatstr(2, list->dir, "/queue/");
- char *bouncelifestr;
pid_t childpid, pid;
struct stat st;
int fromfd, tofd, fd, status, err = 0;
}
/* before we try again, check and see if it's old */
- bouncelifestr = ctrlvalue(list, "bouncelife");
- if(bouncelifestr) {
- bouncelife = atol(bouncelifestr);
- myfree(bouncelifestr);
- }
+ bouncelife = ctrltimet(list, "bouncelife");
if(bouncelife == 0)
bouncelife = BOUNCELIFE;
DIR *bouncedir;
char *dirname = concatstr(2, list->dir, "/bounce/");
char *probefile, *address, *a, *firstbounce, *bouncedata;
- char *bouncelifestr;
struct dirent *dp;
struct stat st;
pid_t pid, childpid;
myfree(dirname);
- bouncelifestr = ctrlvalue(list, "bouncelife");
- if(bouncelifestr) {
- bouncelife = atol(bouncelifestr);
- myfree(bouncelifestr);
- }
-
- if(bouncelife == 0)
+ bouncelife = ctrltimet(list, "bouncelife");
+ if (bouncelife == 0)
bouncelife = BOUNCELIFE;
while((dp = readdir(bouncedir)) != NULL) {
int run_digests(struct mlmmj_list *list, const char *mlmmjsend)
{
char *lasttimestr, *lastindexstr, *lastissuestr;
- char *digestintervalstr, *digestmaxmailsstr;
+ char *digestmaxmailsstr;
char *s1, *s2;
time_t digestinterval, t, lasttime;
long digestmaxmails, lastindex, index, lastissue;
return 0;
}
- digestintervalstr = ctrlvalue(list, "digestinterval");
- if (digestintervalstr) {
- digestinterval = (time_t)atol(digestintervalstr);
- myfree(digestintervalstr);
- } else {
+ digestinterval = ctrltimet(list, "digestinterval");
+ if (digestinterval == 0)
digestinterval = (time_t)DIGESTINTERVAL;
- }
digestmaxmailsstr = ctrlvalue(list, "digestmaxmails");
if (digestmaxmailsstr) {