{"action":"created","issue":{"url":"https://api.github.com/repos/jens-maus/yam/issues/210","repository_url":"https://api.github.com/repos/jens-maus/yam","labels_url":"https://api.github.com/repos/jens-maus/yam/issues/210/labels{/name}","comments_url":"https://api.github.com/repos/jens-maus/yam/issues/210/comments","events_url":"https://api.github.com/repos/jens-maus/yam/issues/210/events","html_url":"https://github.com/jens-maus/yam/issues/210","id":148649769,"number":210,"title":"Improved UIDL support and import.","user":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jens-maus/yam/labels/%23major","name":"#major","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/@normal","name":"@normal","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/fixed","name":"fixed","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/nightly%20build","name":"nightly build","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/TCP/IP","name":"TCP/IP","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/jens-maus/yam/milestones/1","html_url":"https://github.com/jens-maus/yam/milestones/YAM%202.7","labels_url":"https://api.github.com/repos/jens-maus/yam/milestones/1/labels","id":1708702,"number":1,"title":"YAM 2.7","description":"[[TicketQuery(milestone=YAM 2.7, order=resolution, desc=1, format=table, col=id|type|status|resolution|priority|summary)]]","creator":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":65,"state":"closed","created_at":"2016-04-15T10:18:45Z","updated_at":"2016-04-15T12:38:26Z","due_on":"2011-12-19T23:00:00Z","closed_at":"2016-04-15T10:18:45Z"},"comments":6,"created_at":"2016-04-15T12:38:24Z","updated_at":"2016-04-15T12:38:35Z","closed_at":null,"body":"**Originally by _opionline@yahoo.de_ on 2010-09-14 16:52:18 +0200**\n\n___\nI test the new UIDL support in YAM for some time now and\nas result i have 9 .uidl_... files in the YAM directory.\nIt seems all files contain the uidl's for the latest\nloaded mails. I have only one account configured which \nshould not delete the E-Mails on the Server.\n\nSo here my request:\nYAM should only write the .uidl_ files if 'Delete mail on server'\nis *not* enabled. I see no reason why YAM should write the .uidl_\nfile when this option is enabled.\n\nSuch .uidl_ file(s) produce a lot unnecessarily overhead.\n\nIf YAM is getting mails next time then it load the .uidl_ files\nfor every  account and check the content which must fail because\nthe mail(s) are already deleted on the server.\nSo here YAM loads 9 files but really necessary is only one.\n\nA check for such file before getting mails is ok because\nthe configuration may have been changed and the user now want\nto Delete the mails on the server.\n\nIf the .uidl_ file is finally empty (contain only the header)\nthen YAM should delete the .uidl_ file too.\n\nSummary: YAM sould only remember uidl's for mails which are\nreally still on any server.\n\n\nAdditional a improved import function for the old .uidl file\nwould be nice too. Before YAM 2.7 is going into the wild\nwe should think about a way to get rid of the old .uidl file.\nOtherwise YAM 2.7 and all later versions would still check for\nthe old .uidl file. Now we have the chance to change that.\n\nA possible way is maybe at the first start of YAM 2.7 to\ncheck the configuration and copy the old .uidl file into\nall new .uidl_... files which has 'Delete mail on server'\nnot enabled and delete the old uidl. file afterwards.\n\nNext time YAM is getting mails from this account(s) it\nshould delete not valid entries from the new .uidl_\nfile anyway and if it's ends in an empty file delete\nthe file. (see above)\n\n"},"comment":{"url":"https://api.github.com/repos/jens-maus/yam/issues/comments/210448293","html_url":"https://github.com/jens-maus/yam/issues/210#issuecomment-210448293","issue_url":"https://api.github.com/repos/jens-maus/yam/issues/210","id":210448293,"user":{"login":"jens-maus","id":5887769,"avatar_url":"https://avatars.githubusercontent.com/u/5887769?v=3","gravatar_id":"","url":"https://api.github.com/users/jens-maus","html_url":"https://github.com/jens-maus","followers_url":"https://api.github.com/users/jens-maus/followers","following_url":"https://api.github.com/users/jens-maus/following{/other_user}","gists_url":"https://api.github.com/users/jens-maus/gists{/gist_id}","starred_url":"https://api.github.com/users/jens-maus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jens-maus/subscriptions","organizations_url":"https://api.github.com/users/jens-maus/orgs","repos_url":"https://api.github.com/users/jens-maus/repos","events_url":"https://api.github.com/users/jens-maus/events{/privacy}","received_events_url":"https://api.github.com/users/jens-maus/received_events","type":"User","site_admin":false},"created_at":"2016-04-15T12:38:35Z","updated_at":"2016-04-15T12:38:35Z","body":"**Originally by _opionline@yahoo.de_ on 2010-09-22 02:36:46 +0200**\n\n___\nMy examples show only what YAM does and it show not that YAM\nshould the 'QUIT' command in any case.\n\nIf YAM has no possibility to find out if the connection is closed or not\nand it's easier to send a 'QUIT' command against a closed connection to\nfind out that the connection is closed then it should be OK to do so.\n\nThe main point is to not show an error for this case, which seems to be\ndone now. Thanks for that.\n\n\nBTW: IIRC a way to find out if a connection is closed was if recv()\nresponse with 0 or -1 (i dont know anymore). But the way YAM goes should\ndo the same without a possible timeout from the socket.\n"}}