summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 }