Article View: comp.mail.mh
Article #2098Problems in moving from Rmail to MH
From: Pragnesh Sampat
Date: Sun, 23 Oct 1994 21:14
Date: Sun, 23 Oct 1994 21:14
120 lines
4681 bytes
4681 bytes
Hello,
I decided (after looking at the FAQ and some other docs) yesterday that
MH was something I was looking for (to process large amounts of mail
without drowning). However, I ran into some problems and am checking if
somebody has any ideas.
(For what it is worth, I have not chosen an interface yet, but will
probably use MH-e.)
My ~/.mh_profile is:
Path: Mail
and My folders look like:
marlin:~>ls -l Mail
total 5
-rw------- 1 pss 22 Oct 23 14:37 context
drwx--S--- 2 pss 512 Oct 23 14:11 drafts
drwx--S--- 2 pss 512 Oct 23 14:09 inbox
drwxrwsr-x 2 pss 1536 Oct 23 14:34 rmail
I wanted to convert my rmail file to MH and store the messages in the
+rmail folder.
When I run babyl2mh.pl (from the end of the FAQ - the one by # V. Khera
<khera@cs.duke.edu>), the program converts some messages and then I get
a segment fault and it dumps core. To get a closer look, I looked
through the script and it seems to be fine. It dumps core when (looked
through the perl debugger) it is trying to remove the duplicate Rmail
header. Here is a sample header on which this seg faulted (The first
character in the $_ will be ^L ...):
---- header begins --
^_^L
1,,
Summary-line: 7-Oct Valther Rasmussen #Re: Solaris
2.3/SBA-200 Problem
Mail-from: From var@danosi.dk Fri Oct 7 06:04:29 1994
Return-Path: <var@danosi.dk>
Received: from fore.com (relay) by dolphin.fore.com (4.1/SMI-4.1)
id AA09499; Fri, 7 Oct 94 06:04:22 EDT
Errors-To: ej@danosi.dk
Received: from ns.dknet.dk (ns.dknet.dk [193.88.44.42]) by fore.com
(8.6.9/8.6.5) with SMT
P id GAA03721 for <support@fore.com>; Fri, 7 Oct 1994 06:02:07 -0400
Received: from danosi by ns.dknet.dk with UUCP id AA26290
(5.65c8/IDA-1.4.4j for support@fore.com); Fri, 7 Oct 1994 11:03:29
+0100
Received: from cc.danosi.dk (cc-smtp) by danosi.dk (4.1/SMI-4.1)
id AA01163; Fri, 7 Oct 94 11:03:22 +0100
Errors-To: ej@danosi.dk
Received: from cc:Mail by cc.danosi.dk
id AA781520489; Fri, 07 Oct 94 11:01:29 MET
Date: Fri, 07 Oct 94 11:01:29 MET
From: "Valther Rasmussen" <var@danosi.dk>
Encoding: 16 Text, 450 Text
Message-Id: <9409077815.AA781520489@cc.danosi.dk>
To: support@fore.com
Subject: Re: Solaris 2.3/SBA-200 Problem
X-Charset: ASCII
X-Char-Esc: 29
*** EOOH ***
Return-Path: <var@danosi.dk>
Errors-To: ej@danosi.dk
Errors-To: ej@danosi.dk
Date: Fri, 07 Oct 94 11:01:29 MET
From: "Valther Rasmussen" <var@danosi.dk>
Encoding: 16 Text, 450 Text
To: support@fore.com
Subject: Re: Solaris 2.3/SBA-200 Problem
X-Charset: ASCII
X-Char-Esc: 29
---- header ends --
and here is the relevant (I think) part of the code:
...
...
while (<BABYL>) {
chop; # get rid of delimeter
s/\f(.|\n)*\*\*\* EOOH \*\*\*\n//; # remove duplicate header
information
open(RCVSTORE,"|" . $rcvstore . " $folder");
print RCVSTORE $_;
$msgnum++;
print "Message $msgnum done.\n";
}
...
...
Is this known not to work in some cases?
The perl verion I have is:
$RCSfile: perl.c,v $$Revision: 4.0.1.4 $$Date: 91/06/10 01:23:07 $
Patch level: 10
I have also tried the following:
$RCSfile: perl.c,v $$Revision: 4.0.1.8 $$Date: 1993/02/05 19:39:30 $
Patch level: 36
with the same results.
I could not charecterize on what messages this seems to happen. A
common (but not always) thing I observed is that they are large
messages.
I just tried the other script "inco" and that seems to have worked.
(pretty good, using emacs in the batch mode)
Let me know if you have any ideas. Thanks.
--
Pragnesh Sampat
PS If using email to reply, please use "pss@fore.com".
Technical Details
Message-ID:
<38ejna$1in@cronkite.ocis.temple.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!psuvax1!news.cc.swarthmore.edu!netnews.upenn.edu!cronkite.ocis.temple.edu!astro.ocis.temple.edu!psampatShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fe14c,1d12675094faf51c,start X-Google-Attributes: gidfe14c,public X-Google-Thread: 10259a,1d12675094faf51c,start X-Google-Attributes: gid10259a,public X-Google-Thread: 103b8b,1d12675094faf51c,start X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1994-10-23 14:26:18 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!news.moneng.mei.com!uwm.edu!psuvax1!news.cc.swarthmore.edu!netnews.upenn.edu!cronkite.ocis.temple.edu!astro.ocis.temple.edu!psampat From: psampat@astro.ocis.temple.edu (Pragnesh Sampat) Newsgroups: comp.mail.mh,comp.lang.perl,gnu.emacs.help Subject: Problems in moving from Rmail to MH Date: 23 Oct 1994 21:14:18 GMT Organization: Temple University, Academic Computer Services Lines: 123 Message-ID: <38ejna$1in@cronkite.ocis.temple.edu> NNTP-Posting-Host: astro.ocis.temple.edu Summary: mail conversions Keywords: BABYL,MH X-Newsreader: TIN [version 1.2 PL2]