summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2016-08-12 21:18:18 -0600
committerEduardo Chappa <chappa@washington.edu>2016-08-12 21:18:18 -0600
commit77df61fa95f641b7e8124caa802dd8011e5c5567 (patch)
tree8f4ac1940cda4562e062de032e15b4fdf5c26805 /pith
parentaa5a0714e2ae3c401ac9e6901dde87ad70568d8c (diff)
downloadalpine-77df61fa95f641b7e8124caa802dd8011e5c5567.tar.xz
* Set no restrictions on the length of encoded subjects, but encode
words in length of no more than 75 characters.
Diffstat (limited to 'pith')
-rw-r--r--pith/charset.c5
-rw-r--r--pith/pine.hlp5
2 files changed, 6 insertions, 4 deletions
diff --git a/pith/charset.c b/pith/charset.c
index 87271b24..8bcf241f 100644
--- a/pith/charset.c
+++ b/pith/charset.c
@@ -149,7 +149,7 @@ trans_euc_to_2022_jp(unsigned char *src)
#define RFC1522_TERM_L 2
#define RFC1522_DLIM "?"
#define RFC1522_DLIM_L 1
-#define RFC1522_MAXW 256 /* RFC's say 75, but no senders seem to care*/
+#define RFC1522_MAXW 75 /* RFC's say 75, but no senders seem to care*/
#define ESPECIALS "()<>@,;:\"/[]?.="
#define RFC1522_OVERHEAD(S) (RFC1522_INIT_L + RFC1522_TERM_L + \
(2 * RFC1522_DLIM_L) + strlen(S) + 1);
@@ -379,8 +379,7 @@ rfc1522_valid(char *s, char **charset, char **enc, char **txt, char **endp)
rv = rfc1522_token(c = s+RFC1522_INIT_L, rfc1522_valtok, RFC1522_DLIM, &e)
&& rfc1522_token(++e, rfc1522_valtok, RFC1522_DLIM, &t)
- && rfc1522_token(++t, rfc1522_valenc, RFC1522_TERM, &p)
- && p - s <= RFC1522_MAXW;
+ && rfc1522_token(++t, rfc1522_valenc, RFC1522_TERM, &p);
if(charset)
*charset = c;
diff --git a/pith/pine.hlp b/pith/pine.hlp
index 14b5fa71..bb6df55c 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -140,7 +140,7 @@ with help text for the config screen and the composer that didn't have any
reasonable place to be called from.
Dummy change to get revision in pine.hlp
============= h_revision =================
-Alpine Commit 160 2016-08-11 21:14:39
+Alpine Commit 161 2016-08-12 21:18:00
============= h_news =================
<HTML>
<HEAD>
@@ -352,6 +352,9 @@ Additions include:
same mime type. If Alpine finds that the extension of the file
corresponds with the mime type, according to the mime-types file,
then it will keep it, and no substitution will be made.
+
+ <LI> Set no restrictions on the length of encoded subjects, but encode
+ words in length of no more than 75 characters.
</UL>