]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Move nosubonlydenymails check to the right place
authormmj <none@none>
Wed, 26 Jan 2005 18:03:57 +0000 (05:03 +1100)
committermmj <none@none>
Wed, 26 Jan 2005 18:03:57 +0000 (05:03 +1100)
src/mlmmj-process.c

index e0d756e566544970d2c24057c626a9fcc149e345..27c62ed3d10a7c28a1ba2a0ce4f1df3350a760ee 100644 (file)
@@ -651,15 +651,20 @@ int main(int argc, char **argv)
        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];