imapfilter
middleclass
imapfilter | middleclass | |
---|---|---|
15 | 9 | |
830 | 1,685 | |
- | - | |
4.8 | 0.0 | |
10 days ago | about 1 year ago | |
C | Lua | |
MIT License | MIT License |
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
middleclass
-
Is there a way to create namespaces/hierarchy in the documentation with LDoc?
I am trying to document my code and I am using LDoc for that and for OOP I am using the library middleclass. All of my classes are in a main framework folder and inside that I have each namespace as a folder and then classes that are specific to that namespace in those folders.
-
Lua: The Little Language That Could
The ConTeXt typesetting system tightly integrates Lua. One aspect of Lua that I dislike is its inability to easily write OOP-ish code. What's impressive about the language is that it can be extended to do so in astonishingly little code:
* https://github.com/kikito/middleclass
With OOP in place, I was able to typeset a hexagonal grid and a symbolic representation of a neural network on top, using a more OOP-like approach. The classes are straightforward.
A vertex defines a point in 2D space:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
An edge connects two vertices:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
A graph connects edges:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
A priority queue serves for ordering graph edges by weight of adjoining vertices:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
With these concepts in hand, we can typeset a grid and a "neural network" on top:
* https://github.com/DaveJarvis/keenwrite-themes/blob/main/bos...
Here's an example of the output for chapter 1:
* https://i.ibb.co/19DCDZy/ch-1.png
And chapter 14, where the "network" has grown in complexity:
* https://i.ibb.co/ncf16vg/ch-2.png
This is for my near future hard sci-fi book on AGI. I'm looking for alpha readers to give me feedback. See profile for contact details.
- Doing what you love when the money won’t follow
-
To all plugin authors: standard class realization
To reduce the amount of boilerplate code, I created the fork of middleclass repo suitable for Neovim plugin managers: it just adds a symlink to middleclass.lua file in lua/ directory. middleclass is well known and tested, so I suggest using it as a standard class realization. I also open a pull request to merge it upstream.
-
Is doing OOP in lua considered bad practice?
Not exactly what op asked, but if you want classes in Lua definitely check out https://github.com/kikito/middleclass
- Alternative to Love2d
-
OOP in Love2d
Like /u/TheMightyHUG pointed out below, there are patterns you can use to do OOP without any extra help. In the past I have used some libraries to improve the ease of doing so, specifically middleclass: https://github.com/kikito/middleclass
-
A complete implementation of the Set data structure in Lua
Same, but when I do I like when authors include everything in one file so it's easy to manage. Here we have the library, some small 10 line file with helper functions that's required and we also need to remember about the licence. Take middleclass as an example, one file, license included, ready to plug and develop.
What are some alternatives?
imapfilter-tools - Tools to improve imapfilter for use as a reliable SPAM filtering service.
awesome-lua - A curated list of quality Lua packages and resources.
pyle-of-mail - A Python script that sorts all read emails from your mailbox.
pyxel - A retro game engine for Python
protonmail-bridge-docker - ProtonMail IMAP/SMTP Bridge Docker container
classic - Tiny class module 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
TIC-80 - TIC-80 is a fantasy computer for making, playing and sharing tiny games.
piccolo - An experimental stackless Lua VM implemented in pure Rust
moonscript - :crescent_moon: A language that compiles to Lua
himalaya - CLI to manage emails
CC-Tweaked - Just another ComputerCraft fork