From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/9908 Path: main.gmane.org!not-for-mail From: Randal Schwartz Newsgroups: gmane.emacs.gnus.general Subject: Re: mbox quoting (was: Re: Gnus, movemail, POP3, trailing empty lines) Date: 12 Feb 1997 05:52:06 -0700 Sender: merlyn@gadget.cscaper.com Message-ID: <8chgjijifd.fsf@gadget.cscaper.com> References: <0fbu9soebf.fsf@fraxinus.daimi.aau.dk> NNTP-Posting-Host: coloc-standby.netfonds.no X-Trace: main.gmane.org 1035149862 21243 80.91.224.250 (20 Oct 2002 21:37:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Oct 2002 21:37:42 +0000 (UTC) Cc: The Ding List Return-Path: Original-Received: from riker.diamond-lane.net (root@riker [206.190.83.4]) by deanna.miranova.com (8.8.5/8.8.5) with ESMTP id FAA31499 for ; Wed, 12 Feb 1997 05:11:20 -0800 Original-Received: from ifi.uio.no (ifi.uio.no [129.240.64.2]) by riker.diamond-lane.net (8.8.5/8.8.5) with SMTP id FAA00874 for ; Wed, 12 Feb 1997 05:17:23 -0800 Original-Received: from gadget.cscaper.com (gadget.cscaper.com [206.67.186.3]) by ifi.uio.no with ESMTP (8.6.11/ifi2.4) id for ; Wed, 12 Feb 1997 13:52:35 +0100 Original-Received: (from merlyn@localhost) by gadget.cscaper.com (8.8.3/8.8.3) id FAA07123; Wed, 12 Feb 1997 05:52:07 -0700 (MST) Original-To: Per Abrahamsen In-Reply-To: Per Abrahamsen's message of 12 Feb 1997 08:35:37 +0100 Original-Lines: 32 X-Mailer: Gnus v5.4.11/Emacs 19.34 Xref: main.gmane.org gmane.emacs.gnus.general:9908 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:9908 >>>>> "Per" == Per Abrahamsen writes: Per> Sudish Joseph writes: >> Why Randal couldn't munge all his mailboxes into either format in one >> line of Perl is beyond me. :) Per> Because information is lost for messages stored with the old Per> algorithm. You can easily remove the extra quoting performed by the Per> new algorithm, like this Per> s/^>(>*From )/\1/ Per> but I cannot see why anyone would want to do that. No, that's not cool enough: s/^>(?=>*From )//; New positive lookahead feature. Very cool, literally "replace this > with nothing *only* when it is followed by >*From". And yours should have had $1 on right, not \1. Oh well. :-) Enough perl. Back to ding-ing around. -- Name: Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095 Keywords: Perl training, UNIX[tm] consulting, video production, skiing, flying Email: Snail: (Call) PGP-Key: (finger merlyn@ora.com) Web: My Home Page! Quote: "I'm telling you, if I could have five lines in my .sig, I would!" -- me