Re: splitting Gmail account just copy not move :-(
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
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
Re: splitting Gmail account just copy not move :-(
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? Regards Poul 08:10:15 [imap.gmail.com] (inhibited) 08:10:15 [imap.gmail.com] 672 CAPABILITY 08:10:15 [imap.gmail.com] 673 LIST "" "*" 08:10:20 [imap.gmail.com] 686 LIST "" "*" 08:10:20 [imap.gmail.com] 687 SELECT "INBOX" 08:10:20 [imap.gmail.com] 688 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 689 EXAMINE "notmuch" 08:10:20 [imap.gmail.com] 690 UID FETCH 330:* FLAGS 08:10:20 [imap.gmail.com] 691 EXAMINE "mu" 08:10:20 [imap.gmail.com] 692 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 693 EXAMINE "gnus" 08:10:20 [imap.gmail.com] 694 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 695 EXAMINE "emms" 08:10:20 [imap.gmail.com] 696 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 697 EXAMINE "[Gmail]/Wichtig" 08:10:20 [imap.gmail.com] 698 UID FETCH 4403:* FLAGS 08:10:20 [imap.gmail.com] 699 EXAMINE "[Gmail]/Teich" 08:10:20 [imap.gmail.com] 700 UID FETCH 10:* FLAGS 08:10:20 [imap.gmail.com] 701 EXAMINE "[Gmail]/Spam" 08:10:20 [imap.gmail.com] 702 UID FETCH 94:* FLAGS 08:10:20 [imap.gmail.com] 703 EXAMINE "[Gmail]/Papierkorb" 08:10:20 [imap.gmail.com] 704 UID FETCH 4024:* FLAGS 08:10:20 [imap.gmail.com] 705 EXAMINE "[Gmail]/Markiert" 08:10:20 [imap.gmail.com] 706 UID FETCH 72:* FLAGS 08:10:20 [imap.gmail.com] 707 EXAMINE "[Gmail]/Gesendet" 08:10:20 [imap.gmail.com] 708 UID FETCH 1854:* FLAGS 08:10:20 [imap.gmail.com] 709 EXAMINE "[Gmail]/Entw" 08:10:20 [imap.gmail.com] 710 UID FETCH 238:* FLAGS 08:10:20 [imap.gmail.com] 711 EXAMINE "[Gmail]/Drafts" 08:10:20 [imap.gmail.com] 712 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 713 EXAMINE "[Gmail]/Alle Nachrichten" 08:10:20 [imap.gmail.com] 714 UID FETCH 15963:* FLAGS 08:10:20 [imap.gmail.com] 715 SELECT "[Gmail]" 08:10:20 [imap.gmail.com] 716 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 717 EXAMINE "[GMail]/Trash" 08:10:20 [imap.gmail.com] 718 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 719 EXAMINE "[GMail]/Papierkorb" 08:10:20 [imap.gmail.com] 720 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 721 SELECT "[GMail]" 08:10:20 [imap.gmail.com] 722 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 723 EXAMINE "Trash" 08:10:20 [imap.gmail.com] 724 UID FETCH 24923:* FLAGS 08:10:20 [imap.gmail.com] 725 EXAMINE "Sent" 08:10:20 [imap.gmail.com] 726 UID FETCH 37:* FLAGS 08:10:20 [imap.gmail.com] 727 EXAMINE "SMS" 08:10:20 [imap.gmail.com] 728 UID FETCH 5680:* FLAGS 08:10:20 [imap.gmail.com] 729 EXAMINE "Queue" 08:10:20 [imap.gmail.com] 730 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 731 EXAMINE "Postausgang" 08:10:20 [imap.gmail.com] 732 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 733 EXAMINE "OrgDigest" 08:10:20 [imap.gmail.com] 734 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 735 EXAMINE "Linzessin" 08:10:20 [imap.gmail.com] 736 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 737 EXAMINE "INBOX" 08:10:20 [imap.gmail.com] 738 UID FETCH 8387:* FLAGS 08:10:20 [imap.gmail.com] 739 EXAMINE "Garten" 08:10:20 [imap.gmail.com] 740 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 741 EXAMINE "Emacs" 08:10:20 [imap.gmail.com] 742 UID FETCH 1:* FLAGS 08:10:20 [imap.gmail.com] 743 EXAMINE "Drafts" 08:10:20 [imap.gmail.com] 744 UID FETCH 90:* FLAGS 08:10:20 [imap.gmail.com] 745 EXAMINE "Archiv" 08:10:20 [imap.gmail.com] 746 UID FETCH 54:* FLAGS 08:10:51 [imap.gmail.com] 799 LIST "" "*" 08:10:56 [imap.gmail.com] 800 EXAMINE "Archiv" 08:10:56 [imap.gmail.com] 801 EXAMINE "Drafts" 08:10:56 [imap.gmail.com] 802 EXAMINE "Emacs" 08:10:56 [imap.gmail.com] 803 EXAMINE "Garten" 08:10:56 [imap.gmail.com] 804 EXAMINE "INBOX" 08:10:56 [imap.gmail.com] 805 EXAMINE "Linzessin" 08:10:56 [imap.gmail.com] 806 EXAMINE "OrgDigest" 08:10:56 [imap.gmail.com] 807 EXAMINE "Postausgang" 08:10:56 [imap.gmail.com] 808 EXAMINE "Queue" 08:10:56 [imap.gmail.com] 809 EXAMINE "SMS" 08:10:56 [imap.gmail.com] 810 EXAMINE "Sent" 08:10:56 [imap.gmail.com] 811 EXAMINE "Trash" 08:10:56 [imap.gmail.com] 812 EXAMINE "[Gmail]/Alle Nachrichten" 08:10:56 [imap.gmail.com] 813 EXAMINE "[Gmail]/Drafts" 08:10:56 [imap.gmail.com] 814 EXAMINE "[Gmail]/Entw" 08:10:56 [imap.gmail.com] 815 EXAMINE "[Gmail]/Gesendet" 08:10:56 [imap.gmail.com] 816 EXAMINE "[Gmail]/Markiert" 08:10:56 [imap.gmail.com] 817 EXAMINE "[Gmail]/Papierkorb" 08:10:56 [imap.gmail.com] 818 EXAMINE
Re: splitting Gmail account just copy not move :-(
Eric Abrahamsen writes: > Most of the code there should no longer be necessary -- you don't need > to fetch the labels separately if X-GMAIL-LABELS is already in > `(gnus|nnmail)-extra-headers'. It might be enough to do: > > (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 Good morning, unfortunately i dont see the header information X-GMAIL-LABEL (i view raw inside gnus and with claws mail). So they are possible generated by the mail server and gnus should contact him). This is only my simple idea...(not a developer). btw: if i wont do anything with the label, could i delete your codeblock (when g-labels...) ? Regards Poul ___ info-gnus-english mailing list info-gnus-english@gnu.org https://lists.gnu.org/mailman/listinfo/info-gnus-english