{"action":"created","issue":{"url":"https://api.github.com/repos/neomutt/neomutt/issues/93","repository_url":"https://api.github.com/repos/neomutt/neomutt","labels_url":"https://api.github.com/repos/neomutt/neomutt/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/neomutt/neomutt/issues/93/comments","events_url":"https://api.github.com/repos/neomutt/neomutt/issues/93/events","html_url":"https://github.com/neomutt/neomutt/issues/93","id":168177221,"number":93,"title":"Open attachments in the background","user":{"login":"RichiH","id":754723,"avatar_url":"https://avatars.githubusercontent.com/u/754723?v=3","gravatar_id":"","url":"https://api.github.com/users/RichiH","html_url":"https://github.com/RichiH","followers_url":"https://api.github.com/users/RichiH/followers","following_url":"https://api.github.com/users/RichiH/following{/other_user}","gists_url":"https://api.github.com/users/RichiH/gists{/gist_id}","starred_url":"https://api.github.com/users/RichiH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RichiH/subscriptions","organizations_url":"https://api.github.com/users/RichiH/orgs","repos_url":"https://api.github.com/users/RichiH/repos","events_url":"https://api.github.com/users/RichiH/events{/privacy}","received_events_url":"https://api.github.com/users/RichiH/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/neomutt/neomutt/labels/devel","name":"devel","color":"0052cc"},{"url":"https://api.github.com/repos/neomutt/neomutt/labels/enhancement","name":"enhancement","color":"fbca04"}],"state":"open","locked":false,"assignee":{"login":"nuclearsandwich","id":358882,"avatar_url":"https://avatars.githubusercontent.com/u/358882?v=3","gravatar_id":"","url":"https://api.github.com/users/nuclearsandwich","html_url":"https://github.com/nuclearsandwich","followers_url":"https://api.github.com/users/nuclearsandwich/followers","following_url":"https://api.github.com/users/nuclearsandwich/following{/other_user}","gists_url":"https://api.github.com/users/nuclearsandwich/gists{/gist_id}","starred_url":"https://api.github.com/users/nuclearsandwich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuclearsandwich/subscriptions","organizations_url":"https://api.github.com/users/nuclearsandwich/orgs","repos_url":"https://api.github.com/users/nuclearsandwich/repos","events_url":"https://api.github.com/users/nuclearsandwich/events{/privacy}","received_events_url":"https://api.github.com/users/nuclearsandwich/received_events","type":"User","site_admin":false},"assignees":[{"login":"nuclearsandwich","id":358882,"avatar_url":"https://avatars.githubusercontent.com/u/358882?v=3","gravatar_id":"","url":"https://api.github.com/users/nuclearsandwich","html_url":"https://github.com/nuclearsandwich","followers_url":"https://api.github.com/users/nuclearsandwich/followers","following_url":"https://api.github.com/users/nuclearsandwich/following{/other_user}","gists_url":"https://api.github.com/users/nuclearsandwich/gists{/gist_id}","starred_url":"https://api.github.com/users/nuclearsandwich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuclearsandwich/subscriptions","organizations_url":"https://api.github.com/users/nuclearsandwich/orgs","repos_url":"https://api.github.com/users/nuclearsandwich/repos","events_url":"https://api.github.com/users/nuclearsandwich/events{/privacy}","received_events_url":"https://api.github.com/users/nuclearsandwich/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2016-07-28T19:30:20Z","updated_at":"2016-10-25T19:41:54Z","closed_at":null,"body":"It would be nice if neomutt could open an attachment in the background without blocking the main session until you close whatever program was used to open the attachement.\r\n\r\nYes, there are scripts to hack this in, but meh.\r\n\r\nPutting temp files into `/run/`, if it exists, would do away with the security and space considerations."},"comment":{"url":"https://api.github.com/repos/neomutt/neomutt/issues/comments/256153842","html_url":"https://github.com/neomutt/neomutt/issues/93#issuecomment-256153842","issue_url":"https://api.github.com/repos/neomutt/neomutt/issues/93","id":256153842,"user":{"login":"nuclearsandwich","id":358882,"avatar_url":"https://avatars.githubusercontent.com/u/358882?v=3","gravatar_id":"","url":"https://api.github.com/users/nuclearsandwich","html_url":"https://github.com/nuclearsandwich","followers_url":"https://api.github.com/users/nuclearsandwich/followers","following_url":"https://api.github.com/users/nuclearsandwich/following{/other_user}","gists_url":"https://api.github.com/users/nuclearsandwich/gists{/gist_id}","starred_url":"https://api.github.com/users/nuclearsandwich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuclearsandwich/subscriptions","organizations_url":"https://api.github.com/users/nuclearsandwich/orgs","repos_url":"https://api.github.com/users/nuclearsandwich/repos","events_url":"https://api.github.com/users/nuclearsandwich/events{/privacy}","received_events_url":"https://api.github.com/users/nuclearsandwich/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T19:41:54Z","updated_at":"2016-10-25T19:41:54Z","body":"> An option in the config and then always doing it that way might be better.\r\n\r\nThe caveat to \"always\" doing it is that attachments that do use terminal / text mode viewers still need to be synchronous. while re-reading rfc1524 yet again I actually noticed that custom flags are actually supported. There's probably a way to be \"smart\" about it but it wouldn't be without complication.\r\n\r\n>  Any other fields beginning with \"x-\" may be included for local or\r\n   mailer-specific extensions of this format.  Implementations should\r\n   simply ignore all such unrecognized fields to permit such extensions,\r\n   some of which might be standardized in a future version of this\r\n   document.\r\n\r\nI'm inclined toward the following solutions in descending order of enthusiasm\r\n\r\n1. a custom flag \"x-\" in the mailcap. This would allow us to maintain the mutt_launch interface as a mostly internal thing.\r\n\r\n2. specifically providing guidance to users on adding mutt_launch to their mailcap files when spawning a graphical application in in the background is desired. This means that users have to learn the mutt_launch (simple for now) interface as well as opt into background launching for each entry that uses a graphical program. This is exactly how mutt_bgrun works now, with the added feature of plugging file descriptor leaks and improving the handling of temp files.\r\n\r\n3. a config flag that when enabled opens all viewers in the background. I need to spend more time with the source to say with certainty whether or not this can be done well. The `use_pager` and `use_mailcap` flags give us some hints but I'm not sure if they'll be enough and think that this approach can be grown into from either of the more manual ones above."}}
{"actor":{"display_login":"nuclearsandwich"}}