From 2144797f0201b215179c8173505238ce18dcf36b Mon Sep 17 00:00:00 2001 From: "Bruno G. Albuquerque" Date: Thu, 26 Feb 2009 22:38:24 +0000 Subject: [PATCH] This fixes retrieval of email from IMAP servers. It seems there is a difference between the behaviour of BPath in R5 and Haiku (as this used to work in R5). More specifically: BPath blah("blah"); printf("%s\n", blah.Path()); It seems that in R5 it would print "blah" (untested as I don't have R5 anymore, but this code definitelly used to work). And in Haiku it prints "/currrent/path/blah". This fixed bug #3187. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29326 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/mail_daemon/system_filters/inbox/filter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/add-ons/mail_daemon/system_filters/inbox/filter.cpp b/src/add-ons/mail_daemon/system_filters/inbox/filter.cpp index 403e8ff5e6..8ec306181f 100644 --- a/src/add-ons/mail_daemon/system_filters/inbox/filter.cpp +++ b/src/add-ons/mail_daemon/system_filters/inbox/filter.cpp @@ -142,7 +142,7 @@ status_t FolderFilter::ProcessMailMessage(BPositionIO**io, BEntry* e, BMessage* else path.Append(string); } else if (loc != NULL && loc->Path() != NULL && strcmp(loc->Path(),"") != 0) // --- Don't append folder names to overridden paths - path.Append(loc->Path()); + path.Append(loc->Leaf()); create_directory(path.Path(),0777); dir.SetTo(path.Path());