changeset 344:410780151412

the last = is the @
author mmj
date Fri, 24 Sep 2004 08:30:05 +1000
parents 6d1f589dee87
children 8e5eaa8fc956
files src/mlmmj-bounce.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/mlmmj-bounce.c	Fri Sep 24 00:29:31 2004 +1000
+++ b/src/mlmmj-bounce.c	Fri Sep 24 08:30:05 2004 +1000
@@ -112,7 +112,7 @@
 
 	from = concatstr(5, listname, "+bounces-", myaddr, "-probe@", listfqdn);
 
-	a = strchr(myaddr, '=');
+	a = strrchr(myaddr, '=');
 	if (!a) {
 		myfree(myaddr);
 		myfree(from);
@@ -306,7 +306,7 @@
 	/* 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 = '@';