[Prev: SUBJECTREPLYRXP] | [Next: SUBJECTTHREADS] |
M2H_SUBJECTSTRIPCODE=Perl_expressions
<SUBJECTSTRIPCODE>
Perl expressions...
</SUBJECTSTRIPCODE>
-subjectstripcode Perl_expressions
SUBJECTSTRIPCODE may be used to define Perl expressions to apply to message subjects when parsed by MHonArc. The main use of the resource is to edit message subjects before stored in the archive.
When defining the expressions, the subject text will be in the $_ variable. The value of $_ after all expressions are evaluated is the subject MHonArc will use for the message.
Nil
N/A
Some mailing lists prefix all message subjects with a list identifier so subscribers can easily denote message from the list when received. However, the prefix can clutter MHonArc indexes. The SUBJECTSTRIPCODE can be used to strip the prefixes before messages are stored in the archive.
If the prefix is something like the following,
[LIST-NAME]:
the following SUBJECTSTRIPCODE setting can be used:
s/^\[LIST-NAME\]://;
2.3.0
[Prev: SUBJECTREPLYRXP] | [Next: SUBJECTTHREADS] |