[PATCH] patchbomb: treat address of "none" as no addresses
Augie Fackler
raf at durin42.com
Tue Jan 5 11:47:16 CST 2016
> On Jan 5, 2016, at 10:23 AM, Yuya Nishihara <yuya at tcha.org> wrote:
>
> On Mon, 04 Jan 2016 21:56:17 -0800, Bryan O'Sullivan wrote:
>> # HG changeset patch
>> # User Bryan O'Sullivan <bos at serpentine.com>
>> # Date 1451973286 28800
>> # Mon Jan 04 21:54:46 2016 -0800
>> # Node ID 5f9f47b07d59c1c86936e4e4bdb8764f7ce3b9b0
>> # Parent 09ce74e1f92f8838bbcd2ac1309519f0448ffbed
>> patchbomb: treat address of "none" as no addresses
>>
>> Previously it wasn't possible to use configuration to avoid
>> being prompted for e.g. a CC list when using patchbomb to send
>> emails.
>>
>> diff --git a/hgext/patchbomb.py b/hgext/patchbomb.py
>> --- a/hgext/patchbomb.py
>> +++ b/hgext/patchbomb.py
>> @@ -35,7 +35,14 @@ configuration file::
>> Use ``[patchbomb]`` as configuration section name if you need to
>> override global ``[email]`` address settings.
>>
>> -Then you can use the :hg:`email` command to mail a series of
>> +To indicate no email addresses in the ``to`` or ``cc`` field, use
>> +``none``::
>> +
>> + [email]
>> + to = some-list at example.org
>> + cc = none
>
> "none" can be a username, so it can be a valid local email address in theory.
I’m not inclined to worry about that. In theory people could use the full @host form instead?
(I literally can’t remember I sent email without an @domain and had it arrive, though I know I used to.)
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20160105/8abbb851/attachment.pgp>
More information about the Mercurial-devel
mailing list