The opendev project is no longer running its mqtt service which means
the launchpad integration is no longer used or needed. To simplify
things for us we are taking the extra step of retiring this repo.
Change-Id: Idf73a17826b6974a345641066c682fc98088e30e
This commit adds a new config option to lpmqtt to set the QOS level
for messages published to MQTT. The QOS used in MQTT is the min value
between what the client and publisher use. By default lpmqtt will use
a QOS level of 0, but if operating in an environment where more
guarantees are needed on delivery you can set this to be higher.
Change-Id: If2ce821565551fdf686e253d06356080702c05a1
This commit adds a new config option to the imap section, idle-timeout,
which is used to set the timeout duration for the idle call. By default
imaplib2 sets this to 29mins. This if far too long especially on an imap
server that doesn't have imap idle configured properly. What ends up
happening is that all the lp events get bunched together and pushed to
mqtt at once every 29mins. This isn't really useful as an event stream.
So this makes it configurable and decreases the default setting to 1 min
which seems like a much more useful default value, albeit at the cost of
more imap traffic to fetch messages.
Change-Id: I98fc9778f0adc548d28e7bbd8600f05ff4946ba2
This commit fixes some issues that would come up if the email had
a subject encoded in a different charset like utf8. Now lpmqtt will
attempt to decode the subject and failing that exclude the bug number
from the response, instead of blowing up like it did before.