message: avoid shadowing variable

This commit is contained in:
Dirk-Jan C. Binnema 2022-05-14 12:46:36 +03:00
parent af25799552
commit bf9e083ed4
1 changed files with 2 additions and 2 deletions

View File

@ -294,9 +294,9 @@ extract_tags(const MimeMessage& mime_msg)
std::vector<std::string> tags;
seq_for_each(tag_headers, [&](auto&& item) {
if (auto&& hdr = mime_msg.header(item.first); hdr) {
for (auto&& item : split(*hdr, item.second)) {
for (auto&& tagval : split(*hdr, item.second)) {
tags.emplace_back(
std::regex_replace(item, strip_rx, "$1"));
std::regex_replace(tagval, strip_rx, "$1"));
}
}
});