mhonarc-users

Bug or my own error?

2000-05-15 16:13:37

To:  Mhonarc mailing list
From:  Ed Wright JPL


I use mhonarc to convert mail messages to html and
extract the MIME data as one would expect.  However,
I execute mhonarce from a Perl script aliased against
the mail address.

My needs require a mail message written to temp file,
mhonarc process this file and writes the html out to a
explicitly name file. In order to accomplish this, my
script runs mhonarc twice, once to convert the MIME data
and write the converted file, then again to write the
html file with the proper external file name.

The setup has the following structure

 mail -> run perl script in a secure directory writes a temp file
         to  another directory then
      -> run mhonarc from its directory (twice) to create
         an html file and the deMIMEed file

The script executes mhonarc in this fashion


my $mhonarc = "$MHONARC_APP -outdir $MESSAGE_PATH -single ".
              " -stdin $Src_file -stdout $Html_file";

unlink "$Html_file";

$mhonarc = "$MHONARC_APP -single -stdin $Src_file -stdout $Html_file";

Is there a better way to do things.

Second.  The technique previously described may be goofy,
but did function properly until recently.  A mail file with
a gif attachment sent from an SGI IRIX via netscape's mail app
worked, send the same file (exactly the same) from a Mac or Solaris
and the output html file always points to gif00000.gif.

Any ideas why.

The diff between the two mail files...



13,14c17,19
< Subject: New Mhonarc test
< Content-Type: multipart/mixed; boundary="------------9684AD6E7946F3138757D3CA"
---
Subject: ENB test
Content-Type: multipart/mixed;
 boundary="------------043CA7C51956A5475EA3127F"
17c22
< --------------9684AD6E7946F3138757D3CA
---
--------------043CA7C51956A5475EA3127F
24,25c29,30
< ENTRY_TIME  =   2000 MAY 15 17:25:07
< AUTHOR  =  EDW 4
---
ENTRY_TIME  =   2000 MAY 15 17:31:45
AUTHOR  =  EDW 5
31,36c36,39
< Test of new Mhonarc.  A butterfly image
< (I hope).
<
<
< --------------9684AD6E7946F3138757D3CA
< Content-Type: image/gif; name="mhastampw_t.gif"
---
Another test
--------------043CA7C51956A5475EA3127F
Content-Type: image/gif;
 name="mhastampw_t.gif"
38c41,42
< Content-Disposition: inline; filename="mhastampw_t.gif"
---
Content-Disposition: inline;
 filename="mhastampw_t.gif"
588c592
< --------------9684AD6E7946F3138757D3CA
-----
--------------043CA7C51956A5475EA3127F--


As always,
Ed Wright

 

<Prev in Thread] Current Thread [Next in Thread>