Priority in the Spooling Queues

Priority is supported when James (de)queues the mails during the spooling process.

For this just add a Mail attribute with name "MAIL-PRIORITY" to the mail you send.

This mail header should use one of the following value:

  1. 0 for LOW-PRIORITY
  2. 5 for NORMAL-PRIORITY (default)
  3. 9 for HIGH-PRIORITY

Default priority if no MAIL-PRIORITY attribute set is NORMAL-PRIORITY.

Usage Scenario

There are two scenarios to set priority in the queue.

  • Write a SMTP hook which sets the header and add the hook to smtphandler chain.
  • You could also add the header in a mailet to let remotedelivery pick it up again on redelivery.