aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-06-29 21:18:03 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-06-29 21:18:03 +0000
commit343f9984ce85c3fcf1b92b78fc694a20ba0f1db7 (patch)
tree484a630d988d28a1bccbce50bb14ac1661329b85
parent63e6f0da257dcb7222c97259c3a0b12671470d83 (diff)
downloadfetchmail-343f9984ce85c3fcf1b92b78fc694a20ba0f1db7.tar.gz
fetchmail-343f9984ce85c3fcf1b92b78fc694a20ba0f1db7.tar.bz2
fetchmail-343f9984ce85c3fcf1b92b78fc694a20ba0f1db7.zip
Cesar Eduardo Barros's fix to avoid double @ when username has @ and envelope
sender is null. Debian bug #272289. svn path=/trunk/; revision=4061
-rw-r--r--NEWS5
-rw-r--r--sink.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index d60cbfe2..b9856c98 100644
--- a/NEWS
+++ b/NEWS
@@ -68,6 +68,11 @@
* Miloslav Trmac's patch for fetchmailconf to support string-type values
of the "port" variable, avoiding "port None" corruption in .fetchmailrc.
To fix Redhat Bug #55623 (Matthias Andree)
+* de.po fixes from Nico Golde (Matthias Andree)
+* es.po fixes from Jesus Roncero, Debian bug #286044 (Matthias Andree)
+* sink.c fix from Cesar Eduardo Barros, to avoid double @ in address
+ when username contains an @ and the envelope sender is null, Debian
+ bug #272289 (Matthias Andree)
fetchmail-6.2.5 (Wed Oct 15 18:39:22 EDT 2003), 23079 lines:
diff --git a/sink.c b/sink.c
index 431a7e64..68a1739b 100644
--- a/sink.c
+++ b/sink.c
@@ -877,7 +877,11 @@ static int open_smtp_sink(struct query *ctl, struct msgblk *msg,
*/
if (!msg->return_path[0] || (msg->return_path[0] == '@'))
{
- if (is_dottedquad(ctl->server.truename))
+ if (strchr(ctl->remotename,'@') || strchr(ctl->remotename,'!'))
+ {
+ snprintf(addr, sizeof(addr), "%s", ctl->remotename);
+ }
+ else if (is_dottedquad(ctl->server.truename))
{
snprintf(addr, sizeof(addr), "%s@[%s]", ctl->remotename,
ctl->server.truename);