Rocco Rutte:
authorpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Tue, 17 May 2005 11:19:23 +0000 (11:19 +0000)
committerpdmef <pdmef@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Tue, 17 May 2005 11:19:23 +0000 (11:19 +0000)
- repair exact address regeneration (--enable-exact-address) (dirty solution only)

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@294 e385b8ad-14ed-0310-8656-cc95a2468c6d

INSTALL
rfc822.c

diff --git a/INSTALL b/INSTALL
index e6a85dc..be04a07 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -188,8 +188,6 @@ to ``configure'' to help it out, or change the default behavior:
        addresses in the same form they are parsed.  NOTE: this requires
        significantly more memory.
 
        addresses in the same form they are parsed.  NOTE: this requires
        significantly more memory.
 
-       WARNING: DO NOT USE THIS OPTION, IT IS BROKEN.
-
 
 Once ``configure'' has completed, simply type ``make install.''
 
 
 Once ``configure'' has completed, simply type ``make install.''
 
index 5f20de4..d3b5d56 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -514,6 +514,9 @@ void rfc822_write_address_single (char *buf, size_t buflen, ADDRESS * addr,
       goto done;
     strfcpy (pbuf, addr->val, buflen);
     len = safe_strlen (pbuf);
       goto done;
     strfcpy (pbuf, addr->val, buflen);
     len = safe_strlen (pbuf);
+    /* dirty fix to un-break EXACT_ADDRESS */
+    if (pbuf[len-1] == '\n')
+      pbuf[--len] = '\0';
     pbuf += len;
     buflen -= len;
     if (addr->group) {
     pbuf += len;
     buflen -= len;
     if (addr->group) {