Gmail's IMAP server uses IMAP folders to mimic all the labels and views in the https://mail.google.com/ webmail interface. Since a message can be present in more than one label/view at mail.google.com, a copy of a message can be present in more than one IMAP folder in Opera.
This presents a problem because label-based (and database-driven) IMAP clients like Opera will show matching messages from all of Gmail's IMAP folders and you'll get duplicates (as in multiple, not necessary just 2 copies) in your views. See this post for a good example.
Even though Opera's built-in mail client was not designed for Gmail's IMAP server implementation (see the 11.50 section below as this has changed), this page will show you how to set up and use Gmail IMAP in Opera without having to worry about duplicates.
First, log in to https://mail.google.com/ (if you haven't created a Gmail account yet, do so).
Once you're logged in, turn on IMAP in Settings -> Forwarding and POP/IMAP.
Then, in Opera:
Warning!: If you're using Opera 11.10 (fixed in 11.50 final), make sure to right-click on "All Messages/Spam", goto properties, goto "options" and uncheck "learn from labeled messages" *before* going any further. That will stop Opera's greedy spam filter from marking all your good messages as spam. Gmail has it's own spam filter anyway. (Note though that this will clear what Opera's spam filter has learned. So, if you rely on "learn" for other accounts, you can't uncheck it.)
Tools (or Menu button if the menu bar is hidden) -> Mail and Chat accounts -> add -> email -> next -> enter your name and your gmail address -> next -> enter your username (your gmail address) and password -> finish
Go back to "Mail and Chat accounts", select the gmail account and choose edit. On the outgoing tab, set the default encoding to UTF-8. Then, click "edit signature" and set your signature to your first name.
Also, on the "Servers" tab in the account's properties, make sure you do not set an update interval less than 10 minutes or Gmail will consider that abuse. (Because of IDLE support, you'll still get messages in your the "Inbox" IMAP folder (or "All Mail" in 11.50+) right away anyway.)
If you have multiple mail accounts in Opera, when you want to show messages just for one of your Gmail accounts, right-click in the mail panel and set "Show messages from" to that account. Note that this option will reset to "All" when you restart Opera so that you don't forget and think you've lost most of your messages.
Also, open the message list for each view that you use and click the "Sent" column header twice so that its arrow is pointing down (to sort by Sent date in descending order).
Check out this article for step-by-step instructions with pictures if you want.
Note: By default, Opera sets "add contacts from sent messages" on the outgoing tab of the account's properties. Opera also sets "[Gmail]/Sent Mail" as the IMAP sent folder. This means that when you set up a Gmail IMAP account, Opera will generate contacts in the contacts panel for all the messages in the "Sent Mail" IMAP folder. If you want to avoid this, don't enter your password when setting up your Gmail IMAP account in Opera. Then, go into the account's properties and uncheck "add contacts from sent messages". Then, set your passwords on the server tab.
Note: If you're doing Workaround 2 below, do not setup the account in Opera until it says to.
Opera 11.50+ has really good support for Gmail IMAP.
Opera uses its IMAP XLIST support to automatically detect and use Gmail IMAP's special folders.
This means that the "All Mail", "Trash", "Sent Mail" and "Spam" folders are detected and used no matter what locale you're using. After setting up a new account, on the IMAP tab in the account's properties, you'll see that the sent, spam and trash folders are already set.
This means that the "Recieved", "Sent", "Spam" and "Trash" views under "All Messages" are synced with the "All Mail", "Sent Mail", "Spam" and "[Gmail]/Trash" IMAP folders respectively.
This also means that DEL and undelete will move messages in and out of the Gmail trash folder and that marking a message as spam or not spam will move it in and out of the Gmail spam folder. Empty trash will also work correctly now. Shift + del to bypass the trash will work correctly now too.
This all makes things sync very well with the webmail.
IMAP accounts in Opera now have a new option on the IMAP tab in the account's properites to disable the spam filter for the account. The spam filter is disabled for Gmail by default since Gmail supports it's own spam filtering.
In non-IMAP folder views (like "All Messsage/Recieved" etc.), Opera now only shows messages from the Gmail "All Mail" IMAP folder so you don't get duplicates (as long as you have "show hidden" unchecked. Also, Opera has "view -> show -> show duplicates" that you can uncheck to hide any other situations where you might see duplicates in a list (like in Opera labels or if you have "show hidden" checked).
Opera also uses IDLE on "All Mail" instead of "Inbox" now since the messages that are shown come from "All Mail".
At mail.google.com now, the Advanced IMAP Controls extension is now integrated into Gmail's settings as an official feature. The default settings should be fine and you shouldn't mess with them.
Since DEL now moves to the Gmail "Trash" IMAP folder, you can't archive a message any longer by using del or shift + del. Instead, drag to the Gmail "All Mail" IMAP folder to archive. If you like the old behavior though, as a workaround, you can create a label named "Archive" and in its properties, set its keyword to "\Deleted". Then, whenever you want to archive a message, just apply the "Archive" label to the message. It'll work just like del and shift + del used to work.
With all that said, the way you're supposed to use Gmail IMAP with Opera 11.50+ is to not change anything.
That means, don't unusubscribe from any IMAP folders (make sure you're subcribed to all of them) and make sure that none of them are hidden from IMAP in the mail.google.com label settings.
Then, in Opera, you click the view button on the mail panel toolbar and uncheck the "firstname.lastname@example.org" IMAP folder access point. Then, you use Opera's views only (like you would with a regular IMAP account). But, if you really want to use the IMAP folders too (because you need to drag to Gmail IMAP label folders to label messages with Gmail labels), you can, and things will work great with them too. You can even use *just* the IMAP folders if you want. Just drag the email@example.com access point to the top of the mail panel (and hide all other views if you want).
If you have multiple accounts in Opera, right-click in the mail panel and use "Show Messages From" to switch which account's messages are shown in Opera's views. If you goto "Shift + F12 -> buttons -> mail", you can drag the account selector drop-down to the mail panel toolbar so that you can always see what account you're on and easily switch them. Just note that Opera resets "Show Messages From" to "All Accounts" on startup.
With that said, if you're using Opera 11.50+, you really don't need to read any further. The only thing that might interest you is the action table linked below that still applies when you're using the IMAP folders directly in Opera instead of using Opera's views.
First, click the view button on the mail panel toolbar and uncheck all access points except the firstname.lastname@example.org ones. 
Then, follow the Gmail IMAP Action Table. (Note that for Opera 11.10, DEL will move to "[Gmail]/Trash" and marking a message as spam will move it to "[Gmail]/Spam" so you don't have to drag so much.)
Doing things this way will make things sync perfectly with mail.google.com and you'll be doing things the way the Gmail team expects.
You're now done. Ignore the rest of this page unless you're interested in advanced configurations.
1. If you have other mail accounts that are not Gmail IMAP accounts, you don't want to hide all of the access points. However, you'll still only use the email@example.com ones for your Gmail IMAP messages.
Part A mentions that you can't use Opera's views like All Messages/Unread and All messages/Received etc. This is because they'll show duplicates. But, there's a way to fix that, if you want (it's not required).
In Opera, when you have a label set to "hide these messages from other views", the messages in the label won't show in other views unless those views have "View -> Show -> Show hidden" checked. "Hide these messages from other views" being checked is actually 'Hide from other=1' in index.ini in the mail folder (see Help -> About Opera for the location).
Since IMAP folders under the "firstname.lastname@example.org" access point are implemented as special labels, they have a "Hide these messages from other views" option too. There's just no option in the user interface to control it for the IMAP folders.
However, you can close down Opera and set 'Hide from other' to 1 for the [Gmail]/Drafts, [Gmail]/Trash, [Gmail]/Spam, [Gmail]/Starred], Inbox and all your other label folders (including the "Trash" label folder) sections. You should be able to find each section by its 'name=' value. (You don't have to do this for [Gmail]/Sent Mail if it's set as your IMAP sent folder on the outgoing tab of the account's properties.)
Doing this will get rid of duplicates coming from all those IMAP folders in all views that don't have "View -> Show -> Show hidden" checked. That way, you won't have duplicates in All Messages/Received and All Messages/Unread for example.
Also, since, all the views under Attachments, and Mailing lists etc. have "View -> Show -> Show hidden" checked, you'll have to uncheck it for each of those views to hide the duplicates. For Opera labels though, this option is grayed out, so you might still get duplicates in Opera's labels.
Also, be warned! You can severely mess things up if you don't edit index.ini correctly. And, backing up index.ini alone is not enough. You need to back up the whole mail folder and restore the whole mail folder if something gets messed up. Just restoring index.ini when something gets messed up will only work if nothing has major has changed in Opera.
Note that even if you can now read messages in All Messages/Unread and All Messages/Received for example without having duplicates, you'll still have to use the "email@example.com" IMAP access point and the Action Table mentioned in part A when you want to delete messages etc. (but see note in Part A about Opera 11.10). Marking a message as read in Unread for example should work fine though.
Note that in Opera 11.10, "Hide from other" is automatically set to 1 for every view that needs it. This means you no longer have to mess with index.ini.
This is a totally separate alternative to Workaround 1.
(It's best if you don't setup the account in Opera until you've followed the directions below.)
If you would rather just make the Gmail IMAP server behave like a normal IMAP server (so you can use Opera's built-in mail client like you would with a normal IMAP server and use all of Opera's built-in views etc), try this:
Turn on IMAP in Settings -> Forwarding and POP/IMAP.
Turn on the Gmail Labs Advanced IMAP controls extension in Settings -> Labs.
Under "Forwarding and POP/IMAP", set auto-expunge to "Do not automatically expunge messages".
Under "Forwarding and POP/IMAP", set "When a message is expunged from the last visible IMAP folder:" to "Immediately delete the message forever".
Under "Forwarding and POP/IMAP", set "Folder Size Limits" to "Do not limit the number of messages in an IMAP folder".
Under Settings -> Labels, delete all of the custom labels you've created. Also, delete any filters under Settings -> Filters that place messages in labels or archive messages.
Under Settings -> Labels, make sure the checkbox for "Show in IMAP" is only checked for "Sent Mail". Make sure all the others including "All Mail" are unchecked. (You can't uncheck "Inbox", which is fine.)
Goto All Mail, select all messages in it and click "move to Inbox" so that they show in the IMAP Inbox folder.
Empty the trash and unstar any messages you have as you won't be able to see these in Opera anyway.
Then, the only IMAP folders that will show up in Opera will be "Inbox" and "Sent Mail". "Inbox" will contain all your received messages.
Then things will be better in Opera and you can use all of its views and access points like you would with a normal IMAP server.
Now, since the IMAP spam folder is hidden from Opera with the above config, for any senders you want to be sure will not be marked as spam, just create a filter at mail.google.com and put that sender's email address in the from field, click next and check "never send it to spam". Always apply the filter to existing messages too though.
As an alternative, you can set up a single filter at mail.google.com that matches messages with @ in the From header and set "never send it to spam" for it. This will basically bypass Gmail's Spam handling so that you can do it all in Opera by adding/removing things from Opera's All Messages/Spam to train Opera. Note that training Opera takes a while though.
Also, when you're using Gmail IMAP in Opera, right-click in the mail panel and set "Show messages from" to just one Gmail account at a time if you want. That way, you can only show messages from one account at a time. "Show messages from" will reset to "all" when you restart Opera though so that you don't forget and think you've lost messages from other accounts.
You can create a new Gmail account to test this out on if you want (if you don't want to mess with your existing account just yet).
Note: With this configuration, the IMAP Action Table linked above, and a lot of the Gmail-specific stuff in the sections below, do not apply!
Note: If you use this configuration and decide to access your mail at http://mail.google.com/, do not star any messages, do not archive any messages and do not create labels and do not add labels to any messages. You can mark a message in "Inbox" as spam and then empty spam though. You can also "Not spam" a message in Spam and then move it back to the Inbox.
Now that you've done the above, you can setup the account in Opera. Then, click the view button on the mail panel toolbar and turn off the firstname.lastname@example.org access point as you won't be needing it.
Note: Since all your received messages will be in one IMAP folder ("Inbox"), you may eventually reach a problem where the IMAP server just can't handle that many messages in one folder (maybe 100000 for example). I do not know if there's actually a limit and have never reached one, but just note that it might be possible for the server or Opera to choke on that many messages in one folder.
Note: Opera 11.10 supports the "[Gmail]/Trash" and "[Gmail]/Spam" folders for DEL and marking as spam respectively. If you like, you can modify the directions to make use of "[Gmail]/Trash" and "[Gmail]/Spam" instead of hiding them from IMAP.
Read the following old sections if you want to understand more about how Gmail IMAP works (including why you get duplicates) and how Opera's built-in mail client works.
First off, here are some super basic examples of how IMAP works:
Sets or removes flags on selected messages. For example, the \Deleted flag could be set or unset on the selected messages to mark them as deleted.
Wipes out all messages that have the \Deleted flag
stored on them.
Wipes out messages with certain IDs that have the
\Deleted flag stored on them.
Copies a message from one mailbox to another.
Those are the basic commands that will be relevant for understanding Gmail IMAP.
In the Mail panel, you have the "Unread" *view* and several *access points*, which are: "All Messages", "Filters", "Followed Threads", "Labels", "Attachments", "Mailing Lists", "Mail for imap_account1", "Mail for imap_account2" "Newsgroups1?", "Newsgroups2?" and "Feeds".
Each of the access points can have multiple views themselves. For example, M2's All Messages access point has a view for Received, Outbox, Sent, Drafts, Spam and Trash.
Each View in M2 shows only messages that match a certain criteria. For example, the Received view shows received messages, the Trash view shows messages that are marked as deleted and so on.
"Mail for imap_account" access points have views for each IMAP mailbox(folder) on the server that you're subscribed to. The criteria for each of these views is basically, "Show me all messages that are in this folder on the server". This makes the "Mail for imap_account" access points the best place to manipulate messages on the server because you're dealing with raw folders kind of like you do in a webmail as opposed to dealing with filtered views. Keep this in mind as the IMAP access points are where you'll spend all of your time.
IMAP access points are also views themselves. If you click on "Mail for imap_account", you'll get a message list view that shows messages from all the IMAP folder views under the access point.
Pressing DEL or clicking the Delete button sets the \Deleted flag on the selected messages. Then, those messages will only be shown in views that have "view -> Show in -> Show Trash" set. The main view that has this is All messages/Trash.
In the All Messages/Trash view, clicking the Undelete button will remove the \Deleted flag from the selected messages. Then, they will no longer show up in the Trash view.
In the All Messages/Trash view, pressing DEL or clicking Delete for the selected
messages will UID expunge them.
Right-clicking in the mail panel and choosing Empty Trash will Expunge all
messages that have the /Deleted flag set on them.
Dragging messages from one IMAP folder view to another will move the messages.
Since there's no IMAP Move command, the messages will be copied to the target
folder and the originals will get \Deleted set on them. Then, the originals will be UID
As an alternative to dragging, you can use the cut
and paste commands on the message list for the IMAP folder views.
If you want to copy a message from one IMAP folder to another IMAP folder, you
have to use the copy and paste commands in the message list for the IMAP folder views.
Or, you can hold down ctrl while you drag.
If you drag a message from a view under an access point that's not an IMAP access point to an IMAP folder view, it will initiate a copy and paste instead of a cut and paste. Same thing applies when you drag from an IMAP folder view under a *different* IMAP access point.
Now, some clients allow you to designate a certain IMAP folder as a trash folder so that when you press DEL on a message, it copies the message to the IMAP Trash folder, stores \Deleted
on the original and UID expunges the original.
Then, when you press DEL in the IMAP
Trash folder view it stores \Deleted on the message and UID expunges it. And, if you "Empty
Trash" for the the IMAP trash folderv view, it does that for all messages in the IMAP Trash folder. M2 doesn't allow one to do this, but you'll see it's not useful for Gmail IMAP anyway.
Now, M2 supports a Delete Permanently option (shift+DEL) that sets \Deleted on the
message AND UID expunges it. This is useful for when you just want the message gone
and don't want to have to Delete it and then go under the All Messages/Trash view to expunge
it. You'll see why this is important later.
In M2, the All Messages/Received view shows a list of messages for all your IMAP folders so
that you can easily search through all your messages. The Unread view is the same
thing except that it just shows unread messages from all your IMAP folders. (If you
have an IMAP sent folder set in M2, messages from it won't be shown in those views by default.)
In the message list for each view, you can click on the different header columns depending on how you want to sort messages. By default, M2's sorting is messed up and you should click on the "Sent" header twice (so that the arrow is pointing down) to sort by sent in descending order.
Gmail on the server basically consists of a database of messages with certain label attributes. The webmail UI then presents that to you in a nice way. This is fine, but when using IMAP, the database and the label attributes for each message have to be translated into IMAP mailboxes(folders).
For Gmail IMAP, [Gmail]/All Mail is your database off all your messages (Besides
[Gmail]/Sent Mail, [Gmail]/Trash and [Gmail]/Spam). Starred, Inbox and other IMAP
folders not under [Gmail] are your label folders.
A full physical *copy* of a message in [Gmail]/All Mail will be present in each
label folder that applies to the message.
So, if you receive a message with a subject of "Test" and apply the "zipzambam"
label to it, you'll have 3 physical copies of the message and it'll look like this under the "Mail for your_gmail_account" access point.
-[Gmail] - All Mail Test -Inbox Test -zipzambam Test
Now, in M2, since the Unread and All Messages/Received views show messages from all
IMAP folders, you're going to see each copy in their list (3 in this case).
That's just the way it is. Don't fight it and don't worry about it. For Gmail IMAP, you're not supposed to use anything under any of the non-imap access points/views (except All Messages/Drafts and All Messages/Sent in some cases). Just stick to just using the IMAP
folder views under "Mail for your_gmail_account" access point. Keep all the other views and access points collapsed and never expand them. Just pretend they're not there.
Here's an XML visualization of why you get multiple copies of messages in various M2 views like Unread and Received:
<database> <message id="0" labels="INBOX, public-html, whatwg"> <subject>HTML5 rocks!</subject> </message> </database>
Database converted to IMAP mailboxes(folders):
<imap> <mailbox name="[Gmail]"> <mailbox name="All Mail"> <message id="0"> <subject>HTML5 rocks!</subject> </message> </mailbox> </mailbox> <mailbox name="INBOX"> <message id="0"> <subject>HTML5 rocks!</subject> </message> </mailbox> <mailbox name="public-html"> <message id="0"> <subject>HTML5 rocks!</subject> </message> </mailbox> <mailbox name="whatwg"> <message id="0"> <subject>HTML5 rocks!</subject> </message> </mailbox> </imap>
M2's Received view (a filter based on messages from the IMAP mailboxes)
<m2> <view name="Received"> <message from-mailbox="[Gmail]/All Mail"> <subject>HTML5 rocks!</subject> </message> <message from-mailbox="INBOX"> <subject>HTML5 rocks!</subject> </message> <message from-mailbox="public-html"> <subject>HTML5 rocks!</subject> </message> <message from-mailbox="whatwg"> <subject>HTML5 rocks!</subject> </message> </view> </m2>
As you can see, the reason you have multiple copies in various views is because the IMAP server has multiple copies. The IMAP server has multiple copies because Gmail's IMAP implementation uses a *copy* of a message in a mailbox to represent each active label on a message in the database.
But, you'll never be bothered by this since you do not use non-IMAP access points and views in M2 with Gmail IMAP.
Here's how you do things in M2 with Gmail IMAP so that your actions are
synchronized with how the Gmail webmail interface shows things:
If you want to move a message to Gmail's trash (which will remove all copies of it from other IMAP folders), drag
it (or cut and paste) from one of the IMAP folder views it's in to the [Gmail]/Trash IMAP folder view.
If you moved the message to the Trash and then want to undelete it, move it back and all the labels that were on the message should be restored (which means all the copies in all the label folders will be recreated).
If you want to mark a message as Spam (which will remove all copies), drag it (or cut and paste) from one of the IMAP folder views it's in to the [Gmail]/Spam IMAP folder view.
If you want to undo this, drag it back to where it was. If that doesn't have any effect as far as marking it as "Not Spam" after a while, you'll specifically have to drag it back to Inbox to get it marked as "Not spam". Then, you can archive it and reapply labels if needed.
To empty Gmail's trash, select all messages in the [Gmail]/Trash IMAP folder view and invoke Delete Permanently (shift + del).
You can use the same type of thing to clear [Gmail]/Spam.
To remove a label from a message, Delete permanently (shift + del) on it in the IMAP label
folder view. This doesn't really "Delete permanently". It just removes the labeled copy.
As an alternative, you can drag or cut and paste the message to [Gmail]/All Mail.
To change a label of a message, drag it from one IMAP label folder view to another (or use cut
and paste from one message list to another).
To add another label to a message, copy and paste it (or hold down ctrl while dragging) into another IMAP label folder view's message list.
In Opera 10, when you copy, you can continue pasting to multiple IMAP folder views so you can apply multiple labels without having to invoke copy each time. It basically works like copy and pasting works in Windows Explorer.
To Star a message, copy and paste it (or hold down ctrl while dragging) to the [Gmail]/Starred IMAP folder view's message list.
In the [Gmail]/Starred IMAP folder view, invoke Delete Permanently (shift + del) on it.
Remove the Inbox label from it by invoking the Delete Permanently command on it in the IMAP Inbox label folder view.
As an alternative, you can drag or cut and paste a message from the IMAP Inbox label folder view to [Gmail]/All Mail.
M2 doesn't offer an option to upload Drafts to Gmail. However, you can drag (or copy and paste in this case) from the All Messages/Drafts view to the [Gmail]/Drafts IMAP folder view.
When you send a message, Gmail automatically copies it to the [Gmail]/Sent Mail IMAP folder. You do not need to set [Gmail]/Sent as a sent folder in M2 in the account's properties. However, *if* you want M2 to automatically add contacts from [Gmail]/Sent Mail to M2's contacts panel, you can set [Gmail]/Sent Mail as your sent folder without getting an extra copy in [Gmail]/Sent Mail (Gmail seems to ignore the extra copy). This also allows the All Messages/Sent view to contain the full list of sent
messages that are on the Gmail server. Only do these things if you really really want to.
If you have a message with no labels, it'll only be in [Gmail]/All Mail IMAP folder. If you want to delete it, drag it to the [Gmail]/Trash IMAP folder view. If you want to add a label to it, copy and paste it to an IMAP label folder view like 'Inbox'.
In some of the situations above (like moving to Gmail's trash), you can copy and paste to the [Gmail]/Trash IMAP folder view instead of dragging(cutting and pasting) and the Gmail server will do the same thing. This will allow you to drag from the Unread or All Messages/Received views to perform an action like moving a message to Gmail's trash. But, that's not recommended and you should stick to dragging(cutting and pasting) from one IMAP folder view to another and leave non-IMAP access points and views alone.
Instead of doing Delete Permanently (shift + del) in the [Gmail]/Trash IMAP folder view for example,
you can also use just Delete. However, then, you have to empty M2's All Messages/Trash view.
This is why you use Delete Permanently so you don't have to do 2 steps. For Gmail IMAP
accounts, by default, Thunderbird makes DEL work like Delete Permanently specifically for this reason.
Most of the time, all you'll be doing is:
Opening messages, dragging them to the [Gmail]/Trash IMAP folder view and invoking Delete Permanently on them in [Gmail]/Trash.
Now, since the [Gmail]/Spam IMAP folder can contain nasty and perhaps unsafe messages, if you don't have View (the button on the mail toolbar) -> display -> "Block external embeds" checked (it's checked by default), you should set view -> display -> "list only" for message lists if you're going to be viewing the [Gmail]/Spam IMAP folder, Unread or All Messages/Received views. That way, the body of a spam message doesn't load unless you choose to open the message. (Same thing applies for all other views that might have spam messages in them.)
After you permanently delete messages from [Gmail]/Trash (or another folder when
removing a label) for example, the [Gmail]/All Mail IMAP folder view (and IMAP label folders that *had* copies of the message) won't be updated with the changes (like the unread count next to the IMAP folder view) until you either click on the IMAP folder to select it or the next sync. If this bugs you, just click check/send after you perform an action. That will sync things so that the copies disappear from all the other views faster.
If you drag a message to [Gmail] while it's collapsed, just hold over it for a second
or two and it'll expand so that you can continue dragging to the IMAP folders.
First, here are a few pics to show what the mail panel looks like. In the Gmail account used for the following pics, there is only 1 message in database. But, it has "INBOX", "Label1?", "Label2?", and "Label3?" labels applied to it.
This is a great example stressing how important it is to ignore and collapse all the access points except the IMAP account access point.
Don't use this view with Gmail IMAP. Keep it collapsed.
Don't use this view with Gmail IMAP. Keep it collapsed.
As you can see, besides the original copy of the message that appears in the [Gmail]/All Mail IMAP folder view, there's a copy of the message in each IMAP label folder view that applies to the message. In the case of views like All Messages/Received, Unread and the IMAP access point top view, the copies for the other IMAP folder views will show in the message list also. But, don't worry about those message lists as you don't use Unread and All Messages/Received with Gmail IMAP and only use the IMAP access point top view for searching the entire IMAP account with the quick find field.