summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-10-22 07:27:35 (GMT)
committerMontel Laurent <montel@kde.org>2016-10-22 07:27:35 (GMT)
commitbacb2c706c89b2601e6cc0cd48a6325ece10fd58 (patch)
tree39d0ecc3ffefbf0b90a73c519cd46d4c10ad8979
parent21c23de7a836787ea7ba0e758c585cc6d47d2e87 (diff)
Add info about invalid address
-rw-r--r--src/kmime_headers.cpp2
-rw-r--r--src/kmime_types.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/kmime_headers.cpp b/src/kmime_headers.cpp
index b9ac44c..314041b 100644
--- a/src/kmime_headers.cpp
+++ b/src/kmime_headers.cpp
@@ -283,7 +283,7 @@ static bool stringToMailbox(const QByteArray &address,
const char *cursor = address.constData();
if (!parseAngleAddr(cursor, cursor + address.length(), addrSpec)) {
if (!parseAddrSpec(cursor, cursor + address.length(), addrSpec)) {
- qWarning() << "Invalid address";
+ qWarning() << "stringToMailbox: Invalid address";
return false;
}
}
diff --git a/src/kmime_types.cpp b/src/kmime_types.cpp
index 195d7ec..a4e66f5 100644
--- a/src/kmime_types.cpp
+++ b/src/kmime_types.cpp
@@ -136,7 +136,7 @@ void Mailbox::setAddress(const QByteArray &addr)
cursor + addr.length(), mAddrSpec)) {
if (!HeaderParsing::parseAddrSpec(cursor, cursor + addr.length(),
mAddrSpec)) {
- qWarning() << "Invalid address";
+ qWarning() << "Mailbox: Invalid address";
return;
}
}