From: Lloyd Zusman <ljz@asfast.com>
Subject: 0.58 error in multipart.
Date: 30 Nov 1998 23:51:14 -0500 [thread overview]
Message-ID: <lthfvgea7x.fsf@asfast.com> (raw)
I'm using pgnus-0.58 and XEmacs 20.4.
When trying to decode a multipart article that contains one or more
text/plain parts, I got an error during the text/plain decoding.
Enclosed is a patch that fixes the problem, although I have a feeling
that this just masks a deeper error. Therefore, I'm posting this
patch to illustrate the problem, not necessarily to suggest a
solution.
It seems that in some (all?) cases of text/plain decoding within a
multipart message, the `mm-decode-string' function returns `nil'. I
hope that this patch sheds some light on this problem.
Lloyd Zusman
ljz@asfast.com
*** mm-view.el.orig Mon Nov 30 23:14:48 1998
--- mm-view.el Mon Nov 30 23:40:08 1998
***************
*** 56,65 ****
(cond
((equal type "plain")
(setq text (mm-get-part handle))
! (let ((b (point))
! (charset (mail-content-type-get
! (mm-handle-type handle) 'charset)))
! (insert (mm-decode-string text charset))
(save-restriction
(narrow-to-region b (point))
(mm-handle-set-undisplayer
--- 56,68 ----
(cond
((equal type "plain")
(setq text (mm-get-part handle))
! (let* ((b (point))
! (charset (mail-content-type-get
! (mm-handle-type handle) 'charset))
! (decoded (mm-decode-string text charset)))
! (insert (if (and decoded (stringp decoded))
! decoded
! text))
(save-restriction
(narrow-to-region b (point))
(mm-handle-set-undisplayer
next reply other threads:[~1998-12-01 4:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-01 4:51 Lloyd Zusman [this message]
1998-12-01 5:22 ` Shenghuo ZHU
1998-12-01 15:28 ` Jason L Tibbitts III
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=lthfvgea7x.fsf@asfast.com \
--to=ljz@asfast.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).