formataddr[1] by default encodes non-ascii characters to `=?utf-8?q`, which needs to be decoded to a human-readable string format. using decode_header and make_header we can decode the string back to human-readable format.
before:
In [1]: formataddr(("Tèst", "notifications@erpnext.com"))
Out[1]: '=?utf-8?b?VMOoc3Q=?= <notifications@erpnext.com>'
after:
In [2]: make_header(decode_header(formataddr(("Tèst", "notifications@erpnext.com"))))
Out[2]: 'Tèst <notifications@erpnext.com>'
references:
[1]: https://docs.python.org/3/library/email.utils.html#email.utils.formataddr
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
* fix: bench run-ui-tests command
BREAKING CHANGE
This replaces the old run-ui-tests command which used selenium to run
UI tests with Cypress.
Usage:
bench --site [sitename] run-ui-tests [app]
bench --site [sitename] run-ui-tests [app] --headless
* fix: Include adminPassword from site_config
* fix: string formatting
gzip.compress and gzip.decompress were introduced in Python 3.2
Added gzip_compress and gzip_decompress to frappe.utils to add this functionality
to both Python 2 and 3
- Replace all occurences of manual imports with this utility
- Also enable extras
- fenced-code-blocks
- tables with class 'table table-bordered'
- header-ids
* Update email.py
* Get the correct Email Address for Administrator
Get the correct Email Address for the Administrator User as well. I see no reason why.
* added actions button for bulk operations
also included bulk edit option
* page html refactor and added show/hide action option
* copy field object to avoid mutation
* commonify update method and other refactor
* fixed bug with progress bar level and minor fix with 'value' field display
* fixedfrappe/erpnext#13063
* commonify field control method and removed unwanted code
* separate method for submit and cancel
* [minor] msgprint change
* refresh list on complete
* requested changes and refactor
* codacy fix
* code formatting, changed var name
* conflict fix
* description option for progress dialog
* extracted bulk operations to a separate file
* Refactor
commonified redundant method
get_json -> parse_json
* rename change_df -> replace_field
* Communication_reconciliation
* Email inbox
* added collapsed timeline for communication
* new email prefill from when only one address
* timeline duplication and notifcation and stability fixs
* add subject to timeline
* email system v7 fixes
* added password required validation
* use proper email datetime
* email inbox v7.1 fixes
* email inbox communication_date used instead of created
* email inbox communication data cleanup
* remove old patch
* email inbox permit unlinking
* [fix] duplication queue and rename domain to email domain
* fix rename domain
* email inbox index optimisation
* email inbox relink doctype query usability fix
* email_inbox Set attachment variable for forwards and replies based on whether it exists or not
* uidnext fixes and cleanup
* email inbox fix tests
* fix rebase timeline issue
* email inbox threading and cleanup
* email inbox cleanup
* bring inbox into frappe and cleanup
* fix missed path
* inbox cleanup
* email-inbox move service back to account
* separate to erpnext contact match
* email inbox cleanup and move relink and timeline fix
* relink optimisation
* inbox fix footer
* keep email drafts on pages not just forms
* email inbox add sent items
* email inbox allow not save list settings on query
* email inbox cleanup and remove communications recon
* add suspend sending button in email queue
* fix rebase error
* email inbox assorted fixes
* email inbox fixes and relink option only when linked otherwise link;
* email inbox fix sender fullname as administrator
* create user email to custom button
* email inbox sent no match and seen
* email inbox fix unicode issues with subject recipient and sender