summaryrefslogtreecommitdiffstats
path: root/realrcptto.c
diff options
context:
space:
mode:
authorManuel Mausz <manuel@mausz.at>2026-06-25 14:07:51 +0200
committerManuel Mausz <manuel@mausz.at>2026-06-25 14:07:51 +0200
commit6535dd05720d77f9ff16d2decec1187bfa9e2915 (patch)
treeac6cf1f428da9258b2300cc5f9cef81b777d3ab2 /realrcptto.c
parenteeea9df85e742f312eafca4f81ffae5494d88ca1 (diff)
downloadqmail-6535dd05720d77f9ff16d2decec1187bfa9e2915.tar.gz
qmail-6535dd05720d77f9ff16d2decec1187bfa9e2915.tar.bz2
qmail-6535dd05720d77f9ff16d2decec1187bfa9e2915.zip
realrcptto: remove plus addressing from exported username
Diffstat (limited to 'realrcptto.c')
-rw-r--r--realrcptto.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/realrcptto.c b/realrcptto.c
index f5f6f15..5ae9684 100644
--- a/realrcptto.c
+++ b/realrcptto.c
@@ -264,10 +264,14 @@ int depth;
264 /* found a single dovecot-rda line. stop lookup */ 264 /* found a single dovecot-rda line. stop lookup */
265 if (count == 1 && username && found_rda) 265 if (count == 1 && username && found_rda)
266 { 266 {
267 /* special case mailbox forward */ 267 /* special case: mailbox forward */
268 if (username && !str_diff(username, "$EXT2") 268 if (!str_diff(username, "$EXT2")
269 && extension && !str_diffn(extension, "mailbox-", 8)) 269 && extension && !str_diffn(extension, "mailbox-", 8))
270 username = extension + 8; 270 username = extension + 8;
271
272 /* remove plus-addressing */
273 username[str_chr(username, '+')] = '\0';
274
271 env_put2("DTUSER", username); 275 env_put2("DTUSER", username);
272 return 1; 276 return 1;
273 } 277 }