In documentation it's written that if I use mailer.send_to_queue(message) I need to:
"You’ll need to arrange for qp to be a long-running process that monitors the maildir state.:
$ bin/qp /path/to/mail/queue"
But when I start qp, it runs repoze.sendmail.queue.run_console(), which looks at maildir, sends messages and return. I don't understand how it monitors the state if it returns in case of empty maildir (it starts and return).
Yes, it appears as if the documentation is a little deceiving on the behavior of the qp script. It is meant to be run as a cron job or something similar. It does not itself do any monitoring.
A pull request to clear this up would be grateful.
Fixed in #28