return -1;
}
+ /* We only need the control mail when bouncing, to save bounced msg */
+ if(ctrl != CTRL_BOUNCES)
+ unlink(mailname);
+
switch (ctrl) {
/* listname+subscribe-digest@domain.tld */
fromemails->emaillist[0], moderatefilename);
execlp(mlmmjsub, mlmmjsub,
"-L", listdir,
- "-m", param, (char *)NULL);
+ "-m", param,
+ "-c", (char *)NULL);
}
sendfilename = concatstr(2, moderatefilename, ".sending");
listcontrol(&fromemails, listdir, whichto->emaillist[0],
mlmmjsub, mlmmjunsub, mlmmjsend, mlmmjbounce,
donemailname);
- unlink(donemailname);
return EXIT_SUCCESS;
}
}
if(listdir == NULL) {
- fprintf(stderr, "You have to specify -L and -a\n");
+ fprintf(stderr, "You have to specify -L\n");
fprintf(stderr, "%s -h for help\n", argv[0]);
exit(EXIT_FAILURE);
}
- if(address == NULL || modstr == NULL) {
+ if(address == NULL && modstr == NULL) {
fprintf(stderr, "You have to specify -a or -m\n");
fprintf(stderr, "%s -h for help\n", argv[0]);
exit(EXIT_FAILURE);