# DocType, Email Settings
[

	# These values are common in all dictionaries
	{
		'creation': '2010-08-08 17:08:59',
		'docstatus': 0,
		'modified': '2012-01-25 18:44:45',
		'modified_by': 'Administrator',
		'owner': 'harshada@webnotestech.com'
	},

	# These values are common for all DocType
	{
		'_last_update': '1325570647',
		'allow_copy': 1,
		'allow_email': 1,
		'allow_print': 1,
		'colour': 'White:FFF',
		'default_print_format': 'Standard',
		'doctype': 'DocType',
		'in_create': 1,
		'issingle': 1,
		'module': 'Setup',
		'name': '__common__',
		'section_style': 'Simple',
		'server_code_error': ' ',
		'version': 35
	},

	# These values are common for all DocField
	{
		'doctype': 'DocField',
		'name': '__common__',
		'parent': 'Email Settings',
		'parentfield': 'fields',
		'parenttype': 'DocType',
		'permlevel': 0
	},

	# These values are common for all DocPerm
	{
		'create': 1,
		'doctype': 'DocPerm',
		'name': '__common__',
		'parent': 'Email Settings',
		'parentfield': 'permissions',
		'parenttype': 'DocType',
		'permlevel': 0,
		'read': 1,
		'role': 'System Manager',
		'write': 1
	},

	# DocType, Email Settings
	{
		'doctype': 'DocType',
		'name': 'Email Settings'
	},

	# DocPerm
	{
		'doctype': 'DocPerm'
	},

	# DocPerm
	{
		'doctype': 'DocPerm'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'label': 'Outgoing Mails'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'HTML',
		'label': '1',
		'options': '<div class="help_box">Set your outgoing mail settings here. All system generated notifications, emails will go from this mail server</div>'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'outgoing_mail_server',
		'fieldtype': 'Data',
		'label': 'Outgoing Mail Server'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'mail_port',
		'fieldtype': 'Int',
		'label': 'Mail Port'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'use_ssl',
		'fieldtype': 'Check',
		'label': 'Use SSL'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'mail_login',
		'fieldtype': 'Data',
		'label': 'Login Id'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'mail_password',
		'fieldtype': 'Password',
		'label': 'Mail Password'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'auto_email_id',
		'fieldtype': 'Data',
		'label': 'Auto Email Id'
	},

	# DocField
	{
		'description': 'Set the POP3 email settings to pull emails directly from a mailbox and create Support Tickets',
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'label': 'Support Ticket Mail Settings'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'HTML',
		'label': '2',
		'options': '<div class="help_box">To automatically create Support Tickets from your incoming mail, set your pop3 settings here.</div>'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Section Break',
		'options': 'Simple'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'description': 'Check this to pull emails from your mailbox',
		'doctype': 'DocField',
		'fieldname': 'sync_support_mails',
		'fieldtype': 'Check',
		'label': 'Sync Support Mails'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'description': 'Your support email id - must be a valid email - this is where your emails will come!',
		'doctype': 'DocField',
		'fieldname': 'support_email',
		'fieldtype': 'Data',
		'label': 'Support Email'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'description': 'POP3 mail server (e.g. pop.gmail.com)',
		'doctype': 'DocField',
		'fieldname': 'support_host',
		'fieldtype': 'Data',
		'label': 'POP3 Mail Server'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'support_use_ssl',
		'fieldtype': 'Check',
		'label': 'Use SSL'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'support_username',
		'fieldtype': 'Data',
		'label': 'User Name'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldname': 'support_password',
		'fieldtype': 'Password',
		'label': 'Support Password'
	},

	# DocField
	{
		'doctype': 'DocField',
		'fieldtype': 'Column Break'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'description': 'Signature to be appended at the end of every email',
		'doctype': 'DocField',
		'fieldname': 'support_signature',
		'fieldtype': 'Text',
		'label': 'Signature'
	},

	# DocField
	{
		'colour': 'White:FFF',
		'description': 'Autoreply when a new mail is received',
		'doctype': 'DocField',
		'fieldname': 'support_autoreply',
		'fieldtype': 'Text',
		'label': 'Autoreply'
	}
]