+citadel (7.03-7) unstable; urgency=high
+
+ * fixup @'s in usernames when doing smtpauth client
+ * ignore returns from db_input
+
+ -- Wilfried Goesgens <citadel@outgesourced.org> Wed, 07 Feb 2007 00:12:00 +0100
+
+citadel (7.03-7) unstable; urgency=high
+
+ * fixup in quoted printable decoder
+
+ -- Wilfried Goesgens <citadel@outgesourced.org> Wed, 07 Feb 2007 00:12:00 +0100
+
citadel (7.03-6) unstable; urgency=high
* fixup in quoted printable decoder
if test "`echo $2 | sed -e 's/[.-]//g'`" -lt 127 \
-o $1 = reconfigure
then
- db_input high citadel/ServerIPAddress
- db_input high citadel/Administrator
- db_input high citadel/LoginType
- db_input high citadel/Installnote
+ db_input high citadel/ServerIPAddress || true
+ db_input high citadel/Administrator || true
+ db_input high citadel/LoginType || true
db_go
fi
else
if test "$1" = "configure"; then
- db_input high citadel/ServerIPAddress
- db_input high citadel/Administrator
- db_input high citadel/LoginType
- db_input high citadel/Installnote
+ db_input high citadel/ServerIPAddress || true
+ db_input high citadel/Administrator || true
+ db_input high citadel/LoginType || true
+ db_input high citadel/Installnote || true
db_go
fi
fi
sock = (-1);
for (mx=0; (mx<num_mxhosts && sock < 0); ++mx) {
+ char *endpart;
extract_token(buf, mxhosts, mx, '|', sizeof buf);
strcpy(mx_user, "");
strcpy(mx_pass, "");
if (num_tokens(buf, '@') > 1) {
- extract_token(mx_user, buf, 0, '@', sizeof mx_user);
- if (num_tokens(mx_user, ':') > 1) {
- extract_token(mx_pass, mx_user, 1, ':', sizeof mx_pass);
- remove_token(mx_user, 1, ':');
+ strcpy (mx_user, buf);
+ endpart = strrchr(mx_user, '@');
+ *endpart = '\0';
+ strcpy (mx_host, endpart + 1);
+ endpart = strrchr(mx_user, ':');
+ if (endpart != NULL) {
+ strcpy(mx_pass, endpart+1);
+ *endpart = '\0';
}
- remove_token(buf, 0, '@');
}
- extract_token(mx_host, buf, 0, ':', sizeof mx_host);
- extract_token(mx_port, buf, 1, ':', sizeof mx_port);
- if (!mx_port[0]) {
+ else
+ strcpy (mx_host, buf);
+ endpart = strrchr(mx_host, ':');
+ if (endpart != 0){
+ *endpart = '\0';
+ strcpy(mx_port, endpart + 1);
+ }
+ else {
strcpy(mx_port, "25");
}
lprintf(CTDL_DEBUG, "Trying %s : %s ...\n", mx_host, mx_port);