X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/ddab48a5c0da11082de6fd3a530ee491f04aa19c..e190e1a6c056b96971229940ff0bb2aef3350c0c:/stgit/commands/mail.py diff --git a/stgit/commands/mail.py b/stgit/commands/mail.py index 9f4b3d1..a8819b5 100644 --- a/stgit/commands/mail.py +++ b/stgit/commands/mail.py @@ -117,7 +117,7 @@ def __parse_addresses(string): """Return a two elements tuple: (from, [to]) """ def __addr_list(string): - return re.split('.*?([\w\.]+@[\w\.]+)', string)[1:-1:2] + return re.split('.*?([-\w\.]+@[-\w\.]+)', string)[1:-1:2] from_addr_list = [] to_addr_list = []