mirror of https://github.com/djcb/mu.git
contact/display-name: quote "names" with '@'
Apparently, some mail servers want this, and gnus doesn't handle it automatically.
This commit is contained in:
parent
ecf87c5d82
commit
0bdab5ae06
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2022 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2022-2023 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify it
|
** 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
|
** under the terms of the GNU General Public License as published by the
|
||||||
|
@ -32,9 +32,9 @@ using namespace Mu;
|
||||||
std::string
|
std::string
|
||||||
Contact::display_name() const
|
Contact::display_name() const
|
||||||
{
|
{
|
||||||
auto needs_quoting= [](const std::string& n) {
|
const auto needs_quoting= [](const std::string& n) {
|
||||||
for (auto& c: n)
|
for (auto& c: n)
|
||||||
if (c == ',' || c == '"')
|
if (c == ',' || c == '"' || c == '@')
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue