{"action":"created","issue":{"url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/97","labels_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/97/comments","events_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/97/events","html_url":"https://github.com/fmbiete/Z-Push-contrib/issues/97","id":43334537,"number":97,"title":"Two accounts on one device","user":{"login":"jfedyczak","id":923346,"avatar_url":"https://avatars.githubusercontent.com/u/923346?v=3","gravatar_id":"","url":"https://api.github.com/users/jfedyczak","html_url":"https://github.com/jfedyczak","followers_url":"https://api.github.com/users/jfedyczak/followers","following_url":"https://api.github.com/users/jfedyczak/following{/other_user}","gists_url":"https://api.github.com/users/jfedyczak/gists{/gist_id}","starred_url":"https://api.github.com/users/jfedyczak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfedyczak/subscriptions","organizations_url":"https://api.github.com/users/jfedyczak/orgs","repos_url":"https://api.github.com/users/jfedyczak/repos","events_url":"https://api.github.com/users/jfedyczak/events{/privacy}","received_events_url":"https://api.github.com/users/jfedyczak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-09-21T13:04:38Z","updated_at":"2015-03-04T16:20:17Z","closed_at":null,"body":"Hi, I'm trying to setup Z-Push-contrib with IMAP backed. Everything works perfectly until I add second account on one device. Only one account works correctly. I'm seeing following errors in log:\r\n\r\n```\r\n21/09/2014 14:59:03 [12550] [INFO] [some@account] StateNotFoundException: FileStateMachine->GetState(): Could not locate state '/home/www/zpush-state2/g/j/905avdfedl5tb3idt6r3cjgljg-bs-1411304185' - code: 0\r\n21/09/2014 14:59:03 [12550] [WARN] [some@account] BackendIMAP->getImapIdFromFolderId('678de0d2') = not initialized!\r\n21/09/2014 14:59:03 [12550] [INFO] [some@account] StatusException: Folderid not found in cache - code: 12\r\n```\r\n\r\nI found quick'n'dirty workaround:\r\n```\r\nif (isset($_GET['DeviceId']) && isset($_GET['User']))\r\n\t$_GET['DeviceId'] = sha1($_GET['DeviceId'].\":\".$_GET['User']);\r\n```\r\n\r\nIs there any \"legit\" way to fix this? Some config option, I am missing?"},"comment":{"url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/comments/77189258","html_url":"https://github.com/fmbiete/Z-Push-contrib/issues/97#issuecomment-77189258","issue_url":"https://api.github.com/repos/fmbiete/Z-Push-contrib/issues/97","id":77189258,"user":{"login":"cacsa","id":6599967,"avatar_url":"https://avatars.githubusercontent.com/u/6599967?v=3","gravatar_id":"","url":"https://api.github.com/users/cacsa","html_url":"https://github.com/cacsa","followers_url":"https://api.github.com/users/cacsa/followers","following_url":"https://api.github.com/users/cacsa/following{/other_user}","gists_url":"https://api.github.com/users/cacsa/gists{/gist_id}","starred_url":"https://api.github.com/users/cacsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cacsa/subscriptions","organizations_url":"https://api.github.com/users/cacsa/orgs","repos_url":"https://api.github.com/users/cacsa/repos","events_url":"https://api.github.com/users/cacsa/events{/privacy}","received_events_url":"https://api.github.com/users/cacsa/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T16:20:17Z","updated_at":"2015-03-04T16:20:17Z","body":"Hi all,\r\n\r\nWhere is that workaround code placed? Which file? I have been searching all over for a fix on this same exact issue.\r\n\r\nThanks!"}}