-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: 'EmailServer' object has no attribute 'imap' #17344
fix: 'EmailServer' object has no attribute 'imap' #17344
Conversation
That is correct. I did have an email account set up at one point for document linking, but it isn't working for reasons both related and unrelated to ERPNext, so I unchecked "Enable Incoming". The only other account I set up is the notifications account, and "Enable Incoming" is unchecked on that account as well.
Hmm. That isn't checked, but "Create Contacts from Incoming Emails" is. Does that have something to do with it? Does my patch make sense, or are you trying to keep the code from getting that far when incoming emails are disabled? |
I don't think so.
You've read my mind 😅 - I would definately like that (makes more sense somehow - please also check that imap is also enabled) if not (self.enable_incoming and self.use_imap):
return Probably this at start of As if you trace where the Lines 565 to 566 in 9d394c1
Though I'm very curious as to how the incoming connection was established and how that code was executed when that option ("append email to sent folder") is not checked 👀 |
I think append_emails_to_sent_folder is getting set here: Line 238 in 5940d7d
I believe the setting is based on the domain: I do have "Append Emails to Sent Folder" set on the domain, and I think it's grabbing it from there. However, I feel like my settings all make sense - or am I missing something? Unfortunately I don't have more time to investigate this today or possibly even next week. |
ah, i was talking about the method
I think this might be the case - that does solve 1 mystery 🤣 I'll push a fix for this. Thanks!! |
…imap is turned off This can happen if email domain is updated - which forcibly updates settings of all email accounts associated with that email domain
c7ab802
to
613bed8
Compare
…imap is turned off (frappe#17344) This can happen if email domain is updated - which forcibly updates settings of all email accounts associated with that email domain
# [13.35.0](v13.34.0...v13.35.0) (2022-07-05) ### Bug Fixes * "You viewed/edited/created this" (backport [#17365](#17365)) ([#17402](#17402)) ([3f90b51](3f90b51)) * calendar view set in assign time ([6303a4e](6303a4e)) * don't try appending email to sent folder if enable incoming and imap is turned off ([#17344](#17344)) ([eba2a99](eba2a99)) * don't try appending email to sent folder if enable incoming and imap is turned off ([#17344](#17344)) ([524f9f2](524f9f2)) * email not sent if contain file with current site url (backport [#17250](#17250)) ([#17330](#17330)) ([32a5a6f](32a5a6f)) * enable further translations (backport [#17323](#17323)) ([#17340](#17340)) ([c8a58d4](c8a58d4)) * encode docname when routing ([c8777c5](c8777c5)) * extra notification triggered on value change (backport [#17364](#17364)) ([#17366](#17366)) ([eaf82dd](eaf82dd)) * german translations (backport [#17324](#17324)) ([#17341](#17341)) ([bd702ca](bd702ca)) * Issue sending email with attachement (that are not added by sending users) (fix in version-12 but not in version-13) ([#17293](#17293)) ([e44d4d9](e44d4d9)) * make language, source, translation mandatory (backport [#17396](#17396)) ([#17397](#17397)) ([652e9ef](652e9ef)) * **migrate:** Set touched_tables flag prior to try block ([b4d2d31](b4d2d31)) * **redis:** pass shared param when setting value based on generator (backport [#17322](#17322)) ([#17328](#17328)) ([410066c](410066c)) * refresh tree when the treeview is loaded (backport [#17383](#17383)) ([#17401](#17401)) ([e2ef990](e2ef990)) * remove bare exceptions ([48d87bc](48d87bc)) * remove duplicate tracebacks (backport [#17385](#17385)) ([#17387](#17387)) ([bf91c91](bf91c91)) * remove spaces from email placeholders ([e427f51](e427f51)) * Replace new usages of placeholders ([c1f3e3f](c1f3e3f)) * Resolve conflicts ([dfec295](dfec295)) * Retain value in the field instance when field is rendered on a dialog w/o doc ([aa737bb](aa737bb)) * shortcut widget title overflowing ([#17399](#17399)) ([dff02cf](dff02cf)) * Skip invalid field in get_print_settings_to_show ([4beb66f](4beb66f)) * Translate strings in public folders too ([af9e402](af9e402)) * update ru translations ([#17404](#17404)) ([561fc51](561fc51)) * Use 'email_open_check' in template ([2237a17](2237a17)) ### Features * add email retry limit in system settings (backport [#17259](#17259)) ([#17336](#17336)) ([a87f156](a87f156))
🎉 This PR is included in version 13.35.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR is intended to fix the following traceback:
I have email partially set up on my server (which is experiencing the above traceback): I use a notifications email address for outgoing emails, but I don't have any incoming email address configured, and I don't use imap for anything.