1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2026-02-17 11:28:16 +01:00
aerc/worker/imap/extensions/xgmext
Robin Jarry dfa8d1ba04 imap: integrate X-GM-EXT-1 Gmail extension directly
Move the Gmail X-GM-EXT-1 extension handling from the middleware layer
directly into the IMAP worker. This simplifies the architecture by
removing the gmailWorker middleware wrapper and its associated locking.

The XGMExtClient is now a field of the IMAP client struct, initialized
alongside other extension clients. Gmail-specific search and filter
operations are handled by dedicated methods in xgmext.go that are called
directly from the message handlers when the extension is available.

Rename xgmext types to be exported (XGMExtClient, ThreadIDSearch,
RawSearch) and simplify their methods to work with uint32 UIDs directly,
avoiding unnecessary type conversions.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Reviewed-by: Simon Martin <simon@nasilyan.com>
2026-02-09 14:46:27 +01:00
..
client.go imap: integrate X-GM-EXT-1 Gmail extension directly 2026-02-09 14:46:27 +01:00
search.go imap: integrate X-GM-EXT-1 Gmail extension directly 2026-02-09 14:46:27 +01:00
search_test.go imap: extend SEARCH with X-GM-RAW for full Gmail search syntax 2024-08-04 18:24:42 +02:00
terms.go imap: extend SEARCH with X-GM-RAW for full Gmail search syntax 2024-08-04 18:24:42 +02:00