Re: splitting Gmail account just copy not move :-(

2019-07-30 Thread Eric Abrahamsen
physiculus  writes:

> Eric Abrahamsen  writes:
>
>> (defun gnus-user-format-function-g (header)
>>   (let ((g-labels (cdr-safe
>> (assoc 'X-GM-LABELS
>>(mail-header-extra header)
>> (when g-labels
>>   ...do something with labels)))
>>
>> Then use the "%ug" format code in your summary line format. I have no
>> idea what the Gmail labels actually look like, so I can't help you with
>> how to output them, but that should be the easy part.
>>
>> I don't believe there's any way to actually manipulate the labels from
>> within Gnus, though -- I suppose they're different from regular IMAP
>> flags/keywords?
>>
>> Eric
> hello,
> i just viewed the imap.log from gmail.
> as far as i see, at the end there is an entry X-GM-LABELS.
> Does anybody know, what to do with it further?

That just means that Gnus has requested the labels header, not
necessarily that the message has one.

Here's the most certain way I can think of to see if this is working:

1. Using Gmail's web interface, pick a message and add a label to it.
2. Go back to Gnus, refresh new news, and open the group so that there's
   only that one message in the Summary buffer (with M-1 RET or
   something).
3. Do M-: (mail-header-extra (car gnus-newsgroup-headers))
4. Check if there's a X-GM-LABELS entry in the resulting assoc list.

And let us know what it looks like!



___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english


Widgets -> Buttons

2019-07-30 Thread Lars Ingebrigtsen
Just a heads up: I've converted the Article buffer in Gnus from using
widgets.el widgets to use button.el buttons.  There should be no
user-visible changes, but it's a pretty fundamental change.  If you have
code that relies on the Article buffer to widgetisised (that's a word)
there may be compatibility problems, and we should try to mitigate those
(if they exist).

The reason for this change is that the widget code is rather opinionated
about how things should work, and some extensions to button behaviour I
wanted to add would be very awkward.  In the button.el paradigm, though,
things are much freer, and I think it should be easy to do these things
now.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



___
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english