File: RELNOTES

package info (click to toggle)
mhonarc 2.6.19-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 8,752 kB
  • ctags: 7,929
  • sloc: perl: 279,551; makefile: 35
file content (350 lines) | stat: -rw-r--r-- 16,647 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
[Prev]                    [TOC][FAQ][Bugs][Home]                     [Next]

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Release Notes

This section highlights important changes that have occurred and important
usage details which you should be aware of before using MHonArc. If you are
upgrading from a previous release, make sure to check for the highlighted
incompatibilites from earlier releases.

NOTE: Read the CHANGES document included in the distribution for a more
      complete summary of changes to MHonArc.

  • Compatibility Notes
      □ UPGRADING FROM v2.6.11 OR EARLIER: Handling of return value for
        $mhonarc::CB{Raw}MessageBodyRead Changed
      □ UPGRADING FROM v2.5.x OR EARLIER: Default iso-2022-jp Converter
        Changed
      □ UPGRADING FROM v2.4.x OR EARLIER: DEFRCNAME Change
      □ UPGRADING FROM v2.4.x OR EARLIER: HEADER and FOOTER Removed
      □ UPGRADING FROM v2.4.x OR EARLIER: MIMEFILTERS API Change
      □ UPGRADING FROM v2.1.x OR EARLIER: Database Format Change
      □ DOWNGRADING TO OLDER VERSIONS
  • v2.6.9 Notes
      □ Attachment filename format change
      □ mhonarc::write_attachment: API change
  • v2.6.0 Notes
      □ m2h_text_html::filter: default argument removed
      □ SPAMMODE: Applies to message body text.
      □ readmail::MAILhead_get_disposition: API change.
  • General Notes
      □ Japanese and MHonArc
      □ Auto-loaded URL attributes stripped in HTML messages
      □ iso8859.pl deprecated
      □ TSLICE range setting
      □ MHonArc code under the mhonarc namespace
      □ HTMLEXT and MSGPREFIX usage warning
      □ Applying new MIMEFILTERS settings

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Compatibility Notes

This sections provides notes dealing with compatibility issues if upgrading
from a previous release of MHonArc:

UPGRADING FROM v2.6.11 OR EARLIER: Handling of return value for
$mhonarc::CB{Raw}MessageBodyRead Changed

NOTE: If you do not utilize MHonArc's callback API, you can ignore this
      compatibility item. However, if you use the mha-preview example
      script, continuing reading.

In v2.6.12, the return value for the $mhonarc::CBMessageBodyRead and
$mhonarc::CBRawMessageBodyRead is now checked to see if the message should
be excluded from further processing. In previous versions, the return value
was N/A. Therefore, if you use either of these callbacks, and the return
value of your routines evaluates to false for a given message, the message
will be excluded from the archive.

If you never want to exclude messages with either of these callbacks, have
your routines always return 1.

NOTE: The example mha-preview script provided in the MHonArc distribution
      has been updated to reflect the change in return value handling. Even
      though it is statistically unlikely messages will be quietly excluded
      with older versions of the script; it is recommended to replace your
      copy with the latest version.

UPGRADING FROM v2.5.x OR EARLIER: Default iso-2022-jp Converter Changed

In v2.6, the default charset converter for iso-2022-jp has changed to the
following:

<CharsetConverters>
iso-2022-jp; MHonArc::CharEnt::str2sgml; MHonArc/CharEnt.pm
</CharsetConverters>

