{"action":"created","comment":{"url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments/138953227","pull_request_review_id":62819430,"id":138953227,"diff_hunk":"@@ -308,6 +308,38 @@ protected function getPartHeaderFromText(&$part)\n     }\n \n     /**\n+     * Checks whether a given part ID is a child of another part\n+     * eg. an RFC822 attachment may have one or more text parts\n+     *\n+     * @param string $partId\n+     * @param string $parentPartId\n+     * @return bool\n+     */\n+    protected function partIdIsChildOfPart($partId, $parentPartId)\n+    {\n+        return substr($partId, 0, strlen($parentPartId)) == $parentPartId;\n+    }\n+\n+    /**\n+     * Whether the given part ID is a child of any attachment part in the message.\n+     *\n+     * @param string $checkPartId\n+     * @return bool\n+     */\n+    protected function partIdIsChildOfAnAttachment($checkPartId)\n+    {\n+        foreach ($this->parts as $partId=>$part) {\n+            if ($this->getPart('content-disposition', $part) == 'attachment') {\n+                if ($this->partIdIsChildOfPart($checkPartId, $partId))","path":"src/Parser.php","position":26,"original_position":26,"commit_id":"97e34d73946fbe3cf60864c88d1316bc01d7ef27","original_commit_id":"97e34d73946fbe3cf60864c88d1316bc01d7ef27","user":{"login":"Nitpick-CI","id":12626182,"avatar_url":"https://avatars1.githubusercontent.com/u/12626182?v=4","gravatar_id":"","url":"https://api.github.com/users/Nitpick-CI","html_url":"https://github.com/Nitpick-CI","followers_url":"https://api.github.com/users/Nitpick-CI/followers","following_url":"https://api.github.com/users/Nitpick-CI/following{/other_user}","gists_url":"https://api.github.com/users/Nitpick-CI/gists{/gist_id}","starred_url":"https://api.github.com/users/Nitpick-CI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nitpick-CI/subscriptions","organizations_url":"https://api.github.com/users/Nitpick-CI/orgs","repos_url":"https://api.github.com/users/Nitpick-CI/repos","events_url":"https://api.github.com/users/Nitpick-CI/events{/privacy}","received_events_url":"https://api.github.com/users/Nitpick-CI/received_events","type":"User","site_admin":false},"body":"Expected 1 space after closing parenthesis; found 17","created_at":"2017-09-14T17:03:16Z","updated_at":"2017-09-14T17:03:16Z","html_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/159#discussion_r138953227","pull_request_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments/138953227"},"html":{"href":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/159#discussion_r138953227"},"pull_request":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159"}}},"pull_request":{"url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159","id":141128153,"html_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/159","diff_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/159.diff","patch_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/159.patch","issue_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/159","number":159,"state":"open","locked":false,"title":"Fixes #158 : to not include parts from attachments in getMessageBody()","user":{"login":"howardcox","id":31962087,"avatar_url":"https://avatars0.githubusercontent.com/u/31962087?v=4","gravatar_id":"","url":"https://api.github.com/users/howardcox","html_url":"https://github.com/howardcox","followers_url":"https://api.github.com/users/howardcox/followers","following_url":"https://api.github.com/users/howardcox/following{/other_user}","gists_url":"https://api.github.com/users/howardcox/gists{/gist_id}","starred_url":"https://api.github.com/users/howardcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardcox/subscriptions","organizations_url":"https://api.github.com/users/howardcox/orgs","repos_url":"https://api.github.com/users/howardcox/repos","events_url":"https://api.github.com/users/howardcox/events{/privacy}","received_events_url":"https://api.github.com/users/howardcox/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-09-14T17:03:04Z","updated_at":"2017-09-14T17:03:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbd8300f0e54ce891ce44f99d87bdc717f5c89b5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159/commits","review_comments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159/comments","review_comment_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/159/comments","statuses_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/statuses/97e34d73946fbe3cf60864c88d1316bc01d7ef27","head":{"label":"howardcox:master","ref":"master","sha":"97e34d73946fbe3cf60864c88d1316bc01d7ef27","user":{"login":"howardcox","id":31962087,"avatar_url":"https://avatars0.githubusercontent.com/u/31962087?v=4","gravatar_id":"","url":"https://api.github.com/users/howardcox","html_url":"https://github.com/howardcox","followers_url":"https://api.github.com/users/howardcox/followers","following_url":"https://api.github.com/users/howardcox/following{/other_user}","gists_url":"https://api.github.com/users/howardcox/gists{/gist_id}","starred_url":"https://api.github.com/users/howardcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardcox/subscriptions","organizations_url":"https://api.github.com/users/howardcox/orgs","repos_url":"https://api.github.com/users/howardcox/repos","events_url":"https://api.github.com/users/howardcox/events{/privacy}","received_events_url":"https://api.github.com/users/howardcox/received_events","type":"User","site_admin":false},"repo":{"id":103540241,"name":"php-mime-mail-parser","full_name":"howardcox/php-mime-mail-parser","owner":{"login":"howardcox","id":31962087,"avatar_url":"https://avatars0.githubusercontent.com/u/31962087?v=4","gravatar_id":"","url":"https://api.github.com/users/howardcox","html_url":"https://github.com/howardcox","followers_url":"https://api.github.com/users/howardcox/followers","following_url":"https://api.github.com/users/howardcox/following{/other_user}","gists_url":"https://api.github.com/users/howardcox/gists{/gist_id}","starred_url":"https://api.github.com/users/howardcox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howardcox/subscriptions","organizations_url":"https://api.github.com/users/howardcox/orgs","repos_url":"https://api.github.com/users/howardcox/repos","events_url":"https://api.github.com/users/howardcox/events{/privacy}","received_events_url":"https://api.github.com/users/howardcox/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/howardcox/php-mime-mail-parser","description":"Fully Tested Mailparse Extension Wrapper for PHP 5.4+","fork":true,"url":"https://api.github.com/repos/howardcox/php-mime-mail-parser","forks_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/forks","keys_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/teams","hooks_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/hooks","issue_events_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/issues/events{/number}","events_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/events","assignees_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/assignees{/user}","branches_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/branches{/branch}","tags_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/tags","blobs_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/languages","stargazers_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/stargazers","contributors_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/contributors","subscribers_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/subscribers","subscription_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/subscription","commits_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/contents/{+path}","compare_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/merges","archive_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/downloads","issues_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/issues{/number}","pulls_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/labels{/name}","releases_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/releases{/id}","deployments_url":"https://api.github.com/repos/howardcox/php-mime-mail-parser/deployments","created_at":"2017-09-14T14:09:09Z","updated_at":"2017-09-14T14:09:10Z","pushed_at":"2017-09-14T16:55:49Z","git_url":"git://github.com/howardcox/php-mime-mail-parser.git","ssh_url":"git@github.com:howardcox/php-mime-mail-parser.git","clone_url":"https://github.com/howardcox/php-mime-mail-parser.git","svn_url":"https://github.com/howardcox/php-mime-mail-parser","homepage":"","size":1051,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"php-mime-mail-parser:master","ref":"master","sha":"d2f0811818358467dc5daebccea8fe6189c59f4b","user":{"login":"php-mime-mail-parser","id":11502569,"avatar_url":"https://avatars1.githubusercontent.com/u/11502569?v=4","gravatar_id":"","url":"https://api.github.com/users/php-mime-mail-parser","html_url":"https://github.com/php-mime-mail-parser","followers_url":"https://api.github.com/users/php-mime-mail-parser/followers","following_url":"https://api.github.com/users/php-mime-mail-parser/following{/other_user}","gists_url":"https://api.github.com/users/php-mime-mail-parser/gists{/gist_id}","starred_url":"https://api.github.com/users/php-mime-mail-parser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-mime-mail-parser/subscriptions","organizations_url":"https://api.github.com/users/php-mime-mail-parser/orgs","repos_url":"https://api.github.com/users/php-mime-mail-parser/repos","events_url":"https://api.github.com/users/php-mime-mail-parser/events{/privacy}","received_events_url":"https://api.github.com/users/php-mime-mail-parser/received_events","type":"Organization","site_admin":false},"repo":{"id":10585653,"name":"php-mime-mail-parser","full_name":"php-mime-mail-parser/php-mime-mail-parser","owner":{"login":"php-mime-mail-parser","id":11502569,"avatar_url":"https://avatars1.githubusercontent.com/u/11502569?v=4","gravatar_id":"","url":"https://api.github.com/users/php-mime-mail-parser","html_url":"https://github.com/php-mime-mail-parser","followers_url":"https://api.github.com/users/php-mime-mail-parser/followers","following_url":"https://api.github.com/users/php-mime-mail-parser/following{/other_user}","gists_url":"https://api.github.com/users/php-mime-mail-parser/gists{/gist_id}","starred_url":"https://api.github.com/users/php-mime-mail-parser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/php-mime-mail-parser/subscriptions","organizations_url":"https://api.github.com/users/php-mime-mail-parser/orgs","repos_url":"https://api.github.com/users/php-mime-mail-parser/repos","events_url":"https://api.github.com/users/php-mime-mail-parser/events{/privacy}","received_events_url":"https://api.github.com/users/php-mime-mail-parser/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser","description":"Fully Tested Mailparse Extension Wrapper for PHP 5.4+","fork":false,"url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser","forks_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/forks","keys_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/teams","hooks_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/hooks","issue_events_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/events{/number}","events_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/events","assignees_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/assignees{/user}","branches_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/branches{/branch}","tags_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/tags","blobs_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/languages","stargazers_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/stargazers","contributors_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/contributors","subscribers_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/subscribers","subscription_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/subscription","commits_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/contents/{+path}","compare_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/merges","archive_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/downloads","issues_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues{/number}","pulls_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/labels{/name}","releases_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/releases{/id}","deployments_url":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/deployments","created_at":"2013-06-09T16:18:11Z","updated_at":"2017-09-14T14:08:28Z","pushed_at":"2017-09-14T17:03:05Z","git_url":"git://github.com/php-mime-mail-parser/php-mime-mail-parser.git","ssh_url":"git@github.com:php-mime-mail-parser/php-mime-mail-parser.git","clone_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser.git","svn_url":"https://github.com/php-mime-mail-parser/php-mime-mail-parser","homepage":"","size":1051,"stargazers_count":314,"watchers_count":314,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":89,"mirror_url":null,"open_issues_count":16,"forks":89,"open_issues":16,"watchers":314,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159"},"html":{"href":"https://github.com/php-mime-mail-parser/php-mime-mail-parser/pull/159"},"issue":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/159"},"comments":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/issues/159/comments"},"review_comments":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159/comments"},"review_comment":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/pulls/159/commits"},"statuses":{"href":"https://api.github.com/repos/php-mime-mail-parser/php-mime-mail-parser/statuses/97e34d73946fbe3cf60864c88d1316bc01d7ef27"}},"author_association":"NONE"}}
{"actor":{"display_login":"Nitpick-CI"}}