]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
the last = is the @
authormmj <none@none>
Thu, 23 Sep 2004 22:30:05 +0000 (08:30 +1000)
committermmj <none@none>
Thu, 23 Sep 2004 22:30:05 +0000 (08:30 +1000)
src/mlmmj-bounce.c

index 0e19943f42e9e07afc13584a37f4eea0c5c47707..14b8d3e0538e6ffbcd16b50e319d6dcd43ddb705 100644 (file)
@@ -112,7 +112,7 @@ void do_probe(const char *listdir, const char *mlmmjsend, const char *addr)
 
        from = concatstr(5, listname, "+bounces-", myaddr, "-probe@", listfqdn);
 
-       a = strchr(myaddr, '=');
+       a = strrchr(myaddr, '=');
        if (!a) {
                myfree(myaddr);
                myfree(from);
@@ -306,7 +306,7 @@ int main(int argc, char **argv)
        /* save the filename with '=' before replacing it with '@' */
        bfilename = concatstr(3, listdir, "/bounce/", address);
 
-       a = strchr(address, '=');
+       a = strrchr(address, '=');
        if (!a)
                exit(EXIT_SUCCESS);  /* ignore malformed address */
        *a = '@';