/mail/community?hl=en
/mail/community?hl=en
12/12/14
Original Poster
Andy J Brook

Gmail treats messages sent by the UI and remotely via SMTP differently - POP retrieves UI sent messages as well as inbound messages

Hi all,
 
Background:
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.
 
Scenario1:
A remote user sends a mail to a gmail acct, it is unread. POP retrieval lists the message (OK)
 
Scenario2:
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)
 
Scenario 3:
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?
 
Thanks muchly!
Andy
Community content may not be verified or up-to-date. Learn more.
All Replies (4)
Matt Oli
12/13/14
Matt Oli
Hi Andy,

Welcome to the Gmail forum.

Google has some documentation that explains your third scenario (Link here):
 
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.

Is that what you were looking for?

Best,
Matt 
12/13/14
Original Poster
Andy J Brook
Hey, thanks for the pointer, that page explains the scenario all right but is a bit light on 'next steps' for filters, what does that mean exactly, seems a bullet dodge on "what to do". What client are they referring to? I'm using Gmail ui to send the mail, and a javamail client/pop to pull the mail, so the filter they refer is what? a gmail UI thing that somehow affects pop clients, or something that Pop clients have to do?
Matt Oli
12/13/14
Matt Oli
In your case, "The client" would be referencing Javamail, so you'd need to set up a filter or a rule within Javamail.

Alternatively, if Javamail supports IMAP and you connect Gmail via IMAP, you'll have more control of which folders are visible via Javamail.
12/14/14
Original Poster
Andy J Brook
Hi Matt,
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?
Were these replies helpful?
How can we improve them?
 
This question is locked and replying has been disabled. Still have questions? Ask the Help Community.

Badges

Some community members might have badges that indicate their identity or level of participation in a community.

 
Google Employee — Google product team members and community managers
 
Community Specialist — Google partners who help ensure the quality of community content
 
Platinum Product Expert — Community members with advanced product knowledge who help other Google users and Product Experts
 
Gold Product Expert — Community members with in-depth product knowledge who help other Google users by answering questions
 
Silver Product Expert — Community members with intermediate product knowledge who help other Google users by answering questions
 
Product Expert Alumni — Former Product Experts who are no longer members of the program
Community content may not be verified or up-to-date. Learn more.

Levels

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.

false
Search
Clear search
Close search
Google apps
Main menu
Search Help Center
true
17
false