From 0e09c05937913a938bc4987db2b6d193ed0501bd Mon Sep 17 00:00:00 2001 From: Koni Marti Date: Sun, 16 Jul 2023 17:04:14 +0200 Subject: imap: support the Gmail extension (X-GM-EXT-1) Support the IMAP Gmail extension (X-GM-EXT-1) to fetch all messages for a given thread. This allows client-side threading to display a full message thread. Obviously, it requires a Gmail account to work. The extension is only used when requested in accounts.conf with: "use-gmail-ext = true" (default: false) Signed-off-by: Koni Marti Acked-by: Robin Jarry Tested-by: Tristan Partin --- worker/middleware/foldermapper.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'worker/middleware/foldermapper.go') diff --git a/worker/middleware/foldermapper.go b/worker/middleware/foldermapper.go index ee57b9c8..ba098191 100644 --- a/worker/middleware/foldermapper.go +++ b/worker/middleware/foldermapper.go @@ -26,6 +26,10 @@ func NewFolderMapper(base types.WorkerInteractor, mapping map[string]string, } } +func (f *folderMapper) Unwrap() types.WorkerInteractor { + return f.WorkerInteractor +} + func (f *folderMapper) incoming(msg types.WorkerMessage, dir string) string { f.Lock() defer f.Unlock() -- cgit