Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37778249
en ru br
ALT Linux repos
5.0: 4.64L-alt5.1
4.1: 4.64L-alt5
4.0: 4.64L-alt4.1
3.0: 4.58L-alt4
+backports:4.64L-alt0.M30.4

Group :: Networking/Mail
RPM: pine

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: iconv-no-explain.patch
Download


# The charset label which is inserted before decoding the first RFC2047
# encoded word could be done much in a much better way: it should be added
# only when we know that we might have a bad conversion result
# and it should be turned off with the quell-charset-waring config
# flag. UTF-8 as ps_global->VAR_CHAR_SET should turn it off also.
#
# As a quick measure, at least when iconv is available for transliteration,
# it can be turned off when a destination charset (ps_global->VAR_CHAR_SET)
# is available, because the conversion should be reasonable and if the
# charset is wanted, users can always look at the header and in addition,
# there is the charset editoral which also generally displays the charset
# of the mail:
--- pine4.58/pine/strings.c	2003-08-28 00:28:42.000000000 +0200
+++ pine4.7l/pine/strings.c	2004-01-23 21:14:29.000000000 +0100
@@ -2992,6 +3391,8 @@ rfc1522_decode(d, len, s, charset)
 		if(!cs)
 		  cs = cpystr(cset);
 
+	       if (!ps_global->VAR_CHAR_SET) {
+		/* We don't know where to convert to, so do a charset tag: */
 		if(charset){
 		    if(!*charset)		/* only write first charset */
 		      *charset = cpystr(cset);
@@ -3014,6 +3417,7 @@ rfc1522_decode(d, len, s, charset)
 		    if(d-rv<len-1)
 		      *d++ = SPACE;
 		}
+	       }
 	    }
 
 	    /* based on encoding, write the encoded text to output buffer */
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin