GothenburgBitFactory / bugwarrior

Pull github, bitbucket, and trac issues into taskwarrior
http://pypi.python.org/pypi/bugwarrior
GNU General Public License v3.0
732 stars 209 forks source link

possibility of setting a date in the configuration file #1038

Closed cdev92 closed 3 months ago

cdev92 commented 3 months ago

I'd like to be able to set a date in the configuration file, so that I can only view my mail for the last 3 days.

Sample:

[test.com] service = gmail gmail.query = label:in-vip AND is:unread AND after:2024-03-10 gmail.thread_limit = 10 gmail.login_name = testt@test.com

I'd like the date to be dynamic,( I can go through an intermediate file and use the awk command with a crontab, but ideally I'd like to be able to use variables natively, if the used service doesn't allow variables).

ryneeverett commented 3 months ago

Looking at the search api, wouldn't newer_than:4d be equivalent?

cdev92 commented 3 months ago

thank you, it works perfectly