Configuration of BugTrap-SMTP

The following configuration properties are expected:

factorymandatorypackage.classThe worker factory, should be org.tastybug.bugwerk.bugtrap.worker.smtp.SMTPWorkerFactory
formatoptional, defaults to Txtpackage.classAn AbstractMailBuilder implementation (a factory responsible for the creation of mail messages).
autoconnectoptional, defaults to falsetrue,falseWhen set to true, the plugin automatically mails unreported tickets whenever something is added to, removed from or modified in the connected ticketqueue AND when buffersize is reached. When set to false, you have to trigger the distribution manually.
buffersizeoptional, defaults to 1intThe minimum number of unreported tickets (with at least minincidents incidents) that have to reside in the ticket queue before the plugin starts to auto-distribute unreported tickets.
minincidentsoptional, defaults to 1intThe minimum number of incidents in a ticket before it will be auto-distributed. This property is not considered whenever you manually trigger the distribution: triggering the distribution manually results in the reporting of all yet unreported tickets.
pop3.hostoptional, upon auth=popbeforesmtpstringThe POP3 hostname or IP.
smtp.hostmandatorystringThe MTA hostname or IP.
smtp.portoptional, defaults to 25intThe MTAs transport service port.
authoptional, defaults to nonenone,smtp,popbeforesmtpThe authentication method: when popbeforesmtp is set, pop3.host, pop3.user and pop3.pass must be set, upon smtp smtp.user and smtp.pass is expected, otherwise no authentication is performed.
smtp.useroptional, upon auth=smtpstringThe mail account user name on the MTA; should be set when the MTA requires authentication.
smtp.passoptional, upon auth=smtpstringThe password of the smtp account user.
pop3.useroptional, upon auth=smtpstringThe POP3 account user name on the MTA; should be set when the MTA requires POP-before-SMTP authentication.
pop3.passoptional, upon auth=smtpstringThe password of the POP3 account user, should be set when the MTA requires POP-before-SMTP authentication..
frommandatorystringThe mail from-address, must be a valid non-strict javax.mail.internet.InternetAddress..
tomandatorystringThe mail receipient address; must be a valid non-strict javax.mail.internet.InternetAddress.
ccoptionalstringThe mail cc receipient addresses; all must be valid non-strict javax.mail.internet.InternetAddress.
bccoptionalstringThe mail bcc receipient addresses; all must be valid non-strict javax.mail.internet.InternetAddress.
separatoroptional, defaults to ,stringA string containing all valid separators for address lists like bcc and cc

Following an example configuration for a project named myProject that binds the BugTrap-SMTP plugin. The following behaviour is requested: the plugin shall listen for events from the ticket queue and start to auto distribute the incident reports whenever at least 5 yet unreported reportable tickets are present within the queue. An unreported ticket with at least 2 incidents is considered to be reportable. Reportable incidents are to be send to incident.receiver@host.com, using the MTA at mta.host.com, mails are to be HTML-formatted. (See also: Example.java)

bugtrap.projectname=myProject
bugtrap.projectversion=0.01
bugtrap.worker=mail,anotherworker
bugtrap.maxincidents=2
        
mail.factory=org.tastybug.bugwerk.bugtrap.worker.smtp.SMTPWorkerFactory
mail.format=org.tastybug.bugwerk.bugtrap.worker.smtp.html.HTMLMailBuilder
mail.autoconnect=true
mail.buffersize=5
mail.minincidents=2
mail.smtp.auth=smtp
mail.smtp.user=mta.user.name
mail.smtp.pass=password
mail.smtp.host=mta.host.com
mail.from=incident.sender@host.com
mail.to=incident.receiver@host.com
mail.cc=address1@host.com,address2@host.com
mail.bcc=address3@host.com,address4@host.com
    
anotherworker.factory=...
...