Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more search operators (i.e. copy lots of Gmail ones) #625

Closed
jdaviescoates opened this issue Nov 4, 2022 · 4 comments
Closed

Add more search operators (i.e. copy lots of Gmail ones) #625

jdaviescoates opened this issue Nov 4, 2022 · 4 comments
Labels
enhancement New feature or request

Comments

@jdaviescoates
Copy link

Like most people these days, I'm accustomed to be able to use all the search operators available in Gmail.

I particularly miss:

has:attachment
- 
in:anywhere 
is:unread
is:read
size:
larger:
smaller:
older_than:
newer_than: 
OR

But I imagine others miss other Gmail search operators too, so the more of them you're able to implement, the better!

Roundcube already has these search operators:

from:
to:
cc:
bcc:
subject:
body:

And they are implementing a bunch of the above in the forthcoming version 1.7.

That's great for Roundcube users! But now I use SnappyMail, so now I'm asking for all the same search operators here too.

@the-djmaze
Copy link
Owner

the-djmaze commented Nov 4, 2022

SnappyMail almost has them all

However, currently they are used differently.

For example:
keyword=$label1&attachment&larger=1024&unseen

  • keyword is tag/label $label1 as used in Thunderbird for "Important"
  • attachment = has attachment(s)
  • larger then 1024 bytes
  • unseen is IMAP equivalent of "unread"

Why different? Well you can now easily modify the browser address bar url with the values.
The url is like /#/mailbox/INBOX/keyword=$label1&attachment&larger=1024&unseen

See all at
https://github.com/the-djmaze/snappymail/blob/master/snappymail/v/0.0.0/app/libraries/MailSo/Imap/SearchCriterias.php

You can just edit that file to get more options working.

@the-djmaze
Copy link
Owner

the-djmaze commented Nov 4, 2022

I've added a few, like older_than so you know how it works.
Now you can:

  • older_than=1d
  • older_than:1d

@the-djmaze the-djmaze added the enhancement New feature or request label Nov 4, 2022
@TheNomad11
Copy link

Great! Thanks a lot @the-djmaze I am impressed by the progress, especially the Nextcloud app. Now Snappy Mail looks really good!!

But one still can search one folder only. If you have many folders and you are as disorganized as I am and don't remember where you put it, then you are in trouble! Do you consider the option "search in all folders" or would it be too much work?

@the-djmaze
Copy link
Owner

the-djmaze commented Nov 6, 2022

Thanks.

To search all folders is an issue that popped up multiple times but SnappyMail can't by itself.

A good read can be found here: #154 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants