Gmail treats messages sent by the UI and remotely via SMTP differently - POP retrieves UI sent messages as well as inbound messages
As a POP client using javamail I want to list unread messages from a gmail acct that does not include mail sent by the UI user.
A remote user sends a mail to a gmail acct, it is unread. POP retrieval lists the message (OK)
A remote SMTP service sends a mail through the gmail acct, it is added to the sent mail folder. POP retrieval does not list the sent message (OK)
Mailbox owner sends a mail from the Gmail UI. Its listed in the sent mail folder. POP retrieval lists the message (NOT OK)
From what I can see, remote SMTP sent mail is somehow filtered from POP retrieval but interactively sent mail is not. I've tried all permutations I can think of for javamail FlagTerm, am currently using "new FlagTerm(new Flags(Flags.Flag.SEEN), false)" to no avail.
Can someone shed light on what the difference is between sending a mail via SMTP and sending on via the UI that causes incorrect retrieval of UI sent mail?
When you enable POP, all messages are downloaded to your client, except for Spam, Trash, and Chats. If you don't want messages that you send from the web interface downloaded to your mail client's inbox, we suggest creating a filter within your client. You may want to contact your mail client's customer service department for instructions on how to categorize downloaded messages.
Thanks for your pointers so far.
The google page indicates filtering as a solution, its a bit vague (a lot really), as indicated in the original post, I tried a few combinations of Flags but was unsuccessful.
Following the 'how to categorize' path, the only 'filter' I can see is searching for mail not sent and not read (maybe), its not perfect:
- has to handle mailbox alternate From: addresses (requires more configuration to 'set')
- may be a performance issue with large mailboxes.
Yes, IMAP allows users to pick Folders, the problem goes away, but, I'm specifically looking at what I can do with POP and Gmail to filter out sent mail (regardless of how it was created).
I wonder if anyone from Gmail is here who can chime in as to why remotely sent mail is not pulled back and why Gmail UI sent mail is, seems completely something that should be customizable for POP connections, but isn't?
Some community members might have badges that indicate their identity or level of participation in a community.
Member levels indicate a user's level of participation in a forum. The greater the participation, the higher the level. Everyone starts at level 1 and can rise to level 10. These activities can increase your level in a forum:
- Post an answer.
- Having your answer selected as the best answer.
- Having your post rated as helpful.
- Vote up a post.
- Correctly mark a topic or post as abuse.
Having a post marked and removed as abuse will slow a user's advance in levels.
View profile in forum?
To view this member's profile, you need to leave the current Help page.
Report abuse in forum?
This comment originated in the Google Product Forum. To report abuse, you need to leave the current Help page.
Reply in forum?
This comment originated in the Google Product Forum. To reply, you need to leave the current Help page.