From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: a patch to mm-uu [Was: Re: Whee!]
Date: 24 Oct 1998 16:53:55 -400 [thread overview]
Message-ID: <5baf2lznoc.fsf_-_@rye.cs.rochester.edu> (raw)
In-Reply-To: Hrvoje Niksic's message of "24 Oct 1998 21:52:00 +0200"
>>>>> "Hrvoje" == Hrvoje Niksic <hniksic@srce.hr> writes:
Hrvoje> It has bugs, though. If the message is:
Hrvoje> <text 1>
Hrvoje> <uuencode>
Hrvoje> <text 2>
Hrvoje> then <text 1> begins with a spurious newline, and <text 2> is not
Hrvoje> shown at all.
--
Shenghuo
:- cut ---------------------------------------------
--- ChangeLog 1998/10/24 20:48:01 1.1
+++ ChangeLog 1998/10/24 20:50:15
@@ -1,3 +1,8 @@
+Sat Oct 24 16:48:51 1998 Shenghuo ZHU <zsh@cs.rochester.edu>
+
+ * mm-uu.el (mm-uu-dissect): Delete the begining spurious newline
+ and display last part.
+
Sat Oct 24 20:31:55 1998 Lars Magne Ingebrigtsen <larsi@menja.ifi.uio.no>
* gnus.el: Pterodactyl Gnus v0.38 is released.
--- mm-uu.el 1998/10/24 20:33:38 1.1
+++ mm-uu.el 1998/10/24 20:36:20
@@ -76,6 +76,7 @@
(save-restriction
(mail-narrow-to-head)
(goto-char (point-max)))
+ (forward-line)
(let ((text-start (point)) start-char end-char
type file-name end-line result)
(while (re-search-forward mm-uu-begin-line nil t)
@@ -94,6 +95,7 @@
(intern (concat "mm-uu-" (symbol-name type)
"-end-line"))))
(when (re-search-forward end-line nil t)
+ (forward-line)
(setq end-char (point))
(when (or (not (eq type 'binhex))
(setq file-name
@@ -138,7 +140,7 @@
result)
(setq text-start end-char))))
(when result
- (if (> start-char text-start)
+ (if (> (point-max) (1+ text-start))
(push
(list (mm-uu-copy-to-buffer text-start (point-max))
'("text/plain") nil nil nil nil)
next prev parent reply other threads:[~1998-10-24 20:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-10-24 18:17 Whee! Lars Magne Ingebrigtsen
1998-10-24 19:52 ` Whee! Hrvoje Niksic
1998-10-24 20:53 ` Shenghuo ZHU [this message]
1998-10-24 21:04 ` a patch to mm-uu [Was: Re: Whee!] Hrvoje Niksic
1998-10-24 21:18 ` Lars Magne Ingebrigtsen
1998-10-24 22:42 ` Hrvoje Niksic
1998-10-24 20:03 ` Whee! Shenghuo ZHU
1998-10-24 20:21 ` Whee! Hrvoje Niksic
1998-10-24 21:20 ` Whee! Lars Magne Ingebrigtsen
1998-10-24 22:42 ` Whee! Hrvoje Niksic
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=5baf2lznoc.fsf_-_@rye.cs.rochester.edu \
--to=zsh@cs.rochester.edu \
/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).