]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Handle bouncing bounce probes
authormmj <none@none>
Tue, 8 Jun 2004 14:15:05 +0000 (00:15 +1000)
committermmj <none@none>
Tue, 8 Jun 2004 14:15:05 +0000 (00:15 +1000)
src/mlmmj-bounce.c

index 8a42a25251ec57d0010624be25bcf6f749b480a0..e5f5e28a2f2adaad5ab94826656efc67386aacab 100644 (file)
@@ -252,6 +252,15 @@ int main(int argc, char **argv)
                free(a);
                exit(EXIT_SUCCESS);
        }
+       /* Below checks for bounce probes bouncing. If they do, simply remove
+        * the probe file and exit successfully
+        */
+       if(strncmp(number, "probe", 5) == 0) {
+               a = concatstr(4, listdir, "/bounce/", address, "-probe");
+               unlink(a);
+               free(a);
+               exit(EXIT_SUCCESS);
+       }
        
        /* save the filename with '=' before replacing it with '@' */
        bfilename = concatstr(3, listdir, "/bounce/", address);