{"action":"created","issue":{"url":"https://api.github.com/repos/jens-maus/yam/issues/107","repository_url":"https://api.github.com/repos/jens-maus/yam","labels_url":"https://api.github.com/repos/jens-maus/yam/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/jens-maus/yam/issues/107/comments","events_url":"https://api.github.com/repos/jens-maus/yam/issues/107/events","html_url":"https://github.com/jens-maus/yam/issues/107","id":148488910,"number":107,"title":"ARexx - MAILIMPORT / MAILEXPORT : return FILENAME","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/@undecided","name":"@undecided","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/ARexx","name":"ARexx","color":"ededed"},{"url":"https://api.github.com/repos/jens-maus/yam/labels/enhancement","name":"enhancement","color":"84b6eb"}],"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/7","html_url":"https://github.com/jens-maus/yam/milestones/YAM%20future%20release","labels_url":"https://api.github.com/repos/jens-maus/yam/milestones/7/labels","id":1707623,"number":7,"title":"YAM future release","description":"Pool of tickets which are going to be implemented in one of the next releases of YAM.\r\n\r\nThe tickets in this milestone have the endorsement of the YAM developers:\r\n- their priority is a rough indicator of the schedule, from highest (soon) to lowest (long term goal)\r\n- their severity is an indicator of the impact of the ticket on YAM\r\n\r\nAs soon as a new release milestone is planned (YAM X.X) tickets will be moved from here to the new target milestone to define which tickets need to be closed until a release can be performed.\r\n\r\n[[TicketQuery(milestone=YAM future release, 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":23,"closed_issues":0,"state":"open","created_at":"2016-04-14T20:13:10Z","updated_at":"2016-04-14T21:37:29Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-04-14T21:37:27Z","updated_at":"2016-04-14T21:37:33Z","closed_at":null,"body":"**Originally by _AmigaPhil@scarlet.be_ on 2010-03-04 22:40:41 +0100**\n\n___\nThis feature has already been partially discussed, but the issue is still a blocker problem for me: I can't operate on freshly imported mails because I found no way to identify those mails.\n\nMy suggestion is to allow the MAILIMPORT to return:\n\n - the INDEX of the last imported mail,\n - VAR/K as alternative variable for result,\n - <STEM>COUNT : number of imported mails <STEM>NR : the INDEX of the imported mail where NR is a value between 0 and COUNT-1\n\nThe same extension could be implemented to MAILEXPORT as well, as it can help, for example, to delete or change status of exported mails.\n"},"comment":{"url":"https://api.github.com/repos/jens-maus/yam/issues/comments/210159712","html_url":"https://github.com/jens-maus/yam/issues/107#issuecomment-210159712","issue_url":"https://api.github.com/repos/jens-maus/yam/issues/107","id":210159712,"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-14T21:37:32Z","updated_at":"2016-04-14T21:37:32Z","body":"**Originally by _amigaphil_ on 2010-03-04 22:43:05 +0100**\n\n___\n(Sorry to ask a question here, but I got no reply to my subscription request for the user list.)\n\nThe \"workaround\" I explained in my previous comment (checking all MSGID to find the newer one) is barely acceptable when importing only a few mails, but is a PITA when importing hundreds mails (the script run almost exponentially slower, depending of the sort order of the mails in the import folder).\n\nAnother approach which sounds way much better is :\n\n 1. NEWMAILFILE to get the futur filename of a new mail,\n 1. MAILIMPORT to import one mail,\n 1. SETMAILFILE to make the imported mail the current one,\n 1. MAILSTATUS to change the status of that mail.\n\nNow the question is: Is it safe ? Can I rely that the filename returned by NEWMAILFILE will for sure be the one of the imported mail ? (If so, it will solve the problem I'm faced with and I'll close/delete this feature request.)\n"}}