def get_footer(email_account, footer=None):
	"""append a footer (signature)"""
	footer = footer or ""

	if email_account and email_account.footer:
		footer += '<div style="margin: 15px auto;">{0}</div>'.format(email_account.footer)

	footer += "<!--unsubscribe link here-->"

	company_address = frappe.db.get_default("email_footer_address")

	if company_address:
		footer += '<div style="margin: 15px auto; text-align: center; color: #8d99a6">{0}</div>'\
			.format(company_address.replace("\n", "<br>"))

	if not cint(frappe.db.get_default("disable_standard_email_footer")):
		for default_mail_footer in frappe.get_hooks("default_mail_footer"):
			footer += '<div style="margin: 15px auto;">{0}</div>'.format(default_mail_footer)

	return footer
dataset/ETHPy150Open frappe/frappe/frappe/email/email_body.py/get_footer/original