Comments (4)
Defining the class in a Python file like below doesn't work either.
@register_filter
class AllFilter(Filter):
message = 'Running on all messages (allegedly)'
tags_blacklist = "new"
from afew.
Hey @xaltsc ,
welcome to the project.
the aim of using it not on new messages, but only on old messages
This can be done, by using a notmuch query (https://www.mankier.com/7/notmuch-search-terms#Date_and_Time_Search),
like:
# Select only the last year mails
$ afew --tag date:2Y..1Y
Defining the class in a Python file like below doesn't work either.
I suppose that's because it should be defined in the config file.
Please copy you config, that we can check it, try to call you filter without -R or -T but only notmuch query,
also please copy a verbose output (relevant part) of the afew call.
from afew.
Old bug, but probably same root cause as I just encountered: selecting filters with -e
does not seem to take the options from config into account. This is unfortunate if you want to run a newly configured filter on old e-mails.
from afew.
And sure enough this is ussue #40 which I even commented on back then ... Oh well. I guess I don't need -e
often, but when I do, I fall into the config trap.
from afew.
Related Issues (20)
- make afew idempotent HOT 1
- Moving mails tagged as deleted HOT 9
- Filter mails from addresses in a list contained in a file? HOT 3
- Handling multiple matches in HeaderMatchingFilter HOT 3
- Maintaining a folder/tag parity HOT 3
- MailMover configuration accepts a regex folder, but fails silently HOT 4
- FolderTagSync, a simplified mechanism maintaining 1-1 coorespondence between maildir folders and tags. HOT 8
- kill filter could be optimized HOT 5
- Error run afew -tn HOT 1
- M$ Office365 spam filter HOT 1
- Multi-account MailMover HOT 3
- `python setup.py build_sphinx` is removed in the Sphinx 7 HOT 1
- Feature request: Remove all tags matching regex "list/.*" only when the tag "spam" is present
- Tagging by plus addressing
- error: unrecognized arguments: --learn HOT 1
- How about tagging a new release HOT 11
- Fix for installing on MacOS HOT 1
- CI pipeline only tests Python version 3.8 HOT 5
- Issue on python-3.12 with configparser removed from python HOT 4
- ListMailsFilter uses only the list-label HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from afew.