Email Inbox in V8

The SSL port is correctly set?

Hi,

Sorry for the delay in response

As I am assuming that there is some fault in my email server, so I have configured gmail account with Imap setting as follows.

and

Now still I am not able to see anything in Accounts email Inbox

Please suggest what could be the next step?

Regards

I am not familiar with the current inbox gui, but be aware of gmail login issues for eg

1 Like

Are you setup this as Administrator?

Please tell us your environment:
Windows, Linux, VM?

Please tell us the version of the ERPNext.

Did you checked the Email port is open trough firewall?

Hope this helps.

@krnkris

Yes i am the setup administrator

My enviornment is Linux Ubuntu 14.04 LTS VM, Erpnext Release v8.0.28

My Firewall are open for outgoing connection, i.e. for the IMAP/IMAPS POP/POPS SMTP/SMTPS.

I have cheked it by doing telnet., if my ports were blocked then I must have received “Request Timed out” error while creating the email inbox account in erpnext.

Regards,

May this help?:

Hi

I have tried the above mentioned link but it seems every thing is perfect.

I am able to send the email from the configured account, but the problem is it doen’t appear in the sent Items, as well as I am not able to see the email which are already there in Inbox of gmail.

Both the sent Items and Inbox is blank as shown in the screen shot earlier.

Please suggest

Regards,

You have checked this is not your problem?

  1. My experience is gmail ignores login attempts less than say 15 minutes apart!

As for your Sent Mail is blank/empty - is your Communication List empty too?

In my case both lists match - but I append to Communication and you do not - maybe if you set that!?

hi @clarkej

I have tried all possible ways of your post but not able to make it, I have used the below tweak.

  1. My experience is gmail ignores login attempts less than say 15 minutes apart!
    frappe@erpnext:~/frappe-bench$ find . -name *.json | xargs grep scheduler_interval
    ./sites/common_site_config.json: “scheduler_interval”: 900,
    ./sites/aproposcomputing.com/site_config.json: “scheduler_interval”: “300”,

My actual problem is I am not able to see the email in Email inbox as well as sent item in erpnext (On the email server mails are there), not the login or sending of emails.

Yes the communication list is empty too.

Regards,

Hi Deepak,

‘I append to Communication and you do not - maybe if you set that!?’

In your email Default Inbox, is Append To set to Communication?

In your screenshot that field is empty - that may be your problem!?

Hi @clarkej

Yes you are right after selecting the communication I am able to see two emails. (Please note there are more than 450 emails in inbox.)

But still not able to see the sent items.

Please refer the below screen shots.

Settings

Inbox

Sent Items

Regards,

ok in my case the one account set on Append To Communication is also set as Default Incoming & Outgoing.

You can experiment with settings and send some test emails in and out to determine how it works - or does not! I am not sure what the prescribed behaviour is…

cheers

Do you have read + write permissions for the private + public dyrectories under erpnext?

1 Like

The sent email is only the emails that are sent via Email Inbox in ERPNext, not your mail account’s normal Sent folder that you might view in Thunderbird say. Only the inbox is syncced. Actions such as reply and forward will show emails sent in this manner from the application. This was confirmed on a webinar by Frappe a few months ago.

@krnkris Yes I have the permissions.

@Julian_Robbins

Then giving the IMAP as an option will not make sense, because this seems to be a POP property. I thought that by using this feature we can eliminate the dependency of the email Clients like Thunderbird, outlook etc.

What if I send new email from the email inbox will it show in sent Items?

Can you share the webinar link if available.

Thanks for filling in the blanks Julian.

Lots to be had on youtube Deepak - possibly this one has some answers you seek?

1 Like

IMAP is only sense if you not read the message with differ e-mail client /ThunderBird, outlook ect./
If it is already readed then ERPNext will not pull again. You should put it in to not readed stage /mostly with bold letters/, then the ERPNext is pulls within time range others not pull, then there is a chance to get it in to your Inbox of ERPNext.

Make a new email address dedicated only for ERPNext to try out.

Lengthen the pull request for the differ email clients and/ or shorten in ERPNext /don’t know how/.

Hope this helps.

Hi! To add another problem with emails: they used to be be synch’ed and for some reason, now they stopped. We get 0 new emails. Looking at the logs, here’s what I can find:

{'retry': 0, 'log': <function log at 0x7f098a3060c8>, 'site': u'erp.xxxxxx.com', 'event': u'all', 'method_name': u'pull_from_email_account', 'method': <function pull_from_email_account at 0x7f098a23f668>, 'user': u'Administrator', 'kwargs': {'email_account': u'Valentin Cavel'}, 'async': True, 'job_name': u'pull_from_email_account|Valentin Cavel'}
Traceback (most recent call last):
  File "/home/glibersat/frappe-bench/apps/frappe/frappe/utils/background_jobs.py", line 65, in execute_job
    method(**kwargs)
  File "/home/glibersat/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 698, in pull_from_email_account
    email_account.receive()
  File "/home/glibersat/frappe-bench/apps/frappe/frappe/email/doctype/email_account/email_account.py", line 253, in receive
    emails = email_server.get_messages()
  File "/home/glibersat/frappe-bench/apps/frappe/frappe/email/receive.py", line 115, in get_messages
    uid_list = email_list = self.get_new_mails()
  File "/home/glibersat/frappe-bench/apps/frappe/frappe/email/receive.py", line 178, in get_new_mails
    response, message = self.imap.uid('search', None, self.settings.email_sync_rule)
  File "/usr/lib/python2.7/imaplib.py", line 773, in uid
    typ, dat = self._simple_command(name, command, *args)
  File "/usr/lib/python2.7/imaplib.py", line 1088, in _simple_command
    return self._command_complete(name, self._command(name, *args))
  File "/usr/lib/python2.7/imaplib.py", line 918, in _command_complete
    raise self.error('%s command error: %s %s' % (name, typ, data))
error: UID command error: BAD ['Error in IMAP command UID SEARCH: Invalid UID messageset']

Note that this email server is from a well known company and has been working for years with email clients such as thunderbird.

Any idea?

Thanks!

Sorry no idea. But the Imap error will be from a std python imap library I guess so Google is your friend.

True, IMAP is used in email system so that you can have the access of the Inbox as well as Sent Items, (Mostly all folder structure), from different client. So what should I say erpnext email inbox, Client or something else ?

Then What is the meaning of below setting.

As far as I understand If I will select ALL it will sync all the email upto 250 Messages at initial stage, later on it will sync it as on new email arrival, correct me if I am wrong here.[quote=“krnkris, post:21, topic:22164”]
Make a new email address dedicated only for ERPNext to try out.
[/quote]

I already have did that but same thing happens it doesn’t sync, Inbox as well as Sent Items.

Please let me know, how this is working for others, like if they do have the existing email account, are they able to sync all the messages of inbox as well as sent items?

Your input is highly appreciated.

Regards,