Comments (2)
This is unfortunately not possible. Gmail doesn't allow the order to be specified and by default it seems that new filters get at the bottom. Gmailctl provides quick editing by deleting and re-creating only the filters that you change since the last edit. This naturally shifts the order around. The only way to force an ordering would be to delete all the filters and re-upload all of them, but that's going to be quite slow.
I wouldn't be keen in adding this functionality, since the end result would be a considerably slowed down edit workflow.
from gmailctl.
Thanks for the explanation. It's unfortunate Gmail doesn't respect the order in which filters are uploaded, when they are all uploaded at the same time. I deleted all of my filters in Gmail. Then, I re-uploaded them all again. They appeared in the Gmail UI in random order. So, as you've said, it appears there is no easy way to control the order of filters in Gmail.
I found a workaround. I deleted all my filters in Gmail. Then, I edited my config file to comment out all but the first filter rule. Then, I applied the config file to Gmail. Then, I edited the config file again, this time un-commenting the second filter rule. Then, I applied the config file again. I followed this sequence, until I had all my filters uploaded to Gmail. The end result was all of the filters in my desired order within the Gmail UI.
I realize this workaround is not great. For one, it's tedious. Second, when I edit any of my filter rules in the config file in the future, then the newly edited filter will appear at the bottom of the filter list in Gmail.
I'll mark this issue as closed. I feel you've done all you can do to address this issue in a feasible way. Again, it's just too bad Gmail doesn't respect the upload order of filters.
Thanks, again, for this great tool.
from gmailctl.
Related Issues (20)
- gmailctl should not try to create "INBOX" label HOT 6
- Tests fail with realistic inputs HOT 2
- Cant figure it out HOT 1
- Option for `gmailctl download` to "download" a local XML file HOT 2
- Add option to apply all parent labels if `gmailctl` is managing labels HOT 4
- `gmailctl` should interpret `Some/Label/Name` as a nested label HOT 3
- Consider editing repository setings to remove "Packages" section HOT 1
- Progress indicators HOT 4
- Token has been expired or revoked HOT 6
- Following flow for sorting mails possible? HOT 3
- Potential GMail bug causes exporting to XML not working with category action rules, workaround needed HOT 2
- Support diffing with colordiff/delta/etc HOT 4
- Why does gmailctl split this kind of "or" filter into separate rules? HOT 19
- Support `deliveredto` rule HOT 3
- Could libsonnet helper files be situated next to the tmp file for `gmailctl edit` to avoid import path errors? HOT 4
- Is it possible to programatically edit filters with gmailctl? HOT 2
- Expose a public API HOT 2
- automatic quoting of addresses with plus sign should not quote addresses that are already quoted HOT 2
- Dependency Dashboard
- Requires Go v1.19 but README says v1.17
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 gmailctl.