{"action":"created","comment":{"url":"https://api.github.com/repos/linagora/james-project/pulls/comments/77523032","id":77523032,"diff_hunk":"@@ -59,41 +59,38 @@ public void getMailetInfoShouldReturnValue() {\n \n     @Test\n     public void serviceShouldReplaceSubjectWhenMatching() throws Exception {\n-        mailetConfig.setProperty(\"subjectPattern\", \"/prova/PROVA/i/,/a/e//,/o/o/i/\");\n-        mailetConfig.setProperty(\"bodyPattern\", \"/prova/PROVA/i/,\" + \"/a/e//,\"\n-                + \"/o/o/i/,/\\\\u00E8/e'//,\" + \"/prova([^\\\\/]*?)ble/X$1Y/im/,\"\n-                + \"/X(.\\\\n)Y/P$1Q//,\" + \"/\\\\/\\\\/,//\");\n+        mailetConfig.setProperty(\"subjectPattern\", \"/test/TEST/i/,/o/a//,/s/s/i/\");\n         mailet.init(mailetConfig);\n \n         MimeMessage message = new MimeMessage(Session.getDefaultInstance(new Properties()));\n-        message.setSubject(\"una prova\");\n-        message.setText(\"Sto facendo una prova di scrittura/ \\u00E8 solo una prova.\\n\"\n-                + \"Bla bla bla bla.\\n\");\n+        message.setSubject(\"one test\");\n \n         Mail mail = new FakeMail(message);\n         mailet.service(mail);\n \n-        assertThat(mail.getMessage().getSubject()).isEqualTo(\"une PRoVA\");\n+        assertThat(mail.getMessage().getSubject()).isEqualTo(\"ane TEsT\");\n     }\n \n     @Test\n     public void serviceShouldReplaceBodyWhenMatching() throws Exception {\n-        mailetConfig.setProperty(\"subjectPattern\", \"/prova/PROVA/i/,/a/e//,/o/o/i/\");\n-        mailetConfig.setProperty(\"bodyPattern\", \"/prova/PROVA/i/,\" + \"/a/e/r/,\"\n-                + \"/O/o/r/,/\\\\u00E8/e'//,\" + \"/prove([^\\\\/]*?)ble/X$1Y/im/,\"\n-                + \"/X(.\\\\n)Y/P$1Q//,\" + \"/\\\\/\\\\/,//\");\n+        mailetConfig.setProperty(\"bodyPattern\", \n+                \"/test/TEST/i/,\" +\n+                \"/o/a/r/,\" +\n+                \"/S/s/r/,/\\\\u00E8/e'//,\" +\n+                \"/test([^\\\\/]*?)bla/X$1Y/im/,\" +\n+                \"/X(.\\\\n)Y/P$1Q//,\" +\n+                \"/\\\\/\\\\/,//\");\n         mailet.init(mailetConfig);\n \n         MimeMessage message = new MimeMessage(Session.getDefaultInstance(new Properties()));\n-        message.setSubject(\"una prova\");\n-        message.setText(\"Sto facendo una prova di scrittura/ \\u00E8 solo una prova.\\n\"\n-                + \"Bla bla bla bla.\\n\");\n+        message.setText(\"This is one simple test/ \\u00E8 one simple test.\\n\"\n+                + \"Blo blo blo blo.\\n\");\n \n         Mail mail = new FakeMail(message);\n         mailet.service(mail);\n \n-        assertThat(mail.getMessage().getContent()).isEqualTo(\"Sto fecendo une PRoVA di scritture, e' solo une P.\\n\"\n-                + \"Q ble ble ble.\\n\");\n+        assertThat(mail.getMessage().getContent()).isEqualTo(\"This is ane simple TEsT, e' ane simple P.\\n\"","path":"mailet/standard/src/test/java/org/apache/james/transport/mailets/ReplaceContentTest.java","position":null,"original_position":51,"commit_id":"b80025ee7d175269d09f90eab6b208bd8373a189","original_commit_id":"b80025ee7d175269d09f90eab6b208bd8373a189","user":{"login":"rouazana","id":1398581,"avatar_url":"https://avatars.githubusercontent.com/u/1398581?v=3","gravatar_id":"","url":"https://api.github.com/users/rouazana","html_url":"https://github.com/rouazana","followers_url":"https://api.github.com/users/rouazana/followers","following_url":"https://api.github.com/users/rouazana/following{/other_user}","gists_url":"https://api.github.com/users/rouazana/gists{/gist_id}","starred_url":"https://api.github.com/users/rouazana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rouazana/subscriptions","organizations_url":"https://api.github.com/users/rouazana/orgs","repos_url":"https://api.github.com/users/rouazana/repos","events_url":"https://api.github.com/users/rouazana/events{/privacy}","received_events_url":"https://api.github.com/users/rouazana/received_events","type":"User","site_admin":false},"body":"here too","created_at":"2016-09-05T13:36:30Z","updated_at":"2016-09-05T13:36:30Z","html_url":"https://github.com/linagora/james-project/pull/383#discussion_r77523032","pull_request_url":"https://api.github.com/repos/linagora/james-project/pulls/383","_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments/77523032"},"html":{"href":"https://github.com/linagora/james-project/pull/383#discussion_r77523032"},"pull_request":{"href":"https://api.github.com/repos/linagora/james-project/pulls/383"}}},"pull_request":{"url":"https://api.github.com/repos/linagora/james-project/pulls/383","id":83237208,"html_url":"https://github.com/linagora/james-project/pull/383","diff_url":"https://github.com/linagora/james-project/pull/383.diff","patch_url":"https://github.com/linagora/james-project/pull/383.patch","issue_url":"https://api.github.com/repos/linagora/james-project/issues/383","number":383,"state":"open","locked":false,"title":"MAILET-110 Refactor ReplaceContent","user":{"login":"aduprat","id":2900528,"avatar_url":"https://avatars.githubusercontent.com/u/2900528?v=3","gravatar_id":"","url":"https://api.github.com/users/aduprat","html_url":"https://github.com/aduprat","followers_url":"https://api.github.com/users/aduprat/followers","following_url":"https://api.github.com/users/aduprat/following{/other_user}","gists_url":"https://api.github.com/users/aduprat/gists{/gist_id}","starred_url":"https://api.github.com/users/aduprat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aduprat/subscriptions","organizations_url":"https://api.github.com/users/aduprat/orgs","repos_url":"https://api.github.com/users/aduprat/repos","events_url":"https://api.github.com/users/aduprat/events{/privacy}","received_events_url":"https://api.github.com/users/aduprat/received_events","type":"User","site_admin":false},"body":"I split this review in two commit as it may be more readable.\r\nI'm not really proud of new class names.\r\n\r\nI'm looking at the repeat feature, as i think it's buggy.","created_at":"2016-08-30T09:30:02Z","updated_at":"2016-09-05T13:36:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"758cd632b97810d8a97780d2ab6d0844d2f71baf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/linagora/james-project/pulls/383/commits","review_comments_url":"https://api.github.com/repos/linagora/james-project/pulls/383/comments","review_comment_url":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linagora/james-project/issues/383/comments","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/b80025ee7d175269d09f90eab6b208bd8373a189","head":{"label":"aduprat:MAILET-110","ref":"MAILET-110","sha":"b80025ee7d175269d09f90eab6b208bd8373a189","user":{"login":"aduprat","id":2900528,"avatar_url":"https://avatars.githubusercontent.com/u/2900528?v=3","gravatar_id":"","url":"https://api.github.com/users/aduprat","html_url":"https://github.com/aduprat","followers_url":"https://api.github.com/users/aduprat/followers","following_url":"https://api.github.com/users/aduprat/following{/other_user}","gists_url":"https://api.github.com/users/aduprat/gists{/gist_id}","starred_url":"https://api.github.com/users/aduprat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aduprat/subscriptions","organizations_url":"https://api.github.com/users/aduprat/orgs","repos_url":"https://api.github.com/users/aduprat/repos","events_url":"https://api.github.com/users/aduprat/events{/privacy}","received_events_url":"https://api.github.com/users/aduprat/received_events","type":"User","site_admin":false},"repo":{"id":39448317,"name":"james-project","full_name":"aduprat/james-project","owner":{"login":"aduprat","id":2900528,"avatar_url":"https://avatars.githubusercontent.com/u/2900528?v=3","gravatar_id":"","url":"https://api.github.com/users/aduprat","html_url":"https://github.com/aduprat","followers_url":"https://api.github.com/users/aduprat/followers","following_url":"https://api.github.com/users/aduprat/following{/other_user}","gists_url":"https://api.github.com/users/aduprat/gists{/gist_id}","starred_url":"https://api.github.com/users/aduprat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aduprat/subscriptions","organizations_url":"https://api.github.com/users/aduprat/orgs","repos_url":"https://api.github.com/users/aduprat/repos","events_url":"https://api.github.com/users/aduprat/events{/privacy}","received_events_url":"https://api.github.com/users/aduprat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/aduprat/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/aduprat/james-project","forks_url":"https://api.github.com/repos/aduprat/james-project/forks","keys_url":"https://api.github.com/repos/aduprat/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aduprat/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aduprat/james-project/teams","hooks_url":"https://api.github.com/repos/aduprat/james-project/hooks","issue_events_url":"https://api.github.com/repos/aduprat/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/aduprat/james-project/events","assignees_url":"https://api.github.com/repos/aduprat/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/aduprat/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/aduprat/james-project/tags","blobs_url":"https://api.github.com/repos/aduprat/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aduprat/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aduprat/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/aduprat/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aduprat/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/aduprat/james-project/languages","stargazers_url":"https://api.github.com/repos/aduprat/james-project/stargazers","contributors_url":"https://api.github.com/repos/aduprat/james-project/contributors","subscribers_url":"https://api.github.com/repos/aduprat/james-project/subscribers","subscription_url":"https://api.github.com/repos/aduprat/james-project/subscription","commits_url":"https://api.github.com/repos/aduprat/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/aduprat/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/aduprat/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/aduprat/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/aduprat/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/aduprat/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aduprat/james-project/merges","archive_url":"https://api.github.com/repos/aduprat/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aduprat/james-project/downloads","issues_url":"https://api.github.com/repos/aduprat/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/aduprat/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/aduprat/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/aduprat/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aduprat/james-project/labels{/name}","releases_url":"https://api.github.com/repos/aduprat/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/aduprat/james-project/deployments","created_at":"2015-07-21T13:55:14Z","updated_at":"2016-01-13T10:07:40Z","pushed_at":"2016-09-05T13:23:27Z","git_url":"git://github.com/aduprat/james-project.git","ssh_url":"git@github.com:aduprat/james-project.git","clone_url":"https://github.com/aduprat/james-project.git","svn_url":"https://github.com/aduprat/james-project","homepage":null,"size":14172,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"trunk"}},"base":{"label":"linagora:master","ref":"master","sha":"526f8b5e19741d7f351bb97147f85c6ecebc6a85","user":{"login":"linagora","id":1230365,"avatar_url":"https://avatars.githubusercontent.com/u/1230365?v=3","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"repo":{"id":39182136,"name":"james-project","full_name":"linagora/james-project","owner":{"login":"linagora","id":1230365,"avatar_url":"https://avatars.githubusercontent.com/u/1230365?v=3","gravatar_id":"","url":"https://api.github.com/users/linagora","html_url":"https://github.com/linagora","followers_url":"https://api.github.com/users/linagora/followers","following_url":"https://api.github.com/users/linagora/following{/other_user}","gists_url":"https://api.github.com/users/linagora/gists{/gist_id}","starred_url":"https://api.github.com/users/linagora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linagora/subscriptions","organizations_url":"https://api.github.com/users/linagora/orgs","repos_url":"https://api.github.com/users/linagora/repos","events_url":"https://api.github.com/users/linagora/events{/privacy}","received_events_url":"https://api.github.com/users/linagora/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linagora/james-project","description":"Mirror of Apache James Project","fork":true,"url":"https://api.github.com/repos/linagora/james-project","forks_url":"https://api.github.com/repos/linagora/james-project/forks","keys_url":"https://api.github.com/repos/linagora/james-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linagora/james-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linagora/james-project/teams","hooks_url":"https://api.github.com/repos/linagora/james-project/hooks","issue_events_url":"https://api.github.com/repos/linagora/james-project/issues/events{/number}","events_url":"https://api.github.com/repos/linagora/james-project/events","assignees_url":"https://api.github.com/repos/linagora/james-project/assignees{/user}","branches_url":"https://api.github.com/repos/linagora/james-project/branches{/branch}","tags_url":"https://api.github.com/repos/linagora/james-project/tags","blobs_url":"https://api.github.com/repos/linagora/james-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linagora/james-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linagora/james-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/linagora/james-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linagora/james-project/statuses/{sha}","languages_url":"https://api.github.com/repos/linagora/james-project/languages","stargazers_url":"https://api.github.com/repos/linagora/james-project/stargazers","contributors_url":"https://api.github.com/repos/linagora/james-project/contributors","subscribers_url":"https://api.github.com/repos/linagora/james-project/subscribers","subscription_url":"https://api.github.com/repos/linagora/james-project/subscription","commits_url":"https://api.github.com/repos/linagora/james-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/linagora/james-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/linagora/james-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/linagora/james-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/linagora/james-project/contents/{+path}","compare_url":"https://api.github.com/repos/linagora/james-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linagora/james-project/merges","archive_url":"https://api.github.com/repos/linagora/james-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linagora/james-project/downloads","issues_url":"https://api.github.com/repos/linagora/james-project/issues{/number}","pulls_url":"https://api.github.com/repos/linagora/james-project/pulls{/number}","milestones_url":"https://api.github.com/repos/linagora/james-project/milestones{/number}","notifications_url":"https://api.github.com/repos/linagora/james-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linagora/james-project/labels{/name}","releases_url":"https://api.github.com/repos/linagora/james-project/releases{/id}","deployments_url":"https://api.github.com/repos/linagora/james-project/deployments","created_at":"2015-07-16T07:04:59Z","updated_at":"2016-07-01T17:37:20Z","pushed_at":"2016-09-05T13:23:27Z","git_url":"git://github.com/linagora/james-project.git","ssh_url":"git@github.com:linagora/james-project.git","clone_url":"https://github.com/linagora/james-project.git","svn_url":"https://github.com/linagora/james-project","homepage":null,"size":16153,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":28,"forks":8,"open_issues":28,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linagora/james-project/pulls/383"},"html":{"href":"https://github.com/linagora/james-project/pull/383"},"issue":{"href":"https://api.github.com/repos/linagora/james-project/issues/383"},"comments":{"href":"https://api.github.com/repos/linagora/james-project/issues/383/comments"},"review_comments":{"href":"https://api.github.com/repos/linagora/james-project/pulls/383/comments"},"review_comment":{"href":"https://api.github.com/repos/linagora/james-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linagora/james-project/pulls/383/commits"},"statuses":{"href":"https://api.github.com/repos/linagora/james-project/statuses/b80025ee7d175269d09f90eab6b208bd8373a189"}}}}
{"actor":{"display_login":"rouazana"}}