summaryrefslogtreecommitdiffstats
path: root/qmail-send.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmail-send.c')
-rw-r--r--qmail-send.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/qmail-send.c b/qmail-send.c
index caa5b39..168d190 100644
--- a/qmail-send.c
+++ b/qmail-send.c
@@ -147,6 +147,13 @@ char *recip;
147 at = byte_rchr(addr.s,addr.len,'@'); 147 at = byte_rchr(addr.s,addr.len,'@');
148 148
149 if (constmap(&maplocals,addr.s + at + 1,addr.len - at - 1)) { 149 if (constmap(&maplocals,addr.s + at + 1,addr.len - at - 1)) {
150 /* sub-addressing for local domains */
151 for (i = 1; i < at - 1; ++i) {
152 if (addr.s[i] == '+') {
153 addr.s[i] = '-';
154 break;
155 }
156 }
150 if (!stralloc_cat(&rwline,&addr)) return 0; 157 if (!stralloc_cat(&rwline,&addr)) return 0;
151 if (!stralloc_0(&rwline)) return 0; 158 if (!stralloc_0(&rwline)) return 0;
152 return 1; 159 return 1;