From 08eedf6c5bcc94548c888d68bec6bc058b0df8f1 Mon Sep 17 00:00:00 2001 From: "Bruno G. Albuquerque" Date: Mon, 20 Jul 2009 11:30:39 +0000 Subject: [PATCH] - Remove error reporting when we can not open the inbox directory to read the manifest from it. This is a common condition on the first run. - Added a comment about this. This fixes ticket #2133. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31650 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/mail/MailProtocol.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/kits/mail/MailProtocol.cpp b/src/kits/mail/MailProtocol.cpp index a107fe9135..f392f2b373 100644 --- a/src/kits/mail/MailProtocol.cpp +++ b/src/kits/mail/MailProtocol.cpp @@ -171,6 +171,10 @@ BMailProtocol::BMailProtocol(BMessage *settings, BMailChainRunner *run) if (runner->Chain()->MetaData()->HasString("path")) { BNode node(runner->Chain()->MetaData()->FindString("path")); if (node.InitCheck() >= B_OK) { + // We already have a directory so we can try to read metadata + // from it. Note that it is normal for this directory not to + // be founf on the first run as it will be later created by + // the INBOX system filter. attr_info info; if (node.GetAttrInfo(attr_name.String(),&info) < B_OK) { if (runner->Chain()->MetaData()->FindFlat("manifest", manifest) == B_OK) { @@ -183,7 +187,7 @@ BMailProtocol::BMailProtocol(BMessage *settings, BMailChainRunner *run) manifest->Unflatten(manifest->TypeCode(),flatmanifest,info.size); free(flatmanifest); } - } else runner->ShowError("Error while reading account manifest: cannot use destination directory."); + } } else runner->ShowError("Error while reading account manifest: no destination directory exists."); }