{"action":"created","issue":{"url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/130","labels_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/130/comments","events_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/130/events","html_url":"https://github.com/fmbiete/Z-Push-contrib/issues/130","id":54008775,"number":130,"title":"Unable to fetch imap folder (inbox) contents : looping error :   [INFO] ExportChangesDiff->InitializeExporter(): Found '5' changes","user":{"login":"extremeshok","id":5957328,"avatar_url":"https://avatars.githubusercontent.com/u/5957328?v=3","gravatar_id":"","url":"https://api.github.com/users/extremeshok","html_url":"https://github.com/extremeshok","followers_url":"https://api.github.com/users/extremeshok/followers","following_url":"https://api.github.com/users/extremeshok/following{/other_user}","gists_url":"https://api.github.com/users/extremeshok/gists{/gist_id}","starred_url":"https://api.github.com/users/extremeshok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/extremeshok/subscriptions","organizations_url":"https://api.github.com/users/extremeshok/orgs","repos_url":"https://api.github.com/users/extremeshok/repos","events_url":"https://api.github.com/users/extremeshok/events{/privacy}","received_events_url":"https://api.github.com/users/extremeshok/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-11T23:03:06Z","updated_at":"2015-01-11T23:06:36Z","closed_at":null,"body":"Hi\r\n\r\nThis is a new install of Zpush using the latest git on centos 6.5 with php 5.6 with all dependencies, remote imap server is dovecot, all firewalls were disabled.\r\n\r\nTo the best of my knowledge everything is correctly configured for the imap backend.\r\n\r\nI am unable to get any email to display on my devices, ie blank inbox.\r\nSending of emails is working, however there is an error that the email cannot be saved to the sent forlder.\r\n\r\nError /var/www/z-push-contrib/logs/z-push.log\r\nThe below email messages loop continuously.\r\n```\r\n11/01/2015 23:00:19 [ 8695] [INFO] [***removed email***] ExportChangesDiff->InitializeExporter(): Found '5' changes\r\n11/01/2015 23:00:20 [ 8686] [INFO] [***removed email***] Version='SVN-trunk-r1931' method='POST' from='196.210.207.241' cmd='FolderSync' getUser='usertwo@nex.co.za' devId='0d767ed8cad94e609166cc143838862e' devType='WindowsOutlook'\r\n11/01/2015 23:00:20 [ 8686] [INFO] [***removed email***] ExportChangesDiff->InitializeExporter(): Found '5' changes\r\n```\r\n\r\nI have run the following with success:\r\n\r\n./list_imap_folders.pl -S ****removed server address****':993/******removed email*****/****removed password*****\r\n```\r\nArchive\r\nDrafts\r\nINBOX\r\nINBOX/CentOS-announce\r\nJunk\r\nSent\r\nTrash\r\n```\r\n\r\nphp -f testing-imap_smtp.php\r\n\r\n\r\nphp -f testing-imap_date.php \r\n```\r\n#87 (Wed, 7 Jan 2015 22:45:41 +0000) - From: Johnny Hughes <johnny@centos.org> [CentOS-announce] CESA-2015:0016 Moderate CentOS 6 glibc Security Update\r\nChecking if the messages is withing the cutoffdate 1420411828, 91INSIDE\r\n#88 (Thu, 8 Jan 2015 15:01:08 +0000) - From: Johnny Hughes <johnny@centos.org> [CentOS-announce] CEBA-2015:0017 CentOS 7 libibverbs BugFix Update\r\nChecking if the messages is withing the cutoffdate 1420411828, 92INSIDE\r\n#89 (Thu, 8 Jan 2015 15:01:20 +0000) - From: Johnny Hughes <johnny@centos.org> [CentOS-announce] CEBA-2015:0017 CentOS 7 libmlx4 BugFix Update\r\nChecking if the messages is withing the cutoffdate 1420411828, 93INSIDE\r\n#90 (Thu, 8 Jan 2015 15:02:17 +0000) - From: Johnny Hughes <johnny@centos.org> [CentOS-announce] CEBA-2015:0018 CentOS 6 sblim-sfcb BugFix Update\r\nChecking if the messages is withing the cutoffdate 1420411828, 94INSIDE\r\n```\r\n\r\nconfig.php\r\n```\r\n    define('TIMEZONE', 'UTC');\r\n    define('BASE_PATH', dirname($_SERVER['SCRIPT_FILENAME']). '/');\r\n    define('SCRIPT_TIMEOUT', 0);\r\n    define('USE_X_FORWARDED_FOR_HEADER', false);\r\n    define(\"CERTIFICATE_OWNER_PARAMETER\", \"SSL_CLIENT_S_DN_CN\");\r\n    define('USE_FULLEMAIL_FOR_LOGIN', true);\r\n    define('PRE_AUTHORIZE_USERS', false);\r\n    define('PRE_AUTHORIZE_NEW_USERS', false);\r\n    define('PRE_AUTHORIZE_NEW_DEVICES', false);\r\n    define('PRE_AUTHORIZE_MAX_DEVICES', 5);\r\n    define('STATE_MACHINE', 'FILE');\r\n    define('STATE_DIR', '/var/www/z-push-contrib/private/');\r\n    define('STATE_SQL_DSN', '');\r\n    define('STATE_SQL_USER', '');\r\n    define('STATE_SQL_PASSWORD', '');\r\n    define('STATE_SQL_OPTIONS', serialize(array(PDO::ATTR_PERSISTENT => true)));\r\n    define('LOGFILEDIR', '/var/www/z-push-contrib/logs/');\r\n    define('LOGFILE', LOGFILEDIR . 'z-push.log');\r\n    define('LOGERRORFILE', LOGFILEDIR . 'z-push-error.log');\r\n    define('LOGLEVEL', LOGLEVEL_INFO);\r\n    define('LOGAUTHFAIL', false);\r\n    define('LOGUSERLEVEL', LOGLEVEL_DEVICEID);\r\n    $specialLogUsers = array(\"****removed email*****\");\r\n    define('PROVISIONING', false);\r\n    define('LOOSE_PROVISIONING', false);\r\n    define('SYNC_CONFLICT_DEFAULT', SYNC_CONFLICT_OVERWRITE_PIM);\r\n    define('SYNC_FILTERTIME_MAX', SYNC_FILTERTYPE_ALL);\r\n    define('PING_INTERVAL', 30);\r\n    define('SINK_FORCERECHECK', 300);\r\n    define('FILEAS_ORDER', SYNC_FILEAS_LASTFIRST);\r\n    define('SYNC_MAX_ITEMS', 100);\r\n    define('UNSET_UNDEFINED_PROPERTIES', false);\r\n    define('SYNC_CONTACTS_MAXPICTURESIZE', 49152);\r\n    define('ALLOW_WEBSERVICE_USERS_ACCESS', false);\r\n    define('BACKEND_PROVIDER', 'BackendIMAP');\r\n    define('SEARCH_PROVIDER', '');\r\n    define('SEARCH_WAIT', 10);\r\n    define('SEARCH_MAXRESULTS', 10);\r\n    define('MAX_EMBEDDED_SIZE', 10485760);\r\n```\r\n\r\nbackend/imap/config.php\r\n```\r\ndefine('IMAP_SERVER', '****removed server address****');\r\ndefine('IMAP_PORT', '993');\r\ndefine('IMAP_OPTIONS', '/ssl/norsh');\r\ndefine('IMAP_DEFAULTFROM', 'username');\r\ndefine('IMAP_FOLDER_ROOT', 'INBOX');\r\ndefine('IMAP_FOLDER_SENT', 'Sent');\r\ndefine('IMAP_FOLDER_DRAFT', 'Drafts');\r\ndefine('IMAP_FOLDER_TRASH', 'Trash');\r\ndefine('IMAP_INLINE_FORWARD', true);\r\ndefine('IMAP_EXCLUDED_FOLDERS', '');\r\ndefine('IMAP_PREFIX_SHARED_FOLDERS', '');\r\ndefine('IMAP_SMTP_METHOD', 'smtp');\r\nglobal $imap_smtp_params;\r\n$imap_smtp_params = array('host' => 'ssl://****removed server address****', 'port' => 465, 'auth' => true, 'username' => 'imap_username', 'password' => 'imap_password');\r\ndefine('MAIL_MIMEPART_CRLF', \"\\r\\n\");        \r\n```"},"comment":{"url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/comments/69516596","html_url":"https://github.com/fmbiete/Z-Push-contrib/issues/130#issuecomment-69516596","issue_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/130","id":69516596,"user":{"login":"extremeshok","id":5957328,"avatar_url":"https://avatars.githubusercontent.com/u/5957328?v=3","gravatar_id":"","url":"https://api.github.com/users/extremeshok","html_url":"https://github.com/extremeshok","followers_url":"https://api.github.com/users/extremeshok/followers","following_url":"https://api.github.com/users/extremeshok/following{/other_user}","gists_url":"https://api.github.com/users/extremeshok/gists{/gist_id}","starred_url":"https://api.github.com/users/extremeshok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/extremeshok/subscriptions","organizations_url":"https://api.github.com/users/extremeshok/orgs","repos_url":"https://api.github.com/users/extremeshok/repos","events_url":"https://api.github.com/users/extremeshok/events{/privacy}","received_events_url":"https://api.github.com/users/extremeshok/received_events","type":"User","site_admin":false},"created_at":"2015-01-11T23:06:36Z","updated_at":"2015-01-11T23:06:36Z","body":"The following is seen on the imap (dovecot) server\r\n```\r\nJan 11 23:05:18 imap-login: Info: Login: user=<***removed email***>, method=PLAIN, rip=192.99.99.8, lip=198.27.88.135, mpid=17797, TLS, session=<zc1tbGgM3QDAY2MI>\r\nJan 11 23:05:18 imap(***removed email***): Info: Disconnected: Logged out in=55 out=854\r\nJan 11 23:05:19 imap-login: Info: Login: user=<***removed email***>, method=PLAIN, rip=192.99.99.8, lip=198.27.89.106, mpid=17805, TLS, session=<EtFzbGgMugDAY2MI>\r\nJan 11 23:05:19 imap(***removed email***): Info: Disconnected: Logged out in=55 out=854\r\nJan 11 23:05:19 imap-login: Info: Login: user=<***removed email***>, method=PLAIN, rip=192.99.99.8, lip=198.27.88.135, mpid=17807, TLS, session=<mn96bGgM6QDAY2MI>\r\nJan 11 23:05:19 imap(***removed email***): Info: Disconnected: Logged out in=55 out=854\r\nJan 11 23:05:20 imap-login: Info: Login: user=<***removed email***>, method=PLAIN, rip=192.99.99.8, lip=198.27.89.106, mpid=17809, TLS, session=<7HaAbGgMvgDAY2MI>\r\nJan 11 23:05:20 imap(***removed email***): Info: Disconnected: Logged out in=55 out=854\r\n```"}}