mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-31 14:33:54 -04:00
Add another place where trailing spaces are stripped from destination addresses
This commit is contained in:
parent
48d08139de
commit
c500ddc535
@ -147,7 +147,7 @@ class EmailAccounts(QAbstractTableModel): # {{{
|
||||
elif col == 1:
|
||||
self.accounts[account][0] = re.sub(',+', ',', re.sub(r'\s+', ',', as_unicode(value or '').upper()))
|
||||
elif col == 0:
|
||||
na = as_unicode(value or '')
|
||||
na = as_unicode(value or '').strip()
|
||||
from email.utils import parseaddr
|
||||
addr = parseaddr(na)[-1]
|
||||
if not addr or '@' not in na:
|
||||
|
Loading…
x
Reference in New Issue
Block a user