This filter converts all Japanese characters into Unicode character entity
references (e.g. &#x7279;) removing the iso-2022-jp encoding. For some
Japanese locales, this type of conversion may not be desired since some
Japanese-aware processing tools may not support Unicode character entity
references. If you want to preserve the iso-2022-jp encoding, you must
explicitly specify the use of iso_2022_jp::str2html via the
CHARSETCONVERTERS resource as follows:

<CharsetConverters>
iso-2022-jp; iso_2022_jp::str2html; iso2022jp.pl
</CharsetConverters>

The change to MHonArc::CharEnt::str2sgml as the default converter for
iso-2022-jp was done to make MHonArc as locale neutral as possible in its
default configuration.

For more information about using MHonArc in a Japanese locale, see
(documents in Japanese): <http://www.mhonarc.jp/>

UPGRADING FROM v2.4.x OR EARLIER: DEFRCNAME Change

The default value for the DEFRCNAME is now called ".mhonarc.mrc", or
"mhonarc.mrc" under Windows and VMS. The old value was ".mhonarc.rc", or
"mhonarc.rc". If you use the default resource file, you will need to rename
the file to match the filenames used for v2.5 and later.

UPGRADING FROM v2.4.x OR EARLIER: HEADER and FOOTER Removed

The HEADER and FOOTER resources are no longer supported. If you are using
these resources, the HEADER content and FOOTER content will be lost once
v2.5, or later, of MHonArc processes an archive containing these resources.

The HEADER and FOOTER resources have been deprecated for a long time since
they only applied to the main index; the thread index has no equivalent.
The IDXPGBEGIN or LISTBEGIN resources can be used to achieve the same
effect of HEADER. The IDXPGEND or LISTEND can be used to achieve the same
effect of FOOTER.

UPGRADING FROM v2.4.x OR EARLIER: MIMEFILTERS API Change

The API for data filters registered via MIMEFILTERS is not capability with
filters written for v2.4.x and earlier. See CHANGES and the documentation
for the MIMEFILTERS resource for the API.

If you use custom style filters written for v2.4.x, or earlier, you will
need to update them for them to work properly under v2.5, and later.

UPGRADING FROM v2.1.x OR EARLIER: Database Format Change

If you have archives created with v2.1.x, or earlier, the format of
mime-related resources is not compatible with v2.2, and later, versions.
MHonArc will reset the mime-related resources CHARSETCONVERTERS and
MIMEFILTERS to their default values. MIMEARGS will also be reset to the
default value unless you are upgrading to v2.5.8, or later, where the
MIMEARGS settings will be preserved.

To avoid the resetting of the mime-related resource if you are using
customized settings, you will need to re-specify your settings the next
time you update an archive. If you always specify your resource settings
each time you invoke MHonArc, then your settings should to still take
effect.

You can also use the mha-dbedit program to apply your settings directly
without processing the archive.

DOWNGRADING TO OLDER VERSIONS

CAUTION: Downgrading to an earlier version of MHonArc can corrupt your
         archives, especially when downgrading to an older version that
         used different database file storage formats from the current
         version in use.

Changes in archive format are not common, so downgrading can be okay
depending on the versions involved. The key versions to watch out for are
the ones noted in this section where database format changes have occured.
The following lists release numbers where a format change occured:

  • 2.0.0
  • 2.2.0
  • 2.5.0

For example, if an archive was last updated with v2.5.0, processing the
archive with a previous release will cause problems.

A possible method for successfully downgrading to a release with
differences in the database format, is to try to reconstruct the database
file using the mha-dbrecover utility contained in the MHonArc version the
archive is being downgraded to.

TIP: The safest way to downgrade is to recreate an archive from the
     original raw mail data. It is good practice to preserve the raw mail
     data for cases like this and for general archive recovering situations
     due to file corruption or other system failures.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

v2.6.9 Notes

Attachment filename format change

Attachment filenames have changed from the numeric-style <ext><#####>.<ext>
to <ext><XXXXXXXXXX>.<ext> where <XXXXXXXXXX> is a random string. For
example, a jpeg image in the older format would have a filename like
"jpg00001.jpg", and in the new style, it would be something like
"jpgAOMySzCNIE.jpg".

The change should be transparent and was done to provide support for the
ATTACHMENTDIR resource and as a performance enhancement. However, if you
perform any custom post-processing on archives that depends on the old
numeric-style format, you will need to take this change into account.

mhonarc::write_attachment: API change

mhonarc::write_attachment is the main routine for filters that save data to
an external file. The signature of the routine was changed while fixing bug
#5473. See the API appendix for more information.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

v2.6.0 Notes

m2h_text_html::filter: default argument removed

The default argument for the m2h_text_plain::filter has been removed. The
DEFCHARSET can be used instead.

SPAMMODE: Applies to message body text.

If SPAMMODE resource is enabled, it enables the new MODIFYBODYADDRESSES
resource, which enables ADDRESSMODIFYCODE to rewrite addresses in message
text bodies. If you prefer to not have addresses in message bodies modified
when SPAMMODE is enabled, you must explicitly disable the
MODIFYBODYADDRESSES resource.

readmail::MAILhead_get_disposition: API change.

The calling interface to readmail::MAILhead_get_disposition has been
changed to the following:

($disp, $file, $raw, $html_name)  =
              readmail::MAILhead_get_disposition($fields_hash_ref, $do_html);

The $file return value now has special, or invalid, filename characters
converted to underscores.

The $do_html is optional. If a true value, $html_name will be returned as a
representation of the filename suited for inclusion HTML and with character
conversion processing done.

The $raw return value is the raw filename value as specified in the message
header, which may include pathname components. This return value is mainly
for informative reasons and it should not be used by filter code for
security reasons.

The changes are backward compatible, but if you have written custom
filters, you may want to use the new calling convention if you display the
filename in the HTML generated.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

General Notes

Japanese and MHonArc

Information on using MHonArc in a Japanese locale is available at the
following location (documents in Japanese): <http://www.mhonarc.jp/>.

Auto-loaded URL attributes stripped in HTML messages

For v2.5, the default text/html filter (mhtxthtml.pl) will disable
auto-loaded URL attributes for some HTML elements -- IMG, BODY, IFRAME,
FRAME, OBJECT, SCRIPT, INPUT -- except for cid: URLs. This behavior can be
disabled if the 'allownoncidurls' filter argument is specified.

The new behavior prevents malicious URLs being used to verify mail
addresses, secretly setting cookies, or gather some statistical data
without the explicit consent of the reader.

iso8859.pl deprecated

ISO-8859 character set data processing now defaults to using the
MHonArc::CharEnt module in v2.5. The old iso8859.pl library is still
provided for compatibility with older archives, and with v2.6, iso8859.pl
directly invokes MHonArc::CharEnt.

To update archives to use the new settings, you can run the following
command,

┌─────────────────────────────────────────────────────────────────────────┐
│mha-dbedit -rcfile examples/def-mime.mrc \                               │
│           -outdir /path/to/archive                                      │
└─────────────────────────────────────────────────────────────────────────┘

where examples/def-mime.mrc represents the default MIME processing
resources for MHonArc provided within the MHonArc distribution.

NOTE: v2.5.4, and later, generated archives will automatically inherit new
      CHARSETCONVERTERS if the built-in defaults are being used. However,
      if you have defined CHARSETCONVERTERS for your archives, you will
      need to explicitly update your archives if you want the new settings
      applied to your archives.

TSLICE range setting

The value of the TSLICE resource is used to determine the number of
messages to update, before and after by thread, of each new message added.
To insure that messages within a thread slice are updated when a new
message is added, make sure the before and after ranges specified for
TSLICE is equal to the maximum-before and the maximum-after range arguments
specifed in the uses of the $TSLICE$ resource variable. For example, if you
have $TSLICE(0;4)$ and $TSLICE(3;3)$ in message layout resources, you
should set TSLICE to 3:4.

If you only use $TSLICE$ once, it is best to set options for thread slice
formatting via the TSLICE resource so you will not have anything to worry
about.

MHonArc code under the mhonarc namespace

If upgrading from v2.1.x, or earlier, any custom filters you have developed
may need to modified. If your filter accessed some main variables, your
filter will not operate properly. All variables that used to be in package
"main" are no longer. The major variables are now in package "mhonarc". For
example, $::OUTDIR is now $mhonarc::OUTDIR. See the MIMEFILTERS resource
page for more information.

HTMLEXT and MSGPREFIX usage warning

See the warnings in the documentation for the HTMLEXT and MSGPREFIX
resources before using them.

Applying new MIMEFILTERS settings

Occasionally, a new release of MHonArc may contain new MIME filters. See
the CHANGES file to check if any new filters have been added.

If you confirm that new filters have been added, and you want to apply them
to your archives, you use the mha-dbedit program using the def-mime.mrc in
the examples directory.

NOTE: v2.5.4, and later, generated archives will automatically inherit new
      MIMEFILTERS if the built-in defaults are being used. However, if you
      have defined MIMEFILTERS for your archives, you will need to
      explicitly update your archives if you want the new settings applied
      to your archives.

Example usage of mha-dbedit:

┌─────────────────────────────────────────────────────────────────────────┐
│mha-dbedit -rcfile examples/def-mime.mrc \                               │
│           -outdir /path/to/archive                                      │
└─────────────────────────────────────────────────────────────────────────┘

Change the -rcfile and -outdir pathnames to reflect where you are running
mhonarc and where your archive is located, respectively.

Note, if your archives are using custom settings of MIMEFILTERS, MIMEARGS,
and/or CHARSETCONVERTERS resources, you will need to create a variant
version of def-mime.mrc (included in the examples directory) to include
your settings and use the variant version when updating your archives.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

[Prev]                    [TOC][FAQ][Bugs][Home]                     [Next]

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

$Date: 2005/07/11 00:13:53 $
MHonArc
Copyright © 1997-2005, Earl Hood, mhonarc@mhonarc.org