imapfilter
lines.love
imapfilter | lines.love | |
---|---|---|
15 | 2 | |
830 | 12 | |
- | - | |
4.8 | 8.8 | |
11 days ago | 2 months ago | |
C | Lua | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
imapfilter
-
Google will disable all but OAuth for IMAP, SMTP and POP starting Sept. 30
Shouldn't be _too_ hard to convert your scripts.
I ran into the same problem and one workspace disallows App passwords. You can simply get the OAuth token with a little python script and then use it as the password: https://github.com/google/gmail-oauth2-tools/blob/master/pyt...
(see for example https://github.com/lefcha/imapfilter/issues/186)
-
Lua: The Little Language That Could
My first real exposure to Lua was as the configuration language of imapfilter. Absolutely loved both.
https://github.com/lefcha/imapfilter
-
Automaticallly Printing (from email?)
Use [imapfilter](https://github.com/lefcha/imapfilter) to store the attachment in a local folder and delete/archive the mail. Then use something like [inotify](https://en.wikipedia.org/wiki/Inotify#:~:text=inotify%20(inode%20notify)%20is%20a,reports%20those%20changes%20to%20applications.)%20is%20a,reports%20those%20changes%20to%20applications.)) to run a script that sends the new pdf to the printer
-
Scriptable headless IMAP client?
Imapfilter runs lua scripts. Since it's basically just a lua interpreter with a pre-imported library, you can pretty much do any processing you might like, but... IMHO it doesn't seem great: the documentation is so-so, the API is a bit clunky and lacks basic functionality (eg. you have to decode utf8 mime headers yourself) and (personal opinion) writing an imapfilter script is not easier than using an IMAP library in whatever your favorite programming/scripting language might be.
-
How to run a script to cleanup emails ?
You could look at something like imapfilter. It's designed to do what you want, I think, though I've never used it.
-
Looking for help or alternative solutions to my current email workflow with ProtonMail
I know this one is an issue, and for that you will want to use an email client with the bridge. I have used a protonmail docker container shenxn/protonmail-bridge-docker with imapfilter to provide client side filtering.
-
I have too much email - over 50 GB on Outlook and Gmail
If you can see yourself writing some scripts to clean it up, I can recommend imapfilter as a starting point. I learned enough Lua to be able to use this effectively. The "config" file is actually just a Lua script.
-
Command line email filters
I believe that Google still offers IMAP access (I think you need to set up app passwords, or possibly jump through some OAUTH hoops), letting you use something like imapfilter to set up rules, connecting to Gmail, then doing the filtering.
-
Spam filter that connects to mail server
imapfilter with a Lua script to send messages to Spamassassin.
-
Syncing E-Mail filters
Another tool actually meant for this is imapfilter: https://github.com/lefcha/imapfilter
lines.love
-
Ask HN: What's the stack for your "home-cooked meal" apps?
I tend to prefer editors to IDEs. Lua is a simple enough language and my codebases have been small enough that my usual Vim sufficed at the start for apps like http://akkartik.name/lines.html back in May 2022. Over time I figured out how to do live editing, and lately I build my apps 95% in https://git.sr.ht/~akkartik/driver.love. I find it to be quite a nice experience, particularly with 2 monitors. I open the app I'm working on in one monitor while running driver.love full screen in the other to make changes to it.
Carousel has a whole new use case: building simple scripts right on my phone or tablet. Nothing else can do that as simply, I think. It's cross-platform but that's an experimental property I'm hoping to carry forward to other apps. The use case here is purely for mobile devices.
-
Lua: The Little Language That Could
Great question! It's not ideal, but has been outweighed so far by the other benefits I mentioned. I do track the issues I run into due to lack of static types[1] in the Manual_tests files in each of my projects, e.g. https://github.com/akkartik/lines.love/blob/e568378ecb/Manua...
[1] I wouldn't say Lua/Python/Javascript has no types. They just lack types for variables rather than values. Forth, on the other hand, has no types period.
What are some alternatives?
imapfilter-tools - Tools to improve imapfilter for use as a reliable SPAM filtering service.
flirt - Automatic version selector for LÖVE
pyle-of-mail - A Python script that sorts all read emails from your mailbox.
Prosody IM - IMPORTANT: due to a drive failure, as of 13-Mar-2021, the Mercurial repository had to be re-mirrored, which changed every commit SHA. The old SHAs and trees are backed up in the vault branches. Please migrate to the new branches as soon as you can.
protonmail-bridge-docker - ProtonMail IMAP/SMTP Bridge Docker container
middleclass - Object-orientation for Lua
guix - Read-only mirror of GNU Guix — pull requests are ignored, see https://guix.gnu.org/en/manual/en/guix.html#Submitting-Patches instead
piccolo - An experimental stackless Lua VM implemented in pure Rust
himalaya - CLI to manage emails
luau - A fast, small, safe, gradually typed embeddable scripting language derived from Lua