Leonidas Tsampros writes: > Hello, > > long time no see :) > > TLDR: My Gmail inbox is full even after splitting mail. Here is why. > That was easier than I thought. Please take a look at the patch attached and send me your comments. The changes can be described as such: 1. Add nnimap server user defined variable that defines whether the server supports x-gm-ext-1 extension. Ideally this should come from CAPABILITY string, but I wanted an explicit user knob for that. 2. Add nnimap-rfc822-date-to-imap4date that takes an rfc822 date value and returns an imap4 datetime string (took the format from rfc3501). 3. Improve nnmail-split-incoming-mail so that if nnimap-x-gm-ext-1 is defined for the current server, remove that fraking \\Inbox label from the to be splitted mail. (Should this behaviour be configurable?) 4. Improve nnimap-request-accept-article so that it sets the INTERNALDATE of the APPENDed message to the value of the message's date header. (that's what I needed 2.)