Lasso Soft Inc. > Home

[Email_Parse->Header]

[Email_Parse->Header] returns a single MIME header from the email message. If one header with the name is found then a string is returned. If multiple headers are found then an array of strings is returned. The -Join parameter can be used to specify a character that will be used to join the array if multiple headers are returned.

If an -Extract parameter is specified then all comments are stripped from the returned header. If a -Comment parameter is specified then only comments are returned. If a -SafeEmail parameter is specified then the header is returned as an obscured email address which should help prevent email harvesting on your Web site.

Email headers are automatically decoded if they are sent using quoted-printable or binhex encoding. The -NoDecode parameter can be used to suppress the automatic decoding and return the raw header.

  • Syntax
  • Parameters
[Var: 'myMSG' = (Email_Parse: $myPOP->(Retrieve))]
[$myMSG->(Header: 'To')]
[$myMSG->(Header: 'Received', -Join=',')]
Required Parameters
Header The name of the header to be fetched.
Optional Parameters
-Join Optional join value if multiple headers are found. If not specified (or set to null) then an array will be returned for multiple values.
-Extract Strips all comments from the returned header.
-Comment Returns only comments from the header.
-SafeEmail Returns the header with any contained email addresses obscured.
-NoDecode Suppresses the automatic quoted-printable and binhex decoding of the header.
Examples

See the Lasso 8 Language Guide for examples of how to use this tag.

Tag Link [Email_Parse->Header] Category Email
Type Member Data Source Any
Support Preferred Version 8.0
Output Type None Security None
Implementation LDML Sets Lasso 8.5, Lasso 8.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft