The 20 Minute E-Mail Solution!
TOC PREV NEXT INDEX

ParseExtensions


You can use ParseExtensions to parse the IMail tags for any included file, regardless of its file extension. This is useful for people who are unable to manually change the file extension. Note that this feature works when you use the IMail "include" tag. You can now use the IMail "include" tag to parse whatever file extension is listed in the registry. For example, the following IMail tags can be made valid by using ParseExtensions:

<!--IMAIL.Include filename.asp-->

<!-- IMAIL.Include filename.cgi-->

<!--IMAIL.Include filename.js-->

<!--IMAIL.Include filname.txt-->

Basically, this feature allows you to control whether the IMail tags are parsed for an included document (of a specific file extension), or wether the IMail tags are simply displayed.

Directory Location

The ParseExtensions REG_MULTI_SZ value goes in the following registry location:

[HKEY_LOCAL_MACHINE\SOFTWARE\Ipswitch\IMail\Global] 

If ParseExtensions does not exist in the registry, the IMail "include" tag will parse files with the following extensions automatically, allowing IMail tags to be executed within the given file: cgi, asp, htm and html.

All other file extensions will be parsed, however, the IMail tags will be displayed as written and NOT executed. The IMail "include" tag will also parse all file extensions, but it will NOT execute the IMail tags within these files.

If ParseExtensions is located in the registry but does not contain any file extensions, the IMail "include" tag will parse all file extensions given to the tag. It will also execute all IMail tags found within the parsed file.

Adding ParseExtensions to the Registry

To add ParseExtensions to the registry, do the following:

  1. Launch the "Run" command line.
  2. Type "regedit" and press Enter on the keyboard.
  3. Go to the following registry location:

[HKEY_LOCAL_MACHINE\SOFTWARE\Ipswitch\IMail\Global]

  1. Add a value of ParseExtensions, with type, REG_MULTI_SZ
  2. Enter the extensions of the files, which you want to have executable IMail tags, into the textbox without any delimiters. For example, if you would like to only parse the IMail tags for cgi, html, and asp files, enter the desired extensions on each line.

Each extension should occupy its own line as follows:

cgi

html

asp

  1. In order for the changes to take effect, you must restart Web Messaging.

Note: Only the file extensions listed will have the ability to execute IMail tags when included in a document via the IMail "include" tag.



Ipswitch, Inc.
http://www.ipswitch.com
TOC PREV NEXT INDEX
©Ipswitch 2001