Version 6.x.x Source

Class Email

Wrapper for an email.

__init__ (self, content)

Parses headers, content, attachments from given raw message.

Parameters:


get_attachment (self, part, charset)

No docs


get_charset (self, part)

Detect chartset.


get_payload (self, part, charset)

No docs


get_thread_id (self)

Extract thread ID from []


parse (self)

Walk and process multi-part email.


process_part (self, part)

Parse email part and set it to text_content, html_content or attachments.


save_attachments_in_doc (self, doc)

Save email attachments in given document.


set_content_and_type (self)

No docs


set_subject (self)

Parse and decode Subject header.



Class EmailServer

Wrapper for POP server to pull emails.

__init__ (self, args=None)

No docs


check_mails (self)

No docs


connect (self)

Connect to Email Account.


connect_imap (self)

Connect to IMAP


connect_pop (self)

No docs


get_messages (self)

Returns new email messages in a list.


get_new_mails (self)

Return list of new mails


has_login_limit_exceeded (self, e)

No docs


is_temporary_system_problem (self, e)

No docs


make_error_msg (self, msg_num, incoming_mail)

No docs


process_message (self, mail)

No docs


retrieve_message (self, message_meta, msg_num=None)

No docs


setup (self, args=None)

No docs


validate_message_limits (self, message_meta)

No docs



Class EmailSizeExceededError

Inherits from frappe.exceptions.ValidationError


Class EmailTimeoutError

Inherits from frappe.exceptions.ValidationError


Class LoginLimitExceeded

Inherits from frappe.exceptions.ValidationError


Class Timed_IMAP4

Inherits from frappe.email.receive.TimerMixin, imaplib.IMAP4

__init__ (self)

No docs


_getline (self)

No docs


quit (self)

No docs



Class Timed_IMAP4_SSL

Inherits from frappe.email.receive.TimerMixin, imaplib.IMAP4_SSL

__init__ (self)

No docs


_getline (self)

No docs


quit (self)

No docs



Class Timed_POP3

Inherits from frappe.email.receive.TimerMixin, poplib.POP3

__init__ (self)

No docs


_getline (self)

No docs


quit (self)

No docs



Class Timed_POP3_SSL

Inherits from frappe.email.receive.TimerMixin, poplib.POP3_SSL

__init__ (self)

No docs


_getline (self)

No docs


quit (self)

No docs



Class TimerMixin

Inherits from __builtin__.object

__init__ (self)

No docs


_getline (self)

No docs


quit (self)

No docs



Class TotalSizeExceededError

Inherits from frappe.exceptions.ValidationError