Skip to end of metadata
Go to start of metadata

Problem

  • The file type of the JobScheduler log attached to the mails is .log.
  • Such files should not be attached to mail.
  • Mail should include any other attachments with different file types.

Solution

  • See How to configure an e-mail service to change the JobScheduler configuration as required.
  • Modify the stylesheet ./config/scheduler_mail.xsl for JobScheduler mails to suppress attachments of the file type .log

from

<?xml version='1.0' encoding='iso-8859-1' ?>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version   = "1.0">
    
   ...

   <xsl:template match="/scheduler_event">
      ...
      <xsl:copy-of select="mail/body/* [ not( text ) ]" />
      ...
   </xsl:template>

</xsl:stylesheet>

to

<?xml version='1.0' encoding='iso-8859-1' ?>
<xsl:stylesheet xmlns:xsl = "http://www.w3.org/1999/XSL/Transform" version   = "1.0">
    
   ...     

   <xsl:template match="/scheduler_event">
      ...
      <xsl:copy-of select="mail/body/file[ not(contains(@path, '.log')) ]" />
      ...
   </xsl:template>

</xsl:stylesheet>

In this example files with the extension .log are excluded from mail delivery.