From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/22123 Path: main.gmane.org!not-for-mail From: Dmitry Yaitskov Newsgroups: gmane.emacs.gnus.general Subject: Re: bad (i.e. serious) mail problems - solution, kind of Date: 29 Mar 1999 15:37:58 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035160100 26509 80.91.224.250 (21 Oct 2002 00:28:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 00:28:20 +0000 (UTC) Return-Path: Original-Received: from farabi.math.uh.edu (farabi.math.uh.edu [129.7.128.57]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA08492 for ; Mon, 29 Mar 1999 15:41:00 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by farabi.math.uh.edu (8.9.1/8.9.1) with ESMTP id OAB00586; Mon, 29 Mar 1999 14:37:07 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Mon, 29 Mar 1999 14:37:33 -0600 (CST) Original-Received: from sclp3.sclp.com (root@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.7.3/8.7.3) with ESMTP id OAA26359 for ; Mon, 29 Mar 1999 14:37:19 -0600 (CST) Original-Received: from mail.rdc1.on.home.com (imail@ha1.rdc1.on.wave.home.com [24.2.9.66]) by sclp3.sclp.com (8.8.5/8.8.5) with ESMTP id PAA08348 for ; Mon, 29 Mar 1999 15:37:10 -0500 (EST) Original-Received: from LUCY ([24.65.93.139]) by mail.rdc1.on.home.com (InterMail v4.00.03 201-229-104) with SMTP id <19990329203637.JIPH17502.mail.rdc1.on.home.com@LUCY> for ; Mon, 29 Mar 1999 12:36:37 -0800 Original-To: Ding In-Reply-To: Dmitry Yaitskov's message of "29 Mar 1999 12:45:12 -0500" Original-Lines: 46 User-Agent: Gnus/5.07008 (Pterodactyl Gnus v0.80) XEmacs/21.2(beta13) (Demeter) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:22123 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:22123 Dmitry Yaitskov wrote: > Dmitry Yaitskov wrote: > > Sorry. Here's a somewhat better version, against pop3.el version 2.03: ----------------------------cut here------------------------------- --- e:\bin\XEmacs\xemacs-packages\lisp\mail-lib\pop3.el Mon Mar 08 22:36:12 1999 +++ pop3.el Mon Mar 29 15:22:04 1999 @@ -310,12 +310,18 @@ (defun pop3-clean-region (start end) "Convert MS-DOG style line endings to normal line endings. -Also remove '.' from the beginning of lines." +Also remove '.' from the beginning of lines. +Also escape 'From ' at the beginning of lines with '>'." (setq end (set-marker (make-marker) end)) (save-excursion (goto-char start) (while (and (< (point) end) (search-forward "\r\n" end t)) (replace-match "\n" t t)) + ;; Escape "\n\nFrom " (for mbox). + (goto-char start) + (while (re-search-forward "\n\n\\(From \\)" end t) + (replace-match "\n\n>\\1" t nil)) + ;; (goto-char start) (while (and (< (point) end) (re-search-forward "^\\." end t)) (replace-match "" t t) ----------------------------cut here------------------------------- I think this is what movemail that comes with XEmacs does (I mean it doesn't seem to look for more than just a "\n\nFrom ". And the message that got screwed up in my mail had the following innocent-looking line: >>From that webpage: that got treated like the start of a new message... FWIW. -- Cheers, -Dima.