Support for Gmail (other?) labels
-
New to Vivaldi Mail [VM], but seems like a pretty decent desktop mail client, despite not being Open Source (but I digress). Already a marked improvement over ThuderBird that's been getting a little long in the toot & a massive drain on my limited resources.
I have a number of Gmail (& other) accounts that I've hooked up & going through & clearing up some very old mail data (some pre-2010!).
VM's search & filtering syntax isn't quite mature yet, so I've been doing some of the heavy-lifting on the respective Gmail interfaces, but the catch is that VM does not recognise Gmail labels.The obvious/"right" solution is for Google to implement the RFC-compliant standard (9051).
I'm guessing it would be something like:tag = 1*<any ASTRING-CHAR except "+"> tag-string = astring ; <tag> represented as <astring> tagged-ext-label = tagged-label-fchar *tagged-label-char ; Is a valid RFC 3501 "atom". tagged-label-fchar = ALPHA / "-" / "_" / "." tagged-label-char = tagged-label-fchar / DIGIT / ":" tagged-ext-comp = astring / tagged-ext-comp *(SP tagged-ext-comp) / "(" tagged-ext-comp ")" ; Extensions that follow this general ; syntax should use nstring instead of ; astring when appropriate in the context ; of the extension. ; Note that a message set or a "number" ; can always be represented as an "atom". ; A URL should be represented as ; a "quoted" string. tagged-ext-simple = sequence-set / number / number64 tagged-ext-val = tagged-ext-simple / "(" [tagged-ext-comp] ")"
But until then, their API seems the way to go.
I would like to request the option to support Gmail labels, please. If it's mapped to VM lative labels that's nice, but not nessiasary.
I'm not particularly fussed re colors & other decorations, but this is a pretty crucial component needed to make use of Gmail, especially with mail in the aggregate. -
@ubuntumuntu - better late than never welcome to the forum! 25 days without an answer is pretty darn untypical - your post must have fallen into a time when many folks were on vacation.
I came across your post because I searched the forum for GMail - we had a number of GMail archiving related posts which made me check other GMail functions like labels. Just as you did, I also find that GMail labels are not yet recognized by Vivaldi.
As you noted, GMail's way of handling IMAP is non standard. Thunderbird calls it "particularities", which I guess is another way of saying that GMail doesn't care much what happens outside of their web interface.
GMail uses IMAP folders to emulate labels and then hides the folders in its interface. Adding a second label makes GMail put a copy into the corresponding "Label-Folder". Thunderbird will just show the folders in the account.
I think Vivaldi should try to handle GMail labels in the Labels section of the mail panel rather than like folders (which would make them appear in the custom folders section). Already now Vivaldi does recognize that the email is in the corresponding "Label-Folder", but apparently GMail does not properly declare the existence of this IMAP folder when connecting. So Vivaldi doesn't show the folder in the GMail account, but the label is indeed shown by Vivaldi Mail above the date. It's curious that I do not find that label's name in the raw email ... I was about to suggest to add a custom filter for GMail labels until Vivaldi becomes compatible.
@ubuntumuntu said in Support for Gmail (other?) labels:
The obvious/"right" solution is for Google to implement the RFC-compliant standard (9051).
I doubt Google will make any changes to GMail in order to follow any RFC.
-
As said, for Gmail IMAP, Gmail labels are represented by IMAP folders. For example, if you have a label on a message, there's an extra copy of the message. "Inbox" is technically a label too. So, if a message is in the Inbox and in the Gmail label "test", there will be 3 copies of the message. One in the [Gmail]/All Mail folder, one in the "Inbox" IMAP folder, and one in the "test" IMAP folder. All will be seen by your IMAP mail client (unless you hide some of the folders from IMAP in the mail.google.com settings).
To create a new Gmail label, you create a new IMAP folder. To delete a Gmail label, you delete its IMAP folder.
To apply a Gmail label to a message, you copy the message to that IMAP folder. To remove a Gmail label from the message, you add the \Deleted flag to the message's copy in that IMAP folder (and the Gmail IMAP server will expunge that copy for you). Or, you can copy / move (move = copy to and then mark the original as \Deleted and UID expunge) the message's copy in the IMAP label folder to the [Gmail]/All Mail folder (called "archiving" in Gmail). Either way works.
To remove a Gmail label from a message and apply another Gmail label to the message at the same time, you move the message from one IMAP label folder to another.
In Opera Mail, this was all done in the IMAP folder view for the account where you would drag (move) or ctrl + drag (copy) from one IMAP folder view's message list to another IMAP folder. Cut, Copy, and Paste keyboard shortcuts for message list selections worked too. For Vivaldi Mail, it needs drag and drop support and cut, copy and paste support. Looks like it only has a move option via the right-click context menu right now.
As for joining the concept of Vivaldi labels and Gmail IMAP folder labels, I don't know about that. They're different things. Vivaldi labels (for IMAP) are done with IMAP keywords (when the server supports it). They're just separate things that don't mix well with other IMAP server accounts and POP accounts. Messages from Gmail IMAP also don't really mix well with Global view in mail clients. That's why in Opera Mail, I always put the Gmail IMAP account access point at the top of the mail panel and ignored all the other views. I do the same in Thunderbird.
Perhaps something fancy could be done in Vivaldi Mail though.
-
@burnout426 said in Support for Gmail (other?) labels:
They're just separate things that don't mix well with other IMAP server accounts and POP accounts
Yes, fully agreed. But GMail is so big that (opinion mine) this quirky nonstandard behavior should be handled under the hood only for GMail. Like the Opera Bork edition for MSN in the days of yore.