The service rohberg.mailin listens to incoming mails of defined mail accounts and sends a request to a Plone website. This creates content in Plone.
- Create instant content from mobile and work on later on desktop
- Display newsletters. Do it searchable.
- Mail reports, bills, snapshots, etc. as attachments to Plone.
Download code to arbitrary location and install with
yarn install
configure with config.env
and start with
yarn mailin
Configuration is made in config.env. See an example configuration at config.env.example
IMAP_USER = [email protected]
IMAP_PASS = abc
IMAP_HOST = imap.gmail.com
IMAP_PORT = 993
WEBHOOK_TARGET = 'http://code.example.com'
PLONE_LOGIN = 'admin'
PLONE_PASSWORD = 'secret'
PLONE_CONTENTTYPE = 'mycontenttype'
ALLOWED_SENDERS = '[email protected],[email protected]'
- plone.restapi is installed.
- User PLONE_LOGIN has write access to WEBHOOK_TARGET for PLONE_CONTENTTYPE.
mail-notifier https://www.npmjs.com/package/mail-notifier
In fact there is no dependency on Plone. config.env defines the target. This target can be anything.
Categorize your content with tags by appending them to the mail subject.
Example subject of Mail: "my note #Python #Plone"
Thank you Harjyot Singh for inspiration: https://www.twilio.com/blog/2017/06/how-to-forward-emails-sms-node-js.html
Thank you jcreigno for mail-notifier: https://www.npmjs.com/package/mail-notifier
Add your test email to ALLOWED_SENDERS and send an email from this account to IMAP_USER. This creates a first content item in Plone at WEBHOOK_TARGET.