[PATCH v3 7/7] send-email: suppress leading and trailing whitespaces before alias expansion
- From
Remi Lespinet <remi.lespinet@ensimag.grenoble-inp.fr>
- Date
- Jun 10, 2015, 09:30 UTC
- Message-ID
- <1281238070.338321.1433928615479.JavaMail.zimbra@ensimag.grenoble-inp.fr>
- In-Reply-To
- <vpqa8w89d5x.fsf@anie.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
> Actually, once you have this, PATCH 6/7 becomes useless, right? (at > least, the test passes if I revert it)
> It seems to me that doing this space trimming just once, inside or right > after split_at_commas would be clearer.
You're right, I put it twice because of there's occurrences of sanitize_address which are not associated with expand_aliases, but it seems that it's all taken care of separately in different regexp. So there's no point to 6/7.
I agree, I'd like to put it right after split_at_commas in a separate function "trim_list". Is it a good idea even if the function is one line long ?