Mercurial > hg > mlmmj
changeset 440:ba5a6cda33af
Move nosubonlydenymails check to the right place
author | mmj |
---|---|
date | Thu, 27 Jan 2005 05:03:57 +1100 |
parents | b75073f25e60 |
children | aac5e9eed252 |
files | src/mlmmj-process.c |
diffstat | 1 files changed, 8 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/mlmmj-process.c Tue Jan 25 02:24:17 2005 +1100 +++ b/src/mlmmj-process.c Thu Jan 27 05:03:57 2005 +1100 @@ -651,15 +651,20 @@ subonlypost = statctrl(listdir, "subonlypost"); if(subonlypost) { /* Don't send a mail about denial to the list, but silently - * discard and exit. Do the same if it's turned off */ - if ((strcasecmp(listaddr, fromemails.emaillist[0]) == 0) - || nosubonlydenymails) { + * discard and exit. */ + if (strcasecmp(listaddr, fromemails.emaillist[0]) == 0) { myfree(listaddr); unlink(donemailname); myfree(donemailname); exit(EXIT_SUCCESS); } if(is_subbed(listdir, fromemails.emaillist[0]) != 0) { + if(nosubonlydenymails) { + myfree(listaddr); + unlink(donemailname); + myfree(donemailname); + exit(EXIT_SUCCESS); + } listname = genlistname(listaddr); listfqdn = genlistfqdn(listaddr); maildata[1] = fromemails.emaillist[0];