mhonarc-dev

Re: invalid link label for a message attachment if file name is MIME encoded.

2003-02-05 01:08:50
Thank you for your reply and BUGFIX #2474 .

On February 4, 2003 at 12:07, =?ISO-2022-JP?B?GyRCP3k4NhsoQg==?= wrote:
Ah,Sorry.

I've tested snapshot(2003-02-04) + TEXTENCODE , snapshot + latest
library from CVS marked *BUGFIX #2474 + TEXTENCODE .
But now I have two problems.
1) If attachment file name is include 0x24,in the MAILhead_get_disposition ,
  $filename becomes invalid.

  Content-Disposition: attachment; filename="
        =?ISO-2022-JP?B?GyRCJSIlJCUmGyhC?=.xls"

  "=?ISO-2022-JP?B?GyRCJSIlJCUmGyhC?=.xls" should be decode to
  1b  24 42 2522 2524 2526 1b  28 42 2e 78 6c 73
  ESC $  B         ~~      ESC (  B  .  x  l  s

  I changed temporarily like below,it seems good (not using TEXTENCODE).
  ---------------------------------
  %diff readmail.pl.org readmail.pl
  930c930
  <       if (/filename="([^"]+)"/i) {
  ---
  >       if (/filename="(.+)"$/i) {
  937c937
  <       if (/name="([^"]+)"/i) {
  ---
  >       if (/name="(.+)"$/i) {
  ---------------------------------
 
2) In the Head of Message (<!--X-Head-of-Message--> to 
<!--X-Head-of-Message-End-->
   "@" is converted to &#x40 (Unicode character entity references).
   For example, namazu sometimes uses  "From" field in this area and it can't
   detect mail address ...
--------------------------------
<!--X-Head-of-Message-->
<ul>
<li><em>To</em>: testfile&#x40;foo.bar.jp</li>
<li><em>Subject</em>: test</li>
<li><em>From</em>: t_sugihara &lt;t_sugihara&#x40;foo.bar&gt;</li>
<li><em>Message-id</em>: 
&lt;<ahref="msg00000.html">xxxxxx(_at_)foo(_dot_)bar(_dot_)jp</a>&gt;</li>
<li><em>Received</em>: from smtp.foo.bar by foo.bar.jp for
&lt;testfile&#x40;foo.bar.jp&gt;; Tue, 4 Feb 2003 10:39:15 </li>
<li><em>Received</em>: from T-Sugihara  by foo.bar.jp  with SMTP id 
h141dFA21642 for
&lt;testfile&#x40;foo.bar.jp&gt;; Tue, 4 Feb 2003 10:39:15 </li>
<li><em>Return-path</em>: &lt;t_sugihara&#x40;foo.bar&gt;</li>
</ul>
<!--X-Head-of-Message-End-->
--------------------------------
In the "To","From" and "Received"  field , "@" is converted to "&#40;" .
In the "Message-id" field , "@" is remained.

Is it caused by my wrong environment ? or are there any work-around?

Thanks,regards.
-----------
Tomohiko Sugihara (t_sugihara(_at_)mtb(_dot_)biglobe(_dot_)ne(_dot_)jp)



---------------------------------------------------------------------
To sign-off this list, send email to majordomo(_at_)mhonarc(_dot_)org with the
message text UNSUBSCRIBE MHONARC-DEV