New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download emails in 3.0.2 after upgrade from 2.3.6 #66
Comments
I have the same problem in line near 169 "$account_id = Email_Account::getAccountID($config['username'], $config['hostname'], $config['mailbox']);" it always return 0. I've hardcoded the id. In the database is 1 for the only one email account configured. (POP3) My eventum 3.02 is a clean installation. |
care to make patch (as pull-request) with proper fix? |
I've found the issue and can write something up, any preference as to the solution: The issue is caused when using POP accounts, there is no folder. Because $config['mailbox'] is null, however the database contains '' (probably a legacy issue) Eg. Quick fix for affected users: If you go and edit each of the email account settings and save them, the current page stores NULL (this fixes the issue) Options:
Other ideas? |
i think safest is to change sql query. ping @balsdorf |
I'd go with 3. If $mailbox is null, don't include it in the where clause. |
… reflect location change of cron jobs
merged. thanks! i guess it got broken with this commit: 822a32a |
download_emails.php calls Email_Account::getAccountID (on line 172) and it returns 0 after an upgrade from 2.3.6. DB_Helper::getInstance()->getOne() is returning null within that function. Executing the SQL from getAccountID returns the correct result when executed manually. (See comment 4 for clarification)
download_emails.php was called with only a user and host (not folder) as my accounts are using POP3.
I'll try and trace it further, for now I have hard-coded the account ID's for my accounts. After hard-coding, the balance of the script is working correctly.
Also the UPGRADE doc should be updated to point out the cron scripts moved from the crons folder to the bin folder.
The text was updated successfully, but these errors were encountered: