Cleanup: weed out stale TODO's from the WISHLIST, and moved
some CYA text from WISHLIST into the code. Files: WISHLIST,
smtpd/smtpd_proxy.c.
+
+20120407
+
+ Bugfix (introduced: 20120330): don't replace <reply-code>
+ <space> by <reply-code> <hyphen> when a reply footer starts
+ with \c and contains no \n. File: global/smtp_reply_footer.c.
* Patches change both the patchlevel and the release date. Snapshots have no
* patchlevel; they change the release date only.
*/
-#define MAIL_RELEASE_DATE "20120404"
+#define MAIL_RELEASE_DATE "20120407"
#define MAIL_VERSION_NUMBER "2.10"
#ifdef SNAPSHOT
char *end;
ssize_t dsn_len;
int crlf_at_end = 0;
+ int reply_patch_undo_offs = -1;
/*
* Sanity check.
|| (cp[3] != ' ' && cp[3] != '-'))
return (-1);
cp[3] = '-';
+ reply_patch_undo_offs = cp + 3 - STR(buffer);
if ((next = strstr(cp, "\r\n")) == 0) {
next = end;
break;
vstring_strncat(buffer, STR(buffer) + start + 4, (int) dsn_len);
vstring_strcat(buffer, " ");
}
+ reply_patch_undo_offs = -1;
}
/* Append one line of footer text. */
mac_expand(buffer, cp, MAC_EXP_FLAG_APPEND, filter, lookup, context);
} else
break;
}
+ if (reply_patch_undo_offs > 0)
+ STR(buffer)[reply_patch_undo_offs] = ' ';
if (crlf_at_end)
vstring_strcat(buffer, "\r\n");
return (0);
while (strncmp(map_type_name, PROXY_COLON, PROXY_COLON_LEN) == 0)
map_type_name += PROXY_COLON_LEN;
+ /* XXX The following breaks with maps that have ':' in their name. */
if (strchr(map_type_name, ':') == 0)
PROXY_MAP_FIND_ERROR_RETURN(PROXY_STAT_BAD);
if (htable_locate(proxy_auth_maps, map_type_name) == 0) {