Mon 02 Oct 2006 08:31:11 PM UTC, original submission:
I found out, that the ressource "FieldOrder" affects the behaviour of "AddressModifyCode". A small example:
$ cat t1
Message-ID: <testid-no-real-address@example.com>
Date: Wed, 27 Sep 2006 11:15:54 +0200
Testbody
$ cat test-without-fieldorder.mrc
<AddressModifyCode>
s/@/AT/;
</AddressModifyCode>
<Excs Override>
</Excs>
then
$ mhonarc -rcfile test-without-fieldorder.mrc t1
creates a msg00000.html file with:
<li><em>Message-id</em>: <<a href="msg00000.html">testid-no-real-address@example.com</a>></li>
Correct. A Message-Id is no address and in mhutil.pl is specified, that the Message-Id should not be modified.
However - if I modify the Ressourcefile by adding a "Fieldorder"-ressource:
$ cat test-with-fieldorder.mrc
<AddressModifyCode>
s/@/AT/;
</AddressModifyCode>
<Excs Override>
</Excs>
<FieldOrder>
Date
Message-ID
References
</FieldOrder>
Then
$ mhonarc -rcfile test-with-fieldorder.mrc t1
creates a msg00000.html file with:
<li><em>Message-id</em>: <<a href="mailto:testid-no-real-address%40example.com">testid-no-real-addressATexample.com</a>></li>
Now <AddressModifyCode> modifies the Messageid (and I get a Mailto:-Link instead of the link to the HTML-File).
(And by the way: a reference is no mail address, that field should be included in %HFieldsAsIsList in mhutil.pl)
|