| 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>MHonArc Resources: MSGSEP</title> |
| 5 | </head> |
| 6 | <body> |
| 7 | <!--x-rc-nav--> |
| 8 | <table border=0><tr valign="top"> |
| 9 | <td align="left" width="50%">[Prev: <a href="msgprefix.html">MSGPREFIX</a>]</td><td><nobr>[<a href="../resources.html#msgsep">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next: <a href="multipg.html">MULTIPG</a>]</td></tr></table> |
| 10 | <!--/x-rc-nav--> |
| 11 | <hr> |
| 12 | <h1>MSGSEP</h1> |
| 13 | |
| 14 | <!-- *************************************************************** --> |
| 15 | <hr> |
| 16 | <h2>Syntax</h2> |
| 17 | |
| 18 | <dl> |
| 19 | |
| 20 | <dt><strong>Envariable</strong></dt> |
| 21 | <dd><p> |
| 22 | <code>M2H_MSGSEP=</code><var>Perl-regexp</var> |
| 23 | </p> |
| 24 | </dd> |
| 25 | |
| 26 | <dt><strong>Element</strong></dt> |
| 27 | <dd><p> |
| 28 | <code><MSGSEP><br></code> |
| 29 | <var>Perl-regexp</var><br> |
| 30 | <code></MSGSEP><br></code> |
| 31 | </p> |
| 32 | </dd> |
| 33 | |
| 34 | <dt><strong>Command-line Option</strong></dt> |
| 35 | <dd><p> |
| 36 | <code>-msgsep </code><var>Perl-regexp</var> |
| 37 | </p> |
| 38 | </dd> |
| 39 | |
| 40 | </dl> |
| 41 | |
| 42 | <!-- *************************************************************** --> |
| 43 | <hr> |
| 44 | <h2>Description</h2> |
| 45 | |
| 46 | <p>MSGSEP defines the Perl regular expression that represents the |
| 47 | message separator for mailbox files. </p> |
| 48 | |
| 49 | <!-- *************************************************************** --> |
| 50 | <hr> |
| 51 | <h2>Default Setting</h2> |
| 52 | |
| 53 | <pre> |
| 54 | ^From |
| 55 | </pre> |
| 56 | |
| 57 | <p><strong>Note</strong>: There is a space character after |
| 58 | "<code>From</code>". |
| 59 | </p> |
| 60 | |
| 61 | <!-- *************************************************************** --> |
| 62 | <hr> |
| 63 | <h2>Resource Variables</h2> |
| 64 | |
| 65 | <p>N/A |
| 66 | </p> |
| 67 | |
| 68 | <!-- *************************************************************** --> |
| 69 | <hr> |
| 70 | <h2>Examples</h2> |
| 71 | |
| 72 | <p>Some MTAs do not escape lines that start with "<tt>From </tt>". |
| 73 | This will cause <em>MHonArc</em> to split a message into separate |
| 74 | messages since it will treat the line as a message separator |
| 75 | (if <em>MHonArc</em> is processing a mailbox file). One |
| 76 | way to help avoid this problem is to set the MSGSEP resource to |
| 77 | a more specific regular expression. For example: |
| 78 | </p> |
| 79 | |
| 80 | <pre> |
| 81 | <b><MSGSEP></b> |
| 82 | ^From \S+\s+\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\s+\d+ |
| 83 | <b></MSGSEP></b> |
| 84 | </pre> |
| 85 | |
| 86 | <p>or</p> |
| 87 | |
| 88 | <pre> |
| 89 | <b><MSGSEP></b> |
| 90 | ^From\s+(?:"[^"]+"@\S+|\S+)\s+\S+\s+\S+\s+\d+\s+\d+:\d+:\d+\s+\d+ |
| 91 | <b></MSGSEP></b> |
| 92 | </pre> |
| 93 | |
| 94 | <p>The second version deals with some systems that have quoted |
| 95 | local parts in the address listed in the separator. |
| 96 | </p> |
| 97 | |
| 98 | <p>It is still possible to get bogus splitting if a message |
| 99 | contains a line that matches the regexp. |
| 100 | Therefore, you may |
| 101 | want to activate the <a href="conlen.html">CONLEN</a> resource, |
| 102 | if applicable. |
| 103 | </p> |
| 104 | |
| 105 | <!-- *************************************************************** --> |
| 106 | <hr> |
| 107 | <h2>Version</h2> |
| 108 | |
| 109 | <p>1.0 |
| 110 | </p> |
| 111 | |
| 112 | <!-- *************************************************************** --> |
| 113 | <hr> |
| 114 | <h2>See Also</h2> |
| 115 | |
| 116 | <p> |
| 117 | <a href="conlen.html">CONLEN</a> |
| 118 | </p> |
| 119 | |
| 120 | <!-- *************************************************************** --> |
| 121 | <hr> |
| 122 | <!--x-rc-nav--> |
| 123 | <table border=0><tr valign="top"> |
| 124 | <td align="left" width="50%">[Prev: <a href="msgprefix.html">MSGPREFIX</a>]</td><td><nobr>[<a href="../resources.html#msgsep">Resources</a>][<a href="../mhonarc.html">TOC</a>]</nobr></td><td align="right" width="50%">[Next: <a href="multipg.html">MULTIPG</a>]</td></tr></table> |
| 125 | <!--/x-rc-nav--> |
| 126 | <hr> |
| 127 | <address> |
| 128 | $Date: 2002/07/27 05:13:11 $ <br> |
| 129 | <img align="top" src="../monicon.png" alt=""> |
| 130 | <a href="http://www.mhonarc.org/"><strong>MHonArc</strong></a><br> |
| 131 | Copyright © 1997-1998, <a href="http://www.earlhood.com/">Earl Hood</a>, <a href="mailto:mhonarc@mhonarc.org">mhonarc@mhonarc.org</a><br> |
| 132 | </address> |
| 133 | |
| 134 | </body> |
| 135 | </html> |