{"action":"created","comment":{"url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/comments/233729463","pull_request_review_id":175211425,"id":233729463,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMzcyOTQ2Mw==","diff_hunk":"@@ -6,73 +6,108 @@\n import java.net.MalformedURLException;\n import java.net.URL;\n import java.net.URLEncoder;\n+import java.nio.charset.Charset;\n+import java.nio.charset.CharsetEncoder;\n+import java.util.List;\n+import java.util.Set;\n+import java.util.Arrays;\n \n import com.zimbra.cs.account.Account;\n import com.zimbra.cs.account.Provisioning;\n import com.zimbra.cs.lmtpserver.LmtpCallback;\n+import com.zimbra.cs.mime.MPartInfo;\n+import com.zimbra.cs.mime.Mime;\n import com.zimbra.cs.mime.ParsedMessage;\n+import com.zimbra.common.mime.MimeConstants;\n import com.zimbra.common.service.ServiceException;\n+import com.zimbra.common.util.Pair;\n+import com.zimbra.common.util.StringUtil;\n import com.zimbra.common.util.ZimbraLog;\n \n+import javax.mail.Address;\n+import javax.mail.Message.RecipientType;\n+import javax.mail.MessagingException;\n+import javax.mail.internet.InternetAddress;\n+import javax.mail.internet.MimeMessage;\n+import javax.mail.internet.MimePart;\n+import javax.xml.datatype.DatatypeFactory;\n+import javax.xml.datatype.XMLGregorianCalendar;\n+","path":"store/src/java/com/zimbra/cs/mailbox/EmailToSMS.java","position":30,"original_position":30,"commit_id":"442c6e639da65bcff3c6245b193d4d3c74be3533","original_commit_id":"442c6e639da65bcff3c6245b193d4d3c74be3533","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Avoid unused imports such as 'javax.mail.internet.InternetAddress'](https://app.codacy.com/app/Synacor/zm-mailbox/pullRequest?prid=2562831)","created_at":"2018-11-15T06:58:05Z","updated_at":"2018-11-15T06:58:05Z","html_url":"https://github.com/Zimbra/zm-mailbox/pull/813#discussion_r233729463","pull_request_url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/comments/233729463"},"html":{"href":"https://github.com/Zimbra/zm-mailbox/pull/813#discussion_r233729463"},"pull_request":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813"}}},"pull_request":{"url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813","id":231086478,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMDg2NDc4","html_url":"https://github.com/Zimbra/zm-mailbox/pull/813","diff_url":"https://github.com/Zimbra/zm-mailbox/pull/813.diff","patch_url":"https://github.com/Zimbra/zm-mailbox/pull/813.patch","issue_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/813","number":813,"state":"open","locked":false,"title":"NICPS-471: Fixes for duplicate sms and other language","user":{"login":"deepakzimb","id":38309433,"node_id":"MDQ6VXNlcjM4MzA5NDMz","avatar_url":"https://avatars0.githubusercontent.com/u/38309433?v=4","gravatar_id":"","url":"https://api.github.com/users/deepakzimb","html_url":"https://github.com/deepakzimb","followers_url":"https://api.github.com/users/deepakzimb/followers","following_url":"https://api.github.com/users/deepakzimb/following{/other_user}","gists_url":"https://api.github.com/users/deepakzimb/gists{/gist_id}","starred_url":"https://api.github.com/users/deepakzimb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deepakzimb/subscriptions","organizations_url":"https://api.github.com/users/deepakzimb/orgs","repos_url":"https://api.github.com/users/deepakzimb/repos","events_url":"https://api.github.com/users/deepakzimb/events{/privacy}","received_events_url":"https://api.github.com/users/deepakzimb/received_events","type":"User","site_admin":false},"body":"- Fixed duplicate/repeating sms issue\r\n- Fixed long msg issue\r\n- Fixed other language support sms\r\n- Update testing instructions to verify ticket","created_at":"2018-11-15T06:49:52Z","updated_at":"2018-11-15T06:58:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe14219f6c4188a960ba4f016db60c33ae37166f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813/commits","review_comments_url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813/comments","review_comment_url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/813/comments","statuses_url":"https://api.github.com/repos/Zimbra/zm-mailbox/statuses/442c6e639da65bcff3c6245b193d4d3c74be3533","head":{"label":"Zimbra:feature/NICPS-471","ref":"feature/NICPS-471","sha":"442c6e639da65bcff3c6245b193d4d3c74be3533","user":{"login":"Zimbra","id":8135764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMzU3NjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8135764?v=4","gravatar_id":"","url":"https://api.github.com/users/Zimbra","html_url":"https://github.com/Zimbra","followers_url":"https://api.github.com/users/Zimbra/followers","following_url":"https://api.github.com/users/Zimbra/following{/other_user}","gists_url":"https://api.github.com/users/Zimbra/gists{/gist_id}","starred_url":"https://api.github.com/users/Zimbra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zimbra/subscriptions","organizations_url":"https://api.github.com/users/Zimbra/orgs","repos_url":"https://api.github.com/users/Zimbra/repos","events_url":"https://api.github.com/users/Zimbra/events{/privacy}","received_events_url":"https://api.github.com/users/Zimbra/received_events","type":"Organization","site_admin":false},"repo":{"id":85609847,"node_id":"MDEwOlJlcG9zaXRvcnk4NTYwOTg0Nw==","name":"zm-mailbox","full_name":"Zimbra/zm-mailbox","private":false,"owner":{"login":"Zimbra","id":8135764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMzU3NjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8135764?v=4","gravatar_id":"","url":"https://api.github.com/users/Zimbra","html_url":"https://github.com/Zimbra","followers_url":"https://api.github.com/users/Zimbra/followers","following_url":"https://api.github.com/users/Zimbra/following{/other_user}","gists_url":"https://api.github.com/users/Zimbra/gists{/gist_id}","starred_url":"https://api.github.com/users/Zimbra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zimbra/subscriptions","organizations_url":"https://api.github.com/users/Zimbra/orgs","repos_url":"https://api.github.com/users/Zimbra/repos","events_url":"https://api.github.com/users/Zimbra/events{/privacy}","received_events_url":"https://api.github.com/users/Zimbra/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Zimbra/zm-mailbox","description":"zm-mailbox for Zimbra Collaboration Suite, FOSS Edition","fork":false,"url":"https://api.github.com/repos/Zimbra/zm-mailbox","forks_url":"https://api.github.com/repos/Zimbra/zm-mailbox/forks","keys_url":"https://api.github.com/repos/Zimbra/zm-mailbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zimbra/zm-mailbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zimbra/zm-mailbox/teams","hooks_url":"https://api.github.com/repos/Zimbra/zm-mailbox/hooks","issue_events_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/events{/number}","events_url":"https://api.github.com/repos/Zimbra/zm-mailbox/events","assignees_url":"https://api.github.com/repos/Zimbra/zm-mailbox/assignees{/user}","branches_url":"https://api.github.com/repos/Zimbra/zm-mailbox/branches{/branch}","tags_url":"https://api.github.com/repos/Zimbra/zm-mailbox/tags","blobs_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zimbra/zm-mailbox/statuses/{sha}","languages_url":"https://api.github.com/repos/Zimbra/zm-mailbox/languages","stargazers_url":"https://api.github.com/repos/Zimbra/zm-mailbox/stargazers","contributors_url":"https://api.github.com/repos/Zimbra/zm-mailbox/contributors","subscribers_url":"https://api.github.com/repos/Zimbra/zm-mailbox/subscribers","subscription_url":"https://api.github.com/repos/Zimbra/zm-mailbox/subscription","commits_url":"https://api.github.com/repos/Zimbra/zm-mailbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zimbra/zm-mailbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zimbra/zm-mailbox/contents/{+path}","compare_url":"https://api.github.com/repos/Zimbra/zm-mailbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zimbra/zm-mailbox/merges","archive_url":"https://api.github.com/repos/Zimbra/zm-mailbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zimbra/zm-mailbox/downloads","issues_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues{/number}","pulls_url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls{/number}","milestones_url":"https://api.github.com/repos/Zimbra/zm-mailbox/milestones{/number}","notifications_url":"https://api.github.com/repos/Zimbra/zm-mailbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zimbra/zm-mailbox/labels{/name}","releases_url":"https://api.github.com/repos/Zimbra/zm-mailbox/releases{/id}","deployments_url":"https://api.github.com/repos/Zimbra/zm-mailbox/deployments","created_at":"2017-03-20T18:07:01Z","updated_at":"2018-11-14T11:23:28Z","pushed_at":"2018-11-15T06:49:52Z","git_url":"git://github.com/Zimbra/zm-mailbox.git","ssh_url":"git@github.com:Zimbra/zm-mailbox.git","clone_url":"https://github.com/Zimbra/zm-mailbox.git","svn_url":"https://github.com/Zimbra/zm-mailbox","homepage":null,"size":96569,"stargazers_count":20,"watchers_count":20,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":22,"license":null,"forks":43,"open_issues":22,"watchers":20,"default_branch":"develop"}},"base":{"label":"Zimbra:snickers","ref":"snickers","sha":"e0dc3d3d2856738e592a9e71d443d2c9238ed9d5","user":{"login":"Zimbra","id":8135764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMzU3NjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8135764?v=4","gravatar_id":"","url":"https://api.github.com/users/Zimbra","html_url":"https://github.com/Zimbra","followers_url":"https://api.github.com/users/Zimbra/followers","following_url":"https://api.github.com/users/Zimbra/following{/other_user}","gists_url":"https://api.github.com/users/Zimbra/gists{/gist_id}","starred_url":"https://api.github.com/users/Zimbra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zimbra/subscriptions","organizations_url":"https://api.github.com/users/Zimbra/orgs","repos_url":"https://api.github.com/users/Zimbra/repos","events_url":"https://api.github.com/users/Zimbra/events{/privacy}","received_events_url":"https://api.github.com/users/Zimbra/received_events","type":"Organization","site_admin":false},"repo":{"id":85609847,"node_id":"MDEwOlJlcG9zaXRvcnk4NTYwOTg0Nw==","name":"zm-mailbox","full_name":"Zimbra/zm-mailbox","private":false,"owner":{"login":"Zimbra","id":8135764,"node_id":"MDEyOk9yZ2FuaXphdGlvbjgxMzU3NjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/8135764?v=4","gravatar_id":"","url":"https://api.github.com/users/Zimbra","html_url":"https://github.com/Zimbra","followers_url":"https://api.github.com/users/Zimbra/followers","following_url":"https://api.github.com/users/Zimbra/following{/other_user}","gists_url":"https://api.github.com/users/Zimbra/gists{/gist_id}","starred_url":"https://api.github.com/users/Zimbra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zimbra/subscriptions","organizations_url":"https://api.github.com/users/Zimbra/orgs","repos_url":"https://api.github.com/users/Zimbra/repos","events_url":"https://api.github.com/users/Zimbra/events{/privacy}","received_events_url":"https://api.github.com/users/Zimbra/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Zimbra/zm-mailbox","description":"zm-mailbox for Zimbra Collaboration Suite, FOSS Edition","fork":false,"url":"https://api.github.com/repos/Zimbra/zm-mailbox","forks_url":"https://api.github.com/repos/Zimbra/zm-mailbox/forks","keys_url":"https://api.github.com/repos/Zimbra/zm-mailbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zimbra/zm-mailbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zimbra/zm-mailbox/teams","hooks_url":"https://api.github.com/repos/Zimbra/zm-mailbox/hooks","issue_events_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/events{/number}","events_url":"https://api.github.com/repos/Zimbra/zm-mailbox/events","assignees_url":"https://api.github.com/repos/Zimbra/zm-mailbox/assignees{/user}","branches_url":"https://api.github.com/repos/Zimbra/zm-mailbox/branches{/branch}","tags_url":"https://api.github.com/repos/Zimbra/zm-mailbox/tags","blobs_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zimbra/zm-mailbox/statuses/{sha}","languages_url":"https://api.github.com/repos/Zimbra/zm-mailbox/languages","stargazers_url":"https://api.github.com/repos/Zimbra/zm-mailbox/stargazers","contributors_url":"https://api.github.com/repos/Zimbra/zm-mailbox/contributors","subscribers_url":"https://api.github.com/repos/Zimbra/zm-mailbox/subscribers","subscription_url":"https://api.github.com/repos/Zimbra/zm-mailbox/subscription","commits_url":"https://api.github.com/repos/Zimbra/zm-mailbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zimbra/zm-mailbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zimbra/zm-mailbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zimbra/zm-mailbox/contents/{+path}","compare_url":"https://api.github.com/repos/Zimbra/zm-mailbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zimbra/zm-mailbox/merges","archive_url":"https://api.github.com/repos/Zimbra/zm-mailbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zimbra/zm-mailbox/downloads","issues_url":"https://api.github.com/repos/Zimbra/zm-mailbox/issues{/number}","pulls_url":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls{/number}","milestones_url":"https://api.github.com/repos/Zimbra/zm-mailbox/milestones{/number}","notifications_url":"https://api.github.com/repos/Zimbra/zm-mailbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zimbra/zm-mailbox/labels{/name}","releases_url":"https://api.github.com/repos/Zimbra/zm-mailbox/releases{/id}","deployments_url":"https://api.github.com/repos/Zimbra/zm-mailbox/deployments","created_at":"2017-03-20T18:07:01Z","updated_at":"2018-11-14T11:23:28Z","pushed_at":"2018-11-15T06:49:52Z","git_url":"git://github.com/Zimbra/zm-mailbox.git","ssh_url":"git@github.com:Zimbra/zm-mailbox.git","clone_url":"https://github.com/Zimbra/zm-mailbox.git","svn_url":"https://github.com/Zimbra/zm-mailbox","homepage":null,"size":96569,"stargazers_count":20,"watchers_count":20,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":43,"mirror_url":null,"archived":false,"open_issues_count":22,"license":null,"forks":43,"open_issues":22,"watchers":20,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813"},"html":{"href":"https://github.com/Zimbra/zm-mailbox/pull/813"},"issue":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/813"},"comments":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/issues/813/comments"},"review_comments":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813/comments"},"review_comment":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/pulls/813/commits"},"statuses":{"href":"https://api.github.com/repos/Zimbra/zm-mailbox/statuses/442c6e639da65bcff3c6245b193d4d3c74be3533"}},"author_association":"NONE"}}
{"actor":{"display_login":"codacy-bot"}}