Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* splitting Gmail account just copy not move :-(
@ 2019-07-28 17:52 physiculus
  2019-07-29  9:19 ` Lars-Johan Liman
  0 siblings, 1 reply; 18+ messages in thread
From: physiculus @ 2019-07-28 17:52 UTC (permalink / raw)
  To: gnus

Hello,
with the help of Mr. Abrahamsen i manage to split my mail and clear a
bug.
But now i'm surprised, that splitting my Gmail account works not fully
correct.
Splitting is done correct, but the original mail is not deleted, just copied.
For my other accounts its working fine.

Any clues?

Regards
Poul

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-28 17:52 splitting Gmail account just copy not move :-( physiculus
@ 2019-07-29  9:19 ` Lars-Johan Liman
  2019-07-29 15:51   ` Eric Abrahamsen
  2019-07-29 16:41   ` physiculus
  0 siblings, 2 replies; 18+ messages in thread
From: Lars-Johan Liman @ 2019-07-29  9:19 UTC (permalink / raw)
  To: physiculus; +Cc: gnus

physiculus@gmail.com:
> Hello,
> with the help of Mr. Abrahamsen i manage to split my mail and clear a
> bug.
> But now i'm surprised, that splitting my Gmail account works not fully
> correct.
> Splitting is done correct, but the original mail is not deleted, just copied.
> For my other accounts its working fine.

> Any clues?

I believe this is a "Known Problem(TM)" (at least I have the same),
which pertains to Gmail's (incorrect?) interpretation of IMAP commands,
not to GNUS per se. I haven't found a set of IMAP command flags that
will properly delete the mail from Gmail for you, but I didn't have time
to drill to the bitter end of the bottomless dark pit of Googles
intestines ... :-( If you (or anyone else!) find/knows of a way, I'd be
more than thankful if you would share it with the rest of us.

				Cheers,
				  /Liman
-- 
#-------------------------------------------------------------------------
# Lars-Johan Liman, M.Sc.		 ! 
# Cafax AB				 ! HTTP  : //www.cafax.se/
# Computer Consultants, Sweden		 ! Voice : +46 8 - 564 702 30
#-------------------------------------------------------------------------

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29  9:19 ` Lars-Johan Liman
@ 2019-07-29 15:51   ` Eric Abrahamsen
  2019-07-29 16:38     ` physiculus
  2019-07-29 16:41   ` physiculus
  1 sibling, 1 reply; 18+ messages in thread
From: Eric Abrahamsen @ 2019-07-29 15:51 UTC (permalink / raw)
  To: info-gnus-english

Lars-Johan Liman <info-gnus-english@cafax.se> writes:

> physiculus@gmail.com:
>> Hello,
>> with the help of Mr. Abrahamsen i manage to split my mail and clear a
>> bug.
>> But now i'm surprised, that splitting my Gmail account works not fully
>> correct.
>> Splitting is done correct, but the original mail is not deleted, just copied.
>> For my other accounts its working fine.
>
>> Any clues?
>
> I believe this is a "Known Problem(TM)" (at least I have the same),
> which pertains to Gmail's (incorrect?) interpretation of IMAP commands,
> not to GNUS per se. I haven't found a set of IMAP command flags that
> will properly delete the mail from Gmail for you, but I didn't have time
> to drill to the bitter end of the bottomless dark pit of Googles
> intestines ... :-( If you (or anyone else!) find/knows of a way, I'd be
> more than thankful if you would share it with the rest of us.

I doubt I'm going to be of any help here, but...

Does the same thing happen when moving messages manually? Ie, they still
stay in the original group? Splitting and moving manually ought to use
the same process.

Does anyone know if Gmail's IMAP implementation supports MOVE? Or is it
COPY and delete/expunge?

Eric


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29 15:51   ` Eric Abrahamsen
@ 2019-07-29 16:38     ` physiculus
  2019-07-29 17:06       ` Eric Abrahamsen
  0 siblings, 1 reply; 18+ messages in thread
From: physiculus @ 2019-07-29 16:38 UTC (permalink / raw)
  To: info-gnus-english

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

>
> I doubt I'm going to be of any help here, but...
>
> Does the same thing happen when moving messages manually? Ie, they still
> stay in the original group? Splitting and moving manually ought to use
> the same process.
>
> Does anyone know if Gmail's IMAP implementation supports MOVE? Or is it
> COPY and delete/expunge?
>
> Eric
Yes it is the same in both ways.
Unfortunately...

Regards
Poul

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29  9:19 ` Lars-Johan Liman
  2019-07-29 15:51   ` Eric Abrahamsen
@ 2019-07-29 16:41   ` physiculus
  2019-07-29 17:18     ` Eric Abrahamsen
  1 sibling, 1 reply; 18+ messages in thread
From: physiculus @ 2019-07-29 16:41 UTC (permalink / raw)
  To: gnus

Lars-Johan Liman <info-gnus-english@cafax.se> writes:

> I believe this is a "Known Problem(TM)" (at least I have the same),
> which pertains to Gmail's (incorrect?) interpretation of IMAP commands,
> not to GNUS per se. I haven't found a set of IMAP command flags that
> will properly delete the mail from Gmail for you, but I didn't have time
> to drill to the bitter end of the bottomless dark pit of Googles
> intestines ... :-( If you (or anyone else!) find/knows of a way, I'd be
> more than thankful if you would share it with the rest of us.
>
> 				Cheers,
> 				  /Liman
Hello, yes Google wants to use their own apps or Chrome. Within it
works.
But i found a solution on this list, unfortunately it doesn't work for
me (It produces an error message in gnus.el). Maybe someone could make the code work, i'm not a developer.

Here is the link:
https://lists.gnu.org/archive/html/info-gnus-english/2013-10/
msg00022.html

Regards
Poul

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29 16:38     ` physiculus
@ 2019-07-29 17:06       ` Eric Abrahamsen
  2019-07-29 17:13         ` physiculus
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Abrahamsen @ 2019-07-29 17:06 UTC (permalink / raw)
  To: info-gnus-english

physiculus <physiculus@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>>
>> I doubt I'm going to be of any help here, but...
>>
>> Does the same thing happen when moving messages manually? Ie, they still
>> stay in the original group? Splitting and moving manually ought to use
>> the same process.
>>
>> Does anyone know if Gmail's IMAP implementation supports MOVE? Or is it
>> COPY and delete/expunge?
>>
>> Eric
> Yes it is the same in both ways.
> Unfortunately...

Well, it would be weirder if it wasn't!

Is this happening just for the "All Mail" Gmail fake group? If you're
splitting out of "All Mail", the message won't ever actually be deleted
from there. I've seen some people say the "solution" is just to
unsubscribe from All Mail...

Does it happen when splitting from/moving out of other groups?


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29 17:06       ` Eric Abrahamsen
@ 2019-07-29 17:13         ` physiculus
  2019-07-29 17:28           ` Eric Abrahamsen
  0 siblings, 1 reply; 18+ messages in thread
From: physiculus @ 2019-07-29 17:13 UTC (permalink / raw)
  To: info-gnus-english

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Well, it would be weirder if it wasn't!
>
> Is this happening just for the "All Mail" Gmail fake group? If you're
> splitting out of "All Mail", the message won't ever actually be deleted
> from there. I've seen some people say the "solution" is just to
> unsubscribe from All Mail...
>
> Does it happen when splitting from/moving out of other groups?
>
It is happening in all groups, but only inside my Google account.
Splitting with other providers works correct.

If i unsubscribe folder "All Messages", then the messages were never deleted,
right?
My account will grow with each mail?

Regards
Poul

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29 16:41   ` physiculus
@ 2019-07-29 17:18     ` Eric Abrahamsen
  2019-07-30  6:01       ` physiculus
  2019-07-30  6:16       ` physiculus
  0 siblings, 2 replies; 18+ messages in thread
From: Eric Abrahamsen @ 2019-07-29 17:18 UTC (permalink / raw)
  To: info-gnus-english

physiculus <physiculus@gmail.com> writes:

> Lars-Johan Liman <info-gnus-english@cafax.se> writes:
>
>> I believe this is a "Known Problem(TM)" (at least I have the same),
>> which pertains to Gmail's (incorrect?) interpretation of IMAP commands,
>> not to GNUS per se. I haven't found a set of IMAP command flags that
>> will properly delete the mail from Gmail for you, but I didn't have time
>> to drill to the bitter end of the bottomless dark pit of Googles
>> intestines ... :-( If you (or anyone else!) find/knows of a way, I'd be
>> more than thankful if you would share it with the rest of us.
>>
>> 				Cheers,
>> 				  /Liman
> Hello, yes Google wants to use their own apps or Chrome. Within it
> works.
> But i found a solution on this list, unfortunately it doesn't work for
> me (It produces an error message in gnus.el). Maybe someone could make
> the code work, i'm not a developer.
>
> Here is the link:
> https://lists.gnu.org/archive/html/info-gnus-english/2013-10/
> msg00022.html

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


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29 17:13         ` physiculus
@ 2019-07-29 17:28           ` Eric Abrahamsen
  0 siblings, 0 replies; 18+ messages in thread
From: Eric Abrahamsen @ 2019-07-29 17:28 UTC (permalink / raw)
  To: info-gnus-english

physiculus <physiculus@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> Well, it would be weirder if it wasn't!
>>
>> Is this happening just for the "All Mail" Gmail fake group? If you're
>> splitting out of "All Mail", the message won't ever actually be deleted
>> from there. I've seen some people say the "solution" is just to
>> unsubscribe from All Mail...
>>
>> Does it happen when splitting from/moving out of other groups?
>>
> It is happening in all groups, but only inside my Google account.
> Splitting with other providers works correct.
>
> If i unsubscribe folder "All Messages", then the messages were never deleted,
> right?
> My account will grow with each mail?

I'm pretty sure there are people with more Gmail expertise than me on
the list here, so hopefully someone will chime in. If you're not
subscribed to "All Messages", I don't think that necessarily means that
message deletions won't work (though I guess they're not working right
now, anyway, right?).

I don't have access to a gmail account to play with, maybe someone else
can answer this...


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29 17:18     ` Eric Abrahamsen
@ 2019-07-30  6:01       ` physiculus
  2019-07-30  6:16       ` physiculus
  1 sibling, 0 replies; 18+ messages in thread
From: physiculus @ 2019-07-30  6:01 UTC (permalink / raw)
  To: info-gnus-english

Eric Abrahamsen <eric@ericabrahamsen.net> 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-29 17:18     ` Eric Abrahamsen
  2019-07-30  6:01       ` physiculus
@ 2019-07-30  6:16       ` physiculus
  2019-07-30 17:49         ` Eric Abrahamsen
  1 sibling, 1 reply; 18+ messages in thread
From: physiculus @ 2019-07-30  6:16 UTC (permalink / raw)
  To: info-gnus-english

Eric Abrahamsen <eric@ericabrahamsen.net> 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&APw-rfe"
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&APw-rfe"
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 "[Gmail]/Spam"
08:10:56 [imap.gmail.com] 819 EXAMINE "[Gmail]/Teich"
08:10:56 [imap.gmail.com] 820 EXAMINE "[Gmail]/Wichtig"
08:10:56 [imap.gmail.com] 821 EXAMINE "emms"
08:10:56 [imap.gmail.com] 822 EXAMINE "gnus"
08:10:56 [imap.gmail.com] 823 EXAMINE "mu"
08:10:56 [imap.gmail.com] 824 EXAMINE "notmuch"
08:10:59 [imap.gmail.com] 825 SELECT "gnus"
08:10:59 [imap.gmail.com] 826 SELECT "gnus"
08:10:59 [imap.gmail.com] 827 UID FETCH 21:22 (UID RFC822.SIZE X-GM-LABELS BODYSTRUCTURE BODY.PEEK[HEADER.FIELDS (Subject From Date Message-Id References In-Reply-To Xref X-GM-LABELS)])
08:11:03 [imap.gmail.com] 828 SELECT "gnus"
08:11:03 [imap.gmail.com] 829 UID FETCH 21 BODY.PEEK[]

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-30  6:16       ` physiculus
@ 2019-07-30 17:49         ` Eric Abrahamsen
  2019-07-31 15:09           ` physiculus
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Abrahamsen @ 2019-07-30 17:49 UTC (permalink / raw)
  To: info-gnus-english

physiculus <physiculus@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> 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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-30 17:49         ` Eric Abrahamsen
@ 2019-07-31 15:09           ` physiculus
  2019-07-31 17:24             ` Eric Abrahamsen
  0 siblings, 1 reply; 18+ messages in thread
From: physiculus @ 2019-07-31 15:09 UTC (permalink / raw)
  To: info-gnus-english

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> 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!

Hello,
first thank you for the support here!

Second unfortunately the situation is confusing.
Your code only shows the standard Google tags (INBOX, IMPORTANT,
STARRED, but not my own created ones (emms, gnus, Teich ...)
The Web-Interface show them in the right place and i can change them
there.
And if i use Chrome to login on my PC the changes are transferred to
google, because i see the changes on my smartphone inside gmail.
Very strange...
Also strange: Your assoc list shows different standard labels than
gmail.
Example:
I labeled a message with "Teich". Gmail shows it and put it in folder
Gmail/Teich.
gnus shows "((X-GM-LABELS . "(\\Important)"))
Message buffer show ((X-GM-LABELS . "(\\Important)")) Specified image bit depth is not supported by XRender
Specified image bit depth is not supported by XRender"

What does it mean?

Regards
Poul

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-31 15:09           ` physiculus
@ 2019-07-31 17:24             ` Eric Abrahamsen
  2019-08-01  8:23               ` physiculus
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Abrahamsen @ 2019-07-31 17:24 UTC (permalink / raw)
  To: info-gnus-english

physiculus <physiculus@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> 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!
>
> Hello,
> first thank you for the support here!
>
> Second unfortunately the situation is confusing.
> Your code only shows the standard Google tags (INBOX, IMPORTANT,
> STARRED, but not my own created ones (emms, gnus, Teich ...)
> The Web-Interface show them in the right place and i can change them
> there.
> And if i use Chrome to login on my PC the changes are transferred to
> google, because i see the changes on my smartphone inside gmail.
> Very strange...

Well that much isn't strange, gmail can control the display of labels in
their own software.

> Also strange: Your assoc list shows different standard labels than
> gmail.
> Example:
> I labeled a message with "Teich". Gmail shows it and put it in folder
> Gmail/Teich.
> gnus shows "((X-GM-LABELS . "(\\Important)"))

Is that the only label it shows? What else is in the assoc list?

And if you open the message and hit "t" (to toggle displaying all
headers), what does the X-GM-LABELS header look like in the article
buffer?

> Message buffer show ((X-GM-LABELS . "(\\Important)")) Specified image
> bit depth is not supported by XRender
> Specified image bit depth is not supported by XRender"
>
> What does it mean?

I have no idea :) Could there be an image in the message headers? Like a
gravatar or something? I really have no clue there.


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-07-31 17:24             ` Eric Abrahamsen
@ 2019-08-01  8:23               ` physiculus
  2019-08-01 20:42                 ` Eric Abrahamsen
  0 siblings, 1 reply; 18+ messages in thread
From: physiculus @ 2019-08-01  8:23 UTC (permalink / raw)
  To: info-gnus-english

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

>
> Is that the only label it shows? What else is in the assoc list?
It depends on the folder in Gmail.
Sometimes it shows ((X-GM-LABELS . "(\\Important \\Inbox)")) or ((X-GM-LABELS . "(\\Inbox \\Sent \\Starred)"))
>
> And if you open the message and hit "t" (to toggle displaying all
> headers), what does the X-GM-LABELS header look like in the article
> buffer?
>
It didn't see this header...

>> Message buffer show ((X-GM-LABELS . "(\\Important)")) Specified image
>> bit depth is not supported by XRender
>> Specified image bit depth is not supported by XRender"
>>
>> What does it mean?
>
> I have no idea :) Could there be an image in the message headers? Like a
> gravatar or something? I really have no clue there.
>
This error comes up only one time.
I checked again with another mail and this mail seems to be ok.

Regards
Poul

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-08-01  8:23               ` physiculus
@ 2019-08-01 20:42                 ` Eric Abrahamsen
  2019-08-02  8:11                   ` paul poulsen
  0 siblings, 1 reply; 18+ messages in thread
From: Eric Abrahamsen @ 2019-08-01 20:42 UTC (permalink / raw)
  To: info-gnus-english

physiculus <physiculus@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>>
>> Is that the only label it shows? What else is in the assoc list?
> It depends on the folder in Gmail.
> Sometimes it shows ((X-GM-LABELS . "(\\Important \\Inbox)")) or
> ((X-GM-LABELS . "(\\Inbox \\Sent \\Starred)"))

And you're sure that you're opening a message that has some specific
label defined on it?

I've also seen some indication that you might need to tell Gmail to
specifically export your custom labels as flags (or folders?), do you
see anything like that here:

https://mail.google.com/mail/#settings/labels

Otherwise, I'm fresh out of ideas! Sorry...

>> And if you open the message and hit "t" (to toggle displaying all
>> headers), what does the X-GM-LABELS header look like in the article
>> buffer?
>>
> It didn't see this header...

Oh I see, it's not an actual header, just something you can request from
Gmail.


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-08-01 20:42                 ` Eric Abrahamsen
@ 2019-08-02  8:11                   ` paul poulsen
  2019-08-02 16:14                     ` Eric Abrahamsen
  0 siblings, 1 reply; 18+ messages in thread
From: paul poulsen @ 2019-08-02  8:11 UTC (permalink / raw)
  To: info-gnus-english, eric


[-- Attachment #1.1: Type: text/plain, Size: 1485 bytes --]

Eric Abrahamsen <eric@ericabrahamsen.net> schrieb am Do., 1. Aug. 2019,
22:43:

> physiculus <physiculus@gmail.com> writes:
>
> > Eric Abrahamsen <eric@ericabrahamsen.net> writes:
> >
> >>
> >> Is that the only label it shows? What else is in the assoc list?
> > It depends on the folder in Gmail.
> > Sometimes it shows ((X-GM-LABELS . "(\\Important \\Inbox)")) or
> > ((X-GM-LABELS . "(\\Inbox \\Sent \\Starred)"))
>
> And you're sure that you're opening a message that has some specific
> label defined on it?
>
Yes, because gmail show them and the code from Eric A. show them also.

I've also seen some indication that you might need to tell Gmail to
> specifically export your custom labels as flags (or folders?), do you
> see anything like that here:
>
> https://mail.google.com/mail/#settings/labels

Oh i cannot see any option to export there?

Otherwise, I'm fresh out of ideas! Sorry...
>
> >> And if you open the message and hit "t" (to toggle displaying all
> >> headers), what does the X-GM-LABELS header look like in the article
> >> buffer?
> >>
> > It didn't see this header...
>
> Oh I see, it's not an actual header, just something you can request from
> Gmail.
>
I don't understand this, because the code from Eric A. show them from
inside gnus.... Could you please explain?

Regards
Poul


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

[-- Attachment #1.2: Type: text/html, Size: 3490 bytes --]

[-- Attachment #2: Type: text/plain, Size: 162 bytes --]

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

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: splitting Gmail account just copy not move :-(
  2019-08-02  8:11                   ` paul poulsen
@ 2019-08-02 16:14                     ` Eric Abrahamsen
  0 siblings, 0 replies; 18+ messages in thread
From: Eric Abrahamsen @ 2019-08-02 16:14 UTC (permalink / raw)
  To: info-gnus-english

paul poulsen <physiculus@gmail.com> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> schrieb am Do., 1. Aug. 2019,
> 22:43:
>
>> physiculus <physiculus@gmail.com> writes:
>>
>> > Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>> >
>> >>
>> >> Is that the only label it shows? What else is in the assoc list?
>> > It depends on the folder in Gmail.
>> > Sometimes it shows ((X-GM-LABELS . "(\\Important \\Inbox)")) or
>> > ((X-GM-LABELS . "(\\Inbox \\Sent \\Starred)"))
>>
>> And you're sure that you're opening a message that has some specific
>> label defined on it?
>>
> Yes, because gmail show them and the code from Eric A. show them also.

Wait hang on, I thought the problem was that your personally-defined
labels *weren't* showing up using the code I posted?


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2019-08-02 16:14 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-28 17:52 splitting Gmail account just copy not move :-( physiculus
2019-07-29  9:19 ` Lars-Johan Liman
2019-07-29 15:51   ` Eric Abrahamsen
2019-07-29 16:38     ` physiculus
2019-07-29 17:06       ` Eric Abrahamsen
2019-07-29 17:13         ` physiculus
2019-07-29 17:28           ` Eric Abrahamsen
2019-07-29 16:41   ` physiculus
2019-07-29 17:18     ` Eric Abrahamsen
2019-07-30  6:01       ` physiculus
2019-07-30  6:16       ` physiculus
2019-07-30 17:49         ` Eric Abrahamsen
2019-07-31 15:09           ` physiculus
2019-07-31 17:24             ` Eric Abrahamsen
2019-08-01  8:23               ` physiculus
2019-08-01 20:42                 ` Eric Abrahamsen
2019-08-02  8:11                   ` paul poulsen
2019-08-02 16:14                     ` Eric Abrahamsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).