Updated
Showing
2 changed files
with
59 additions
and
0 deletions
1 | 2003-09-21 Sergey Poznyakoff | ||
2 | |||
3 | Added decoding of RFC 2047 headers to MUA programs (mail and mh). | ||
4 | Fixed incorrect session termination in imap and pop clients. | ||
5 | |||
6 | * mailbox/locale.c: New file. Contains locale-dependent functions. | ||
7 | * mailbox/Makefile.am: Added locale.c | ||
8 | |||
9 | * include/mailutils/mutil.h (mu_charset_lookup): New function. | ||
10 | * mail/from.c (mail_from0): Use util_rfc2047_decode for | ||
11 | "From" and "Subject" headers. | ||
12 | * mail/mail.c (main): Set default value for the "charset" variable. | ||
13 | * mail/mail.h (util_rfc2047_decode): New function. | ||
14 | * mail/util.c: Likewise. | ||
15 | * mail/print.c: Use util_rfc2047_decode for printing headers. | ||
16 | * doc/texinfo/programs.texi: Documented "charset" mail | ||
17 | variable | ||
18 | |||
19 | * mh/mh_format.c (mh_format): Use header_aget_value_unfold when | ||
20 | retrieving the header value. | ||
21 | (builtin_decode): New function. Implements (decode). | ||
22 | * mh/README: Updated | ||
23 | |||
24 | * mailbox/imap/folder.c (authenticate_imap_sasl_anon): Fixed typo | ||
25 | in debug output. | ||
26 | (folder_imap_open): Issue LOGOUT if all the authentication methods | ||
27 | have failed. | ||
28 | * mailbox/imap/mbox.c (imap_get_fd): Removed. Use imap_get_fd2 | ||
29 | instead. | ||
30 | * mailbox/pop/mbox.c (_pop_user): Do not close the stream on | ||
31 | authentication failures. | ||
32 | |||
33 | * imap4d/login.c: Minor fix | ||
34 | |||
1 | 2003-09-20 Sergey Poznyakoff | 35 | 2003-09-20 Sergey Poznyakoff |
2 | 36 | ||
3 | Install under mailutils/gnu only those headers which are | 37 | Install under mailutils/gnu only those headers which are | ... | ... |
... | @@ -23,6 +23,21 @@ options is provided for backward compatibility. | ... | @@ -23,6 +23,21 @@ options is provided for backward compatibility. |
23 | 23 | ||
24 | ** New functions | 24 | ** New functions |
25 | 25 | ||
26 | *** decode | ||
27 | Argument: string | ||
28 | Return: string | ||
29 | |||
30 | Decodes the input string as per RFC 2047. Useful in printing From:, | ||
31 | To: and Subject: headers. | ||
32 | |||
33 | Notice that, unlike the similar NMH function, decode checks the value | ||
34 | of the global profile variable "Charset" to determine the charset | ||
35 | to output the result in. If this variable is not set, decode returns | ||
36 | its argument without any change. If this variable is set to "auto", | ||
37 | decode tries to determine the charset name from the setting of | ||
38 | LC_ALL environment variable. Otherwise, the value of "Charset" is | ||
39 | taken to be the name of the character set. | ||
40 | |||
26 | *** package | 41 | *** package |
27 | Argument: none | 42 | Argument: none |
28 | Return: string | 43 | Return: string |
... | @@ -134,6 +149,16 @@ Generates the value for the References: header according to RFC 2822. | ... | @@ -134,6 +149,16 @@ Generates the value for the References: header according to RFC 2822. |
134 | 149 | ||
135 | * New profile variables: | 150 | * New profile variables: |
136 | 151 | ||
152 | ** Charset | ||
153 | |||
154 | Controls the character set in which the components decoded via | ||
155 | the `decode' format function should be output (see `decode' above). | ||
156 | By default this variable is not set, which means that no decoding | ||
157 | takes place. If it is set to "auto", `decode' tries to determine | ||
158 | the charset name from the setting of LC_ALL environment variable. | ||
159 | Otherwise, the value of "Charset" is taken to be the name of the | ||
160 | character set. | ||
161 | |||
137 | ** Reply-Regex | 162 | ** Reply-Regex |
138 | 163 | ||
139 | Sets the regular expression used to recognize reply messages. The | 164 | Sets the regular expression used to recognize reply messages. The | ... | ... |
-
Please register or sign in to post a comment