{"action":"created","issue":{"url":"https://api.github.com/repos/k9mail/k-9/issues/2614","repository_url":"https://api.github.com/repos/k9mail/k-9","labels_url":"https://api.github.com/repos/k9mail/k-9/issues/2614/labels{/name}","comments_url":"https://api.github.com/repos/k9mail/k-9/issues/2614/comments","events_url":"https://api.github.com/repos/k9mail/k-9/issues/2614/events","html_url":"https://github.com/k9mail/k-9/issues/2614","id":240157025,"number":2614,"title":"Bcc recipients are visible on recipient side","user":{"login":"pierre-leonard","id":2114903,"avatar_url":"https://avatars1.githubusercontent.com/u/2114903?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-leonard","html_url":"https://github.com/pierre-leonard","followers_url":"https://api.github.com/users/pierre-leonard/followers","following_url":"https://api.github.com/users/pierre-leonard/following{/other_user}","gists_url":"https://api.github.com/users/pierre-leonard/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-leonard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-leonard/subscriptions","organizations_url":"https://api.github.com/users/pierre-leonard/orgs","repos_url":"https://api.github.com/users/pierre-leonard/repos","events_url":"https://api.github.com/users/pierre-leonard/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-leonard/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-03T12:24:49Z","updated_at":"2017-07-10T11:09:22Z","closed_at":"2017-07-10T11:09:22Z","body":"### Expected behavior\r\nWhen a user receives an email from K9, they shouldn't see the list of bcc recipients\r\n\r\n### Actual behavior\r\nThe list of bcc recipients is actually visible\r\n\r\n### Steps to reproduce\r\nIMPORTANT: The reproducibility of this bug depends on which email provider you're using. I reproduced it when using K9 with an icloud.com email sending a message to yahoo.com recipients.\r\n\r\n1. Add an icloud.com account to K9\r\n2. Send a message to yahoo.com recipients (one TO recipient, a CC recipient and a couple of BCC recipients) \r\n3. When checking the message in the TO recipient mailbox, the list of BCC recipients is visible\r\n\r\n### Environment\r\nK-9 Mail version: 5.109\r\n\r\nAndroid version: 7.1\r\n\r\nAccount type (IMAP, POP3, WebDAV/Exchange): IMAP\r\n\r\nI think this happens because SmtpTransport.sendMessage receives a LocalMessage as a parameter. When the method set the BCC recipients to null, the actual BCC header is not removed because the setRecipients method of LocalMessage doesn't update the headers (as opposed to MimeMessage)\r\n"},"comment":{"url":"https://api.github.com/repos/k9mail/k-9/issues/comments/314075539","html_url":"https://github.com/k9mail/k-9/issues/2614#issuecomment-314075539","issue_url":"https://api.github.com/repos/k9mail/k-9/issues/2614","id":314075539,"user":{"login":"pierre-leonard","id":2114903,"avatar_url":"https://avatars1.githubusercontent.com/u/2114903?v=3","gravatar_id":"","url":"https://api.github.com/users/pierre-leonard","html_url":"https://github.com/pierre-leonard","followers_url":"https://api.github.com/users/pierre-leonard/followers","following_url":"https://api.github.com/users/pierre-leonard/following{/other_user}","gists_url":"https://api.github.com/users/pierre-leonard/gists{/gist_id}","starred_url":"https://api.github.com/users/pierre-leonard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierre-leonard/subscriptions","organizations_url":"https://api.github.com/users/pierre-leonard/orgs","repos_url":"https://api.github.com/users/pierre-leonard/repos","events_url":"https://api.github.com/users/pierre-leonard/events{/privacy}","received_events_url":"https://api.github.com/users/pierre-leonard/received_events","type":"User","site_admin":false},"created_at":"2017-07-10T11:09:22Z","updated_at":"2017-07-10T11:09:22Z","body":"Probably a duplicate of https://github.com/k9mail/k-9/issues/1938"}}
{"actor":{"display_login":"pierre-leonard"}}