Uploaded image for project: 'JITL - JobScheduler Integrated Template Library'
  1. JITL - JobScheduler Integrated Template Library
  2. JITL-185

Job sos.mail.SOSMailProcessInbox should not throw an exception when mail_action=dump and mail_dump_dir has a valid value

    XMLWordPrintable

Details

    Description

      Description
      When the job [[sos.mail.SOSMailProcessInbox]] is configured with

      • mail_action=dump
      • mail_dump_dir=path

      an exception is thrown.

      [ERROR]  (Task jade-289/SOSMailProcessInbox:262343) ERROR [main] (SOSMailProcessInbox.java:134) - an error occurred while processing: com.sos.JSHelper.Exceptions.JobSchedulerException: No output directory specified. 
      

      Desired behaviour
      No exception should be thrown when a valid mail_dump_dir is specified and the mail_action is dump. Instead of this, the value for mail_dump_dir should be used as documented.

      Example Job Configuration

      <job  title="Process email incoming box" order="yes" stop_on_error="no" name="SOSMailProcessInbox">
          <settings >
              <log_level ><![CDATA[debug9]]></log_level>
          </settings>
      
          <description >
              <include  file="jobs/SOSMailProcessInbox.xml"/>
          </description>
      
          <params >
              <param  name="mail_host" value="host"/>
              <param  name="mail_user" value="user"/>
              <param  name="mail_password" value="nikolaus"/>
              <param  name="mail_port" value="110"/>
              <param  name="mail_message_folder" value="INBOX"/>
              <param  name="mail_action" value="dump"/>
              <param  name="mail_dump_dir" value="c:\temp\input"/>
              <param  name="mail_server_type" value="POP3"/>
          </params>
      
          <script  language="java" java_class="sos.mail.SOSMailProcessInbox"/>
      
          <run_time />
      </job>
      
      

      Attachments

        Activity

          People

            ur Uwe Risse
            ur Uwe Risse
            Uwe Risse Uwe Risse
            Victor Garcia-Beltran Victor Garcia-Beltran (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: