summaryrefslogtreecommitdiff
path: root/pith
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2022-09-03 07:46:38 -0600
committerEduardo Chappa <chappa@washington.edu>2022-09-03 07:46:38 -0600
commitbf524965c487e054bfab2a8f405d49d34d48d507 (patch)
treeda3b6f8f2ccd699d1eea706a37cc022945317622 /pith
parenta76c9cd40a3e6140d3f562de375d2299fd9865af (diff)
downloadalpine-bf524965c487e054bfab2a8f405d49d34d48d507.tar.xz
* Microsoft servers do not deal well with a message that is forwarded
as an attachment by Alpine due to the way Alpine constructs the cookie to separate parts of the message due to the presence of a colon. To be safe, remove all non-numeric characters in the cookie. In addition, lowercase values for the charset. Problem reported by user that requested to remain anonymous.
Diffstat (limited to 'pith')
-rw-r--r--pith/pine.hlp10
-rw-r--r--pith/send.c6
2 files changed, 12 insertions, 4 deletions
diff --git a/pith/pine.hlp b/pith/pine.hlp
index 03ba44c1..23403143 100644
--- a/pith/pine.hlp
+++ b/pith/pine.hlp
@@ -147,7 +147,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 660 2022-08-27 22:08:08
+Alpine Commit 661 2022-09-03 07:46:35
============= h_news =================
<HTML>
<HEAD>
@@ -193,6 +193,14 @@ new additions to Alpine, please check it periodically.
<P> Changes since the release of version 2.26 include:
<!-- Changes since the release of version <!--#echo var="ALPINE_VERSION"-->
<!-- include: -->
+<P> New features include:
+<UL>
+<LI> Microsoft servers do not deal well with a message that is forwarded
+ as an attachment by Alpine due to the way Alpine constructs the cookie
+ to separate parts of the message due to the presence of a colon. To
+ be safe, remove all non-numeric characters in the cookie. In addition,
+ lowercase values for the charset.
+</UL>
<P> Bugs addressed include:
<UL>
diff --git a/pith/send.c b/pith/send.c
index 6fc2d706..d2bbdf43 100644
--- a/pith/send.c
+++ b/pith/send.c
@@ -2842,7 +2842,7 @@ pine_encode_body (struct mail_bodystruct *body)
if(!(freethis=parameter_val(body->parameter, "BOUNDARY"))){
char tmp[MAILTMPLEN]; /* make cookie not in BASE64 or QUOTEPRINT*/
- snprintf (tmp,sizeof(tmp),"%ld-%ld-%ld=:%ld",gethostid (),random (),(long) time (0),
+ snprintf (tmp,sizeof(tmp),"%ld%ld%ld%ld",gethostid (),random (),(long) time (0),
(long) getpid ());
tmp[sizeof(tmp)-1] = '\0';
set_parameter(&body->parameter, "boundary", tmp);
@@ -3621,8 +3621,8 @@ posting_characterset(void *data, char *preferred_charset, MsgPart mp)
{
unsigned long *charsetmap = NULL;
unsigned long validbitmap;
- static char *ascii = "US-ASCII";
- static char *utf8 = "UTF-8";
+ static char *ascii = "us-ascii";
+ static char *utf8 = "utf-8";
int notcjk = 0;
if(!ps_global->post_utf8){