Skip to content

Commit

Permalink
contact/display-name: quote "names" with '@'
Browse files Browse the repository at this point in the history
Apparently, some mail servers want this, and gnus doesn't handle it
automatically.
  • Loading branch information
djcb committed Jun 12, 2023
1 parent ecf87c5 commit 0bdab5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/message/mu-contact.cc
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
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit 0bdab5a

Please sign in to comment.