Environment
GWAVA (All versions) Problem/Question: How do I create a template to receive text-only digests? Resolution: 1) Backup the digest templates
For GWAVA 4, navigate to the .../gwava4/assets/global/template folder and create a backup of the following template files (or whichever ones you are using) For newer versions of GWAVA, navigate to the .../gwava/assets/global/template folder and create a backup of the following template files (or whichever ones you are using)2) Modify the digest2_mime_separator to not include any HTML and save it as a different name (digest2_mime_separator_text.shtml)
- digest2_master.xml
Remove everything in the document except what comes before the HTML mime part. It will look like this:3) Modify the digest2_master.xml file to not use the HTML only templates and use the text only mime separator<!--#if var="maximum_digest_rows" empty="true" --><!--#localvar var="maximum_digest_rows" equals="50" --><!--#endif --> ------------------------------------------------------------------------ <!--#if var="digest.messagecount" greaterthan="$(maximum_digest_rows)" --> Additional items were blocked for this account and can be viewed in the GWAVA quarantine management system which is located at the following URL '<!--#echo var="ReleaseButtonAddress" else="http://$(server.connectionaddress)" -->/contents/login.shtml?UserID=<!--#echo var="digest.emailaddress" -->' ------------------------------------------------------------------------ <!--#endif -->
Open the digest_master.xml file in your favorite text editor and remove the digest2_html_body and digest2_footer line so it looks similar to the following:Digests will now be sent without any HTML and in a text only format.<digest><include><files> <file><source>digest2_header.shtml</source><frequency>once</frequency><renderer>shtml</renderer></file> <file><source>digest2_text_body.shtml</source><frequency>perrow</frequency><renderer>shtml</renderer></file> <file><source>digest2_mime_seperator_text.shtml</source><frequency>once</frequency><renderer>shtml</renderer></file> </files></include></digest>
Powered by KBPublisher (Knowledge base software)
Resolution
1) Backup the digest templates
For GWAVA 4, navigate to the .../gwava4/assets/global/template folder and create a backup of the following template files (or whichever ones you are using)2) Modify the digest2_mime_separator to not include any HTML and save it as a different name (digest2_mime_separator_text.shtml)
For newer versions of GWAVA, navigate to the .../gwava/assets/global/template folder and create a backup of the following template files (or whichever ones you are using)
- digest2_master.xml
Remove everything in the document except what comes before the HTML mime part. It will look like this:3) Modify the digest2_master.xml file to not use the HTML only templates and use the text only mime separator
<!--#if var="maximum_digest_rows" empty="true" --><!--#localvar var="maximum_digest_rows" equals="50" --><!--#endif -->
------------------------------------------------------------------------
<!--#if var="digest.messagecount" greaterthan="$(maximum_digest_rows)" -->
Additional items were blocked for this account and can be viewed in the
GWAVA quarantine management system which is located at the following URL
'<!--#echo var="ReleaseButtonAddress" else="http://$(server.connectionaddress)" -->/contents/login.shtml?UserID=<!--#echo var="digest.emailaddress" -->'
------------------------------------------------------------------------
<!--#endif -->
Open the digest_master.xml file in your favorite text editor and remove the digest2_html_body and digest2_footer line so it looks similar to the following:
<digest><include><files>
<file><source>digest2_header.shtml</source><frequency>once</frequency><renderer>shtml</renderer></file>
<file><source>digest2_text_body.shtml</source><frequency>perrow</frequency><renderer>shtml</renderer></file>
<file><source>digest2_mime_seperator_text.shtml</source><frequency>once</frequency><renderer>shtml</renderer></file>
</files></include></digest>
Digests will now be sent without any HTML and in a text only format.
Additional Information
This article was originally published in the GWAVA knowledgebase as article ID 1675.