-
Notifications
You must be signed in to change notification settings - Fork 391
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contact/display-name: quote "names" with '@'
Apparently, some mail servers want this, and gnus doesn't handle it automatically.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/* | ||
** Copyright (C) 2022 Dirk-Jan C. Binnema <[email protected]> | ||
** Copyright (C) 2022-2023 Dirk-Jan C. Binnema <[email protected]> | ||
** | ||
** This program is free software; you can redistribute it and/or modify it | ||
** under the terms of the GNU General Public License as published by the | ||
|
@@ -32,9 +32,9 @@ using namespace Mu; | |
std::string | ||
Contact::display_name() const | ||
{ | ||
auto needs_quoting= [](const std::string& n) { | ||
const auto needs_quoting= [](const std::string& n) { | ||
for (auto& c: n) | ||
if (c == ',' || c == '"') | ||
if (c == ',' || c == '"' || c == '@') | ||
return true; | ||
return false; | ||
}; | ||
|