Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Quote names in emails if necessary#98

Merged
dscho merged 1 commit intogitgitgadget:mastergitgitgadget/gitgitgadget:masterfrom
dscho:brian-m-carlsondscho/gitgitgadget:brian-m-carlsonCopy head branch name to clipboard
Jun 26, 2019
Merged

Quote names in emails if necessary#98
dscho merged 1 commit intogitgitgadget:mastergitgitgadget/gitgitgadget:masterfrom
dscho:brian-m-carlsondscho/gitgitgadget:brian-m-carlsonCopy head branch name to clipboard

Conversation

@dscho
Copy link
Member

@dscho dscho commented Jun 25, 2019

Hopefully this fixes the problem that prevented the mails from gitgitgadget/git#151 to be delivered correctly.

If only vger provided better diagnostics to us.

This is not actually legal in emails (even if such emails are accepted
in many cases, vger.kernel.org does not):

	Cc: brian m. carlson <sandals@crustytoothpaste.net>

Due to the `.`, the name needs to be quoted.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Member Author

dscho commented Jun 25, 2019

@sunshineco could I ask you to review this?

@dscho dscho requested a review from derrickstolee June 25, 2019 14:42
});

test("sender name with a dot in it is enclosed in double quotes", () => {
const withDots = "wile e. coyote <coyote@desert.net>";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An excellent test!

@dscho dscho merged commit 364d839 into gitgitgadget:master Jun 26, 2019
@dscho dscho deleted the brian-m-carlson branch June 26, 2019 13:18
@sunshineco
Copy link

Are we confident that only period is problematic in the name? My quick scan of RFC2822 §3.2.1 suggests that there are several other characters which might be problematic for vger.

Why not take the simpler approach of quoting the name unconditionally rather than doing so only if it contains a period? (Or, perhaps quote it only if it does not already appear to be quoted -- by checking if the first character is a double quote.)

Aside from the potential fragility of triggering only on period, the patch itself looks okay.

@dscho
Copy link
Member Author

dscho commented Jun 28, 2019

My quick scan of RFC2822 §3.2.1 suggests that there are several other characters which might be problematic for vger.

That's a good point. I tried to address this in #99.

Why not take the simpler approach of quoting the name unconditionally rather than doing so only if it contains a period?

I really dislike unnecessary quoting. That would land you in quoting hell. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.