OK, spent a lot of time but I think it's worth.
Sugar 5.0, as 4.5.x did already, checks ALL IMAP Folders of your mail server.
Additional it tries to cache all emails from this folders.
Our Email server has about 2500 folders each of them with about 10 to 2000 emails.
When you push "SAVE" button in Mail Accounts Settings, Sugar tries to read all folders and to cache all emails.
Nice job, as every time something changes on the mail server, Sugar restarts this job.
So you can wait till the day the cows come home (german: St.Nimmerleinstag).
I made a small change in module/inboundEmail/InbauondEmail.php line ~5500
Code:
$delimiter = '.';
// clean MBOX path names
foreach($boxes as $k => $mbox) {
//KUSKE
$raw_boxname = str_replace($serviceString, "", $mbox->name);
$GLOBALS['log']->debug("***INBOUNDEMAIL: BOX: ".print_r($raw_boxname,true));
if ( ($raw_boxname == "INBOX")
or ($raw_boxname == "Postausgang")
or ($raw_boxname == "Gesendete Objekte") )
{
//KUSKE
$raw[] = str_replace($serviceString, "", $mbox->name);
if ($mbox->delimiter) {
$delimiter = $mbox->delimiter;
}
//KUSKE
}
//KUSKE
} If the (german) foldernames do not match, you can look to your logfile for a complete list of all folders if debuglevel is set to "debug".
After this change only the selected folders are cached in sugar and there is no problem any more.
hk
Bookmarks