Closed github0013 closed 6 years ago
found better way rather than creating dummy folders around. https://support.google.com/mail/answer/7190?hl=en
#find
is still slow, but I think this is a better approach.
I don't think Base
is the right class to implement the find
method. It seems Mailbox
has a very similar method, can you consider that approach.
@johnnyshields
Mailbox
seems to be the right place, but I think it's tied to a Gmail's label as a mailbox.
It's in Base#find
because it uses rfc822msgid
over all labels.
https://github.com/github0013/gmail-1/commit/d4d201eb60c36341433ec56c8b092eb347df95bf#diff-0fe1a6da51e462184e7052479dfb126aR195
mailbox('[Gmail]/All Mail')
can be deadly slow when you have full of emails. This will fix that by