Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

2

Leave mail unread on mail server.

By
Lawrence
on 3/19/13, 2:23 PM 7,539 views

Hello,

When an incoming mail server is configured using IMAP to collect mail from a Gmail account it marks the message as read, meaning it is difficult to see what has been read when logging into the Gmail account.

Is there a way to leave the message as unread on the mail server?

Moreover, is it possible for the message to be automatically marked as read within openERP once it is read in Gmail, similar to how IMAP works on most mobile devices?

Thanks, Lawrence

Same problem an answer on that would be very helpful ...

DE-PRE GMBH
on 4/11/13, 1:17 PM

In the end I used POP3 for the mail servers. This allows for you to collect mail (whether its in the read or unread state) and also will not change the state of the messages it collects providing you configure it correctly on your mail server (e.g. Gmail). There is also the added benefit which it will collect mail in the "sent" folder.

Lawrence
on 5/11/13, 8:35 PM

Lawrence, how do configure to avoid the fetched emails to be deleted from the server? Could you please explain further.

Luis Leiva
on 7/29/13, 7:52 PM

Hi Luis. In Gmail I went to Settings->Forwarding and POP/IMAP and then under the heading POP access I selected "When messages are accessed by POP keep original message in inbox". I hope that helps.

Lawrence
on 8/7/13, 5:23 AM

I have the same issue - any new solutions available by now to also being able to process read messages - but not already processed through OpenERP - through IMAP?

patrick cadonau
on 11/6/13, 12:47 PM
3
assd
On 7/5/13, 6:54 AM

Real IMAP client is like a remote access/sync to a mail server. So you have just one repository for your emails and your local copy is like a managed cache that is sync each time you check mail on server.

In Openerp IMAP is used just as auth, but really, openerp copy from the server ONLY mail marked as "unread" from the IMAP inbox.

This new mail will be "unread" in openerp and "read" on IMAP server

If you read some email from you IMAP server you will not have that email in openerp (just remark the email as unread and openerp will fetch it)

If you delete some email from the server this will continue to exist in openerp because there is not sync but just fetch.

OpenERP:POP is more manageable but it can't be used with catchall account due to a bug (see: bugs.launchpad.net/openobject-addons/+bug/1104091)

OpenERP:IMAP should be changed in order to fetch all "unread (by openerp)" email! means that OpenERP should fetch those email that it has never saw before without change the "read" status on the IMAP server

bye

0
hiren
On 7/5/13, 8:28 AM

It seems openerp uses unread to know which mails to fetch, and once fetched, needs to mark those as read so that on the next fetch, it doesn't fetch the same ones again, I don't see a way of leaving it unread on server, and having openerp know which messages not to fetch on the next run. I may be wrong though.

you're right but openerp could use same technique is used in any imap mail client

assd
on 7/5/13, 10:39 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/19/13, 2:23 PM
Seen: 7539 times
Last updated: 6/24/16, 12:39 AM