Monboob

Monboob is a daemon application able to fetch messages from supported websites and send them by mail. It can also be used to send a reply to a message (on a module which supports this feature), by piping an email to it.

It supports the following websites:

Get Monboob

This application is part of Weboob. To install it, please read this page.

Screenshots

Usage

Daemon

You just have to run:

$ monboob run

Then it will work correctly in background.

Reply to messages

You can also use monboob to reply to received messages. You just need to pipe an email:

$ cat reply_email.txt | monboob post

The In-Reply-To header must be defined, to determine to which thread and message you answer.

You can also change the To username (before the @) to select with which backend you want to answer.

Configuration

Create a file named ~/.config/weboob/monboob and add in:

[DEFAULT]
# Interval to check new messages
interval = 300

# Domain of the *From:* email address
domain = weboob.example.com

# Recipient of emails
recipient = romain@example.com

# SMTP server to use
smtp = mail.example.org

# Instead of using a SMTP relay, you can enable this setting to pipe mails to
# an external command. It overrides the 'smtp' parameter.
# pipe = procmail

# Send emails in HTML or in plaintext
html = 0

Don’t forget to configure the modules.

Use a fake SMTP server

If you want reply to a mail with your MUA, you can run monboob with the -S parameter which run a fake smtp server:

$ monboob run -S 2525

Note: 2525 is the port to listen on

Then, add the localhost:2525 SMTP server to your MUA. When you answer to a monboob mail, you can select this.

And… that’s it!

Example with Postfix

main.cf

Open /etc/postfix/main.cf and add weboob.example.org in the relay_domain:

relay_domains = mydomain.org weboob.example.org
transport_maps= hash:/etc/postfix/transport

master.cf

Add the weboob service with this lines at end of file:

weboob     unix -        n       n       -       -       pipe
  flags=FR user=rom1
  argv=/usr/local/bin/monboob post

Correctly replace rom1 by the system user who will run script.

transport

Open /etc/postfix/transport and add this line:

weboob.example.org     weboob:

Do not forget to run this command to make the modification effective:

postmap /etc/postfix/transport

Conclusion

Restart postfix, and you’ll be able to reply to the received messages.