Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maildir module #7

Open
irl opened this issue Jul 25, 2019 · 3 comments
Open

Maildir module #7

irl opened this issue Jul 25, 2019 · 3 comments

Comments

@irl
Copy link

irl commented Jul 25, 2019

I'd like to request a new module that provides monitoring of a Maildir (or mbox if it's significantly easier, but Maildir is preferred) and notifies in a specified channel when new mails arrive. Using a format string it should be possible to define the notices that will appear, and they would contain things like the sender, received time and subject line. For bonus points, many-to-many mappings of Maildir folders to channels. This could either use some inotify magic or polling, but I'd like to deploy it on OpenBSD so it needs to work there and I'm not sure if inotify does.

Feel free to close if this is just too much work/not really suitable for this project.

@jesopo
Copy link
Member

jesopo commented Jul 25, 2019

brilliant idea. cheers!

@jesopo
Copy link
Member

jesopo commented Jul 26, 2019

supported in stdlib: https://docs.python.org/3/library/mailbox.html#maildir

@jesopo
Copy link
Member

jesopo commented Aug 12, 2019

would be nice to get an example Maildir that I can test against - turns out my own stuff is kinda a screwed up twilight between Maildir and mbox :P

@jesopo jesopo transferred this issue from bitbot-irc/bitbot Sep 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants