Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Simple command line utility which will import document attachments from SMTP account into a Papermerge Project instance via REST API
It connects to IMAP account (your email account) via provided username/password/imap_server and iterates through all unread email messages.
For every unread message, if it finds a file attachment - it (mg-mail) uploads it via REST API to the papermerge service.
pip install mgmail
Create a configuration file e.g. mgmail.config.py Run::
mgmail_imp --config /path/to/config.py
Configuration file must have .py extention and be a valid python file, example::
imap_server = "mail.paper.net"
username = "<username>"
password = "<pass>"
api_key = "<API KEY>"
papermerge_url = "<URL>" # e.g. http://localhost:8000
imap_server
is, well, your imap server.username
and password
- your imap user accountapi_key
is papermerge's API key. Get your api_key as explained herepapermerge_url
- paparmerge server instance url (with scheme i.e with http:// or https:// prefix). E.g. http://localhost:8000Logging configuration are read from mgmail.logging.yml file. Example of mgmail.logging.yml file::
version: 1
handlers:
xyzconsole:
class : logging.StreamHandler
root:
level: DEBUG
handlers: [xyzconsole]
Example above configures root log to DEBUG level. All log messages will be displayed in console.
FAQs
Import document attachments from SMTP account
We found that mgmail demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.