On Tue, Jan 31, 2012 at 10:54:43AM -0600, David Champion wrote:
> Todd, thanks for looking into this.  Would you be willing to look at the
> keywords patch located here: https://bitbucket.org/dgc/mutt-dgc/qseries
> and adapt your fix to that patch queue?  I'd love for this new approach
> to keyword handling to fully support Google's labels as well.

I read the keywords patch description and it definitely sounds useful. One
reminder is that gmail labels are not in the headers and can only be accessed
using the imap fetch command.  Users of offlineimap or some other mechanism to
retrieve the messages and put them in mboxes or a maildir structure will not be
able to extract them from headers, in general. Of course, a patched version of
offlineimap or an imap proxy (see https://github.com/zmughal/gmail-imap-label)
that assigns the labels to a header could be used also.

> 
> If you can't do this I'll see about integrating it when I have a chance.
> But if you can do it I can just add your patch to my series.

My implementation just takes the labels and puts them in the X-LABEL header, so
it _may_ play nicely the existing keywords patch just by setting
$xlabel_delimiter. I'll compile in the keywords patch along with mine and give
it a try.

One obvious problem with my patch is header caching. Mutt has no way of knowing
if the labels have changed so it can't automatically refresh the cache if they
do change. I haven't made any real efforts to fix this. For now I'm just not
using header caching and close/reopen the mailbox to force a refresh.

cheers!

Reply via email to