Re: Encoded words

Robert Grimm <[email protected]>
Newsgroups gmane.network.slrn.user
Organization Disorganized
Message-ID <[email protected]>
Robert Grimm <[email protected]> wrote:
> Another problem that arose, are mail addresses. See
> <[email protected]>, the mail address in From: is
> <[email protected]>, but slrn shows
> <dö[email protected]> and attempts to send a reply to that address.

> #v+
> [rob@woody:~]$ vrfy dö[email protected]
> 5.1.3 Syntax error in mailbox address "[email protected]"
> (non-printable character)
> d\C\[email protected] ... Service unavailable
> [rob@woody:~]$ vrfy [email protected]
> 2.1.5 <[email protected]>
> [rob@woody:~]$
> #v-

This time, I hope the encoding will be preserved.

I dug a bit further and also did some reading of the c standard.

But still - this only addresses the wrong decoding of MIDs.

diff -urNad slrn-pre1.0.0~/src/mime.c slrn-pre1.0.0/src/mime.c
--- slrn-pre1.0.0~/src/mime.c	2009-03-20 11:55:08.698852236 +0100
+++ slrn-pre1.0.0/src/mime.c	2009-03-20 11:55:08.812853423 +0100
@@ -501,6 +501,10 @@
 	if (slrn_case_strncmp (line->buf,
 			       "Newsgroups:", 11) &&
 	    slrn_case_strncmp (line->buf,
+                               "Message-Id:", 11) &&
+	    slrn_case_strncmp (line->buf,
+                               "References:", 11) &&
+	    slrn_case_strncmp (line->buf,
 			       "Followup-To:", 12) &&
 	    (slrn_rfc1522_decode_string (&line->buf) > 0))
 	  {
diff -urNad slrn-pre1.0.0~/src/xover.c slrn-pre1.0.0/src/xover.c
--- slrn-pre1.0.0~/src/xover.c	2009-03-20 11:51:55.000000000 +0100
+++ slrn-pre1.0.0/src/xover.c	2009-03-20 11:55:33.948853427 +0100
@@ -621,7 +621,11 @@
 	if (slrn_case_strcmp (name,
 			      "Newsgroups") &&
 	    slrn_case_strcmp (name,
-			      "Followup-To"))
+			      "Followup-To") &&
+            slrn_case_strcmp (name,
+                              "Message-Id") &&
+            slrn_case_strcmp (name,
+                              "References"))
 	   slrn_rfc1522_decode_string (&value);
 #endif
 	
Rob
-- 
> Linux is not user-friendly.
It _is_ user-friendly.  It is not ignorant-friendly and idiot-friendly.
        -- Seen somewhere on the net


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.