{"action":"opened","number":718,"pull_request":{"url":"https://api.github.com/repos/djcb/mu/pulls/718","id":53062932,"html_url":"https://github.com/djcb/mu/pull/718","diff_url":"https://github.com/djcb/mu/pull/718.diff","patch_url":"https://github.com/djcb/mu/pull/718.patch","issue_url":"https://api.github.com/repos/djcb/mu/issues/718","number":718,"state":"open","locked":false,"title":"mu4e-headers: Add hook executed when we're opening bookmarks","user":{"login":"avar","id":45301,"avatar_url":"https://avatars.githubusercontent.com/u/45301?v=3","gravatar_id":"","url":"https://api.github.com/users/avar","html_url":"https://github.com/avar","followers_url":"https://api.github.com/users/avar/followers","following_url":"https://api.github.com/users/avar/following{/other_user}","gists_url":"https://api.github.com/users/avar/gists{/gist_id}","starred_url":"https://api.github.com/users/avar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avar/subscriptions","organizations_url":"https://api.github.com/users/avar/orgs","repos_url":"https://api.github.com/users/avar/repos","events_url":"https://api.github.com/users/avar/events{/privacy}","received_events_url":"https://api.github.com/users/avar/received_events","type":"User","site_admin":false},"body":"I'm using this for a rather nasty hack. When I open different bookmarks\r\nin the mu4e-main view I want to set options for them, currently just\r\ntweaking:\r\n\r\n    * mu4e-headers-show-threads\r\n    * mu4e-headers-include-related\r\n    * mu4e-headers-skip-duplicates\r\n    * mu4e-headers-results-limit\r\n\r\nThis is because some of my searches are *really* expensive when I\r\ninclude related threads (huge batches of cron-generated E-Mails), but\r\nsome aren't. I couldn't find another way to do this. Using\r\nmu4e-headers-mode-hook doesn't work, because we don't have access to the\r\nsearch (just a variable showing the last search).\r\n\r\nAlso maybe we should be passing the actual key chord for the bookmark\r\nhere. I don't care since I look up the search string that'll be executed\r\nand go from there, but maybe that interface would make more sense.\r\n\r\nBut whatever, this works for me, and solves a real use-case.","created_at":"2015-12-09T00:59:25Z","updated_at":"2015-12-09T00:59:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b74095fcdcb305f34387f141d10e97bc98996edd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/djcb/mu/pulls/718/commits","review_comments_url":"https://api.github.com/repos/djcb/mu/pulls/718/comments","review_comment_url":"https://api.github.com/repos/djcb/mu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/djcb/mu/issues/718/comments","statuses_url":"https://api.github.com/repos/djcb/mu/statuses/4f83ab0f9430f0af1e6d3adbfc9a9591dddb8867","head":{"label":"avar:avar/mu4e-headers-search-bookmark-hook","ref":"avar/mu4e-headers-search-bookmark-hook","sha":"4f83ab0f9430f0af1e6d3adbfc9a9591dddb8867","user":{"login":"avar","id":45301,"avatar_url":"https://avatars.githubusercontent.com/u/45301?v=3","gravatar_id":"","url":"https://api.github.com/users/avar","html_url":"https://github.com/avar","followers_url":"https://api.github.com/users/avar/followers","following_url":"https://api.github.com/users/avar/following{/other_user}","gists_url":"https://api.github.com/users/avar/gists{/gist_id}","starred_url":"https://api.github.com/users/avar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avar/subscriptions","organizations_url":"https://api.github.com/users/avar/orgs","repos_url":"https://api.github.com/users/avar/repos","events_url":"https://api.github.com/users/avar/events{/privacy}","received_events_url":"https://api.github.com/users/avar/received_events","type":"User","site_admin":false},"repo":{"id":46429922,"name":"mu","full_name":"avar/mu","owner":{"login":"avar","id":45301,"avatar_url":"https://avatars.githubusercontent.com/u/45301?v=3","gravatar_id":"","url":"https://api.github.com/users/avar","html_url":"https://github.com/avar","followers_url":"https://api.github.com/users/avar/followers","following_url":"https://api.github.com/users/avar/following{/other_user}","gists_url":"https://api.github.com/users/avar/gists{/gist_id}","starred_url":"https://api.github.com/users/avar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avar/subscriptions","organizations_url":"https://api.github.com/users/avar/orgs","repos_url":"https://api.github.com/users/avar/repos","events_url":"https://api.github.com/users/avar/events{/privacy}","received_events_url":"https://api.github.com/users/avar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avar/mu","description":"maildir indexer/searcher + emacs mail client + guile bindings","fork":true,"url":"https://api.github.com/repos/avar/mu","forks_url":"https://api.github.com/repos/avar/mu/forks","keys_url":"https://api.github.com/repos/avar/mu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avar/mu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avar/mu/teams","hooks_url":"https://api.github.com/repos/avar/mu/hooks","issue_events_url":"https://api.github.com/repos/avar/mu/issues/events{/number}","events_url":"https://api.github.com/repos/avar/mu/events","assignees_url":"https://api.github.com/repos/avar/mu/assignees{/user}","branches_url":"https://api.github.com/repos/avar/mu/branches{/branch}","tags_url":"https://api.github.com/repos/avar/mu/tags","blobs_url":"https://api.github.com/repos/avar/mu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avar/mu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avar/mu/git/refs{/sha}","trees_url":"https://api.github.com/repos/avar/mu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avar/mu/statuses/{sha}","languages_url":"https://api.github.com/repos/avar/mu/languages","stargazers_url":"https://api.github.com/repos/avar/mu/stargazers","contributors_url":"https://api.github.com/repos/avar/mu/contributors","subscribers_url":"https://api.github.com/repos/avar/mu/subscribers","subscription_url":"https://api.github.com/repos/avar/mu/subscription","commits_url":"https://api.github.com/repos/avar/mu/commits{/sha}","git_commits_url":"https://api.github.com/repos/avar/mu/git/commits{/sha}","comments_url":"https://api.github.com/repos/avar/mu/comments{/number}","issue_comment_url":"https://api.github.com/repos/avar/mu/issues/comments{/number}","contents_url":"https://api.github.com/repos/avar/mu/contents/{+path}","compare_url":"https://api.github.com/repos/avar/mu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avar/mu/merges","archive_url":"https://api.github.com/repos/avar/mu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avar/mu/downloads","issues_url":"https://api.github.com/repos/avar/mu/issues{/number}","pulls_url":"https://api.github.com/repos/avar/mu/pulls{/number}","milestones_url":"https://api.github.com/repos/avar/mu/milestones{/number}","notifications_url":"https://api.github.com/repos/avar/mu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avar/mu/labels{/name}","releases_url":"https://api.github.com/repos/avar/mu/releases{/id}","created_at":"2015-11-18T16:00:48Z","updated_at":"2015-11-18T16:00:51Z","pushed_at":"2015-12-09T00:59:13Z","git_url":"git://github.com/avar/mu.git","ssh_url":"git@github.com:avar/mu.git","clone_url":"https://github.com/avar/mu.git","svn_url":"https://github.com/avar/mu","homepage":"http://www.djcbsoftware.nl/code/mu","size":14682,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"djcb:master","ref":"master","sha":"899253359b9662c8298596321a10d20d9c55c8ad","user":{"login":"djcb","id":199741,"avatar_url":"https://avatars.githubusercontent.com/u/199741?v=3","gravatar_id":"","url":"https://api.github.com/users/djcb","html_url":"https://github.com/djcb","followers_url":"https://api.github.com/users/djcb/followers","following_url":"https://api.github.com/users/djcb/following{/other_user}","gists_url":"https://api.github.com/users/djcb/gists{/gist_id}","starred_url":"https://api.github.com/users/djcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djcb/subscriptions","organizations_url":"https://api.github.com/users/djcb/orgs","repos_url":"https://api.github.com/users/djcb/repos","events_url":"https://api.github.com/users/djcb/events{/privacy}","received_events_url":"https://api.github.com/users/djcb/received_events","type":"User","site_admin":false},"repo":{"id":3117310,"name":"mu","full_name":"djcb/mu","owner":{"login":"djcb","id":199741,"avatar_url":"https://avatars.githubusercontent.com/u/199741?v=3","gravatar_id":"","url":"https://api.github.com/users/djcb","html_url":"https://github.com/djcb","followers_url":"https://api.github.com/users/djcb/followers","following_url":"https://api.github.com/users/djcb/following{/other_user}","gists_url":"https://api.github.com/users/djcb/gists{/gist_id}","starred_url":"https://api.github.com/users/djcb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djcb/subscriptions","organizations_url":"https://api.github.com/users/djcb/orgs","repos_url":"https://api.github.com/users/djcb/repos","events_url":"https://api.github.com/users/djcb/events{/privacy}","received_events_url":"https://api.github.com/users/djcb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/djcb/mu","description":"maildir indexer/searcher + emacs mail client + guile bindings","fork":false,"url":"https://api.github.com/repos/djcb/mu","forks_url":"https://api.github.com/repos/djcb/mu/forks","keys_url":"https://api.github.com/repos/djcb/mu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/djcb/mu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/djcb/mu/teams","hooks_url":"https://api.github.com/repos/djcb/mu/hooks","issue_events_url":"https://api.github.com/repos/djcb/mu/issues/events{/number}","events_url":"https://api.github.com/repos/djcb/mu/events","assignees_url":"https://api.github.com/repos/djcb/mu/assignees{/user}","branches_url":"https://api.github.com/repos/djcb/mu/branches{/branch}","tags_url":"https://api.github.com/repos/djcb/mu/tags","blobs_url":"https://api.github.com/repos/djcb/mu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/djcb/mu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/djcb/mu/git/refs{/sha}","trees_url":"https://api.github.com/repos/djcb/mu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/djcb/mu/statuses/{sha}","languages_url":"https://api.github.com/repos/djcb/mu/languages","stargazers_url":"https://api.github.com/repos/djcb/mu/stargazers","contributors_url":"https://api.github.com/repos/djcb/mu/contributors","subscribers_url":"https://api.github.com/repos/djcb/mu/subscribers","subscription_url":"https://api.github.com/repos/djcb/mu/subscription","commits_url":"https://api.github.com/repos/djcb/mu/commits{/sha}","git_commits_url":"https://api.github.com/repos/djcb/mu/git/commits{/sha}","comments_url":"https://api.github.com/repos/djcb/mu/comments{/number}","issue_comment_url":"https://api.github.com/repos/djcb/mu/issues/comments{/number}","contents_url":"https://api.github.com/repos/djcb/mu/contents/{+path}","compare_url":"https://api.github.com/repos/djcb/mu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/djcb/mu/merges","archive_url":"https://api.github.com/repos/djcb/mu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/djcb/mu/downloads","issues_url":"https://api.github.com/repos/djcb/mu/issues{/number}","pulls_url":"https://api.github.com/repos/djcb/mu/pulls{/number}","milestones_url":"https://api.github.com/repos/djcb/mu/milestones{/number}","notifications_url":"https://api.github.com/repos/djcb/mu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/djcb/mu/labels{/name}","releases_url":"https://api.github.com/repos/djcb/mu/releases{/id}","created_at":"2012-01-06T10:42:29Z","updated_at":"2015-12-07T11:38:10Z","pushed_at":"2015-12-09T00:59:25Z","git_url":"git://github.com/djcb/mu.git","ssh_url":"git@github.com:djcb/mu.git","clone_url":"https://github.com/djcb/mu.git","svn_url":"https://github.com/djcb/mu","homepage":"http://www.djcbsoftware.nl/code/mu","size":15067,"stargazers_count":482,"watchers_count":482,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":153,"mirror_url":null,"open_issues_count":63,"forks":153,"open_issues":63,"watchers":482,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/djcb/mu/pulls/718"},"html":{"href":"https://github.com/djcb/mu/pull/718"},"issue":{"href":"https://api.github.com/repos/djcb/mu/issues/718"},"comments":{"href":"https://api.github.com/repos/djcb/mu/issues/718/comments"},"review_comments":{"href":"https://api.github.com/repos/djcb/mu/pulls/718/comments"},"review_comment":{"href":"https://api.github.com/repos/djcb/mu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/djcb/mu/pulls/718/commits"},"statuses":{"href":"https://api.github.com/repos/djcb/mu/statuses/4f83ab0f9430f0af1e6d3adbfc9a9591dddb8867"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":7,"deletions":0,"changed_files":1}}