{"action":"created","issue":{"url":"https://api.github.com/repos/k9mail/k-9/issues/1155","repository_url":"https://api.github.com/repos/k9mail/k-9","labels_url":"https://api.github.com/repos/k9mail/k-9/issues/1155/labels{/name}","comments_url":"https://api.github.com/repos/k9mail/k-9/issues/1155/comments","events_url":"https://api.github.com/repos/k9mail/k-9/issues/1155/events","html_url":"https://github.com/k9mail/k-9/issues/1155","id":138803800,"number":1155,"title":"Message deletions not synchronized on server","user":{"login":"semiaddict","id":522064,"avatar_url":"https://avatars.githubusercontent.com/u/522064?v=3","gravatar_id":"","url":"https://api.github.com/users/semiaddict","html_url":"https://github.com/semiaddict","followers_url":"https://api.github.com/users/semiaddict/followers","following_url":"https://api.github.com/users/semiaddict/following{/other_user}","gists_url":"https://api.github.com/users/semiaddict/gists{/gist_id}","starred_url":"https://api.github.com/users/semiaddict/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semiaddict/subscriptions","organizations_url":"https://api.github.com/users/semiaddict/orgs","repos_url":"https://api.github.com/users/semiaddict/repos","events_url":"https://api.github.com/users/semiaddict/events{/privacy}","received_events_url":"https://api.github.com/users/semiaddict/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-06T15:44:36Z","updated_at":"2016-03-08T12:16:02Z","closed_at":null,"body":"### Expected behaviour\r\nWhen the \"_Sync server deletions_\" setting is checked and the \"_When I delete a message_\" setting is set to \"_Delete from server_\", I would expect messaged that are deleted through K-9 Mail to be also deleted on the server.\r\n\r\n### Actual behaviour\r\nMessages deleted through K-9 Mail still appear in the server's inbox.\r\n\r\n### Steps to reproduce\r\n1. Create an IMAP account\r\n2. Make sure the  \"Sync server deletions\" setting is active\r\n3. Make sure the \"When I delete a message\" setting is set to \"Delete from server\"\r\n4. Delete a message from K-9 Mail\r\n5. Check to verify if it was also removed from the server through another mail client (ie. Thunderbird) or webmail\r\n\r\n### Environment\r\nK-9 Mail version:5.008\r\n\r\nAndroid version:6.0.1\r\n\r\nAccount type (IMAP, POP3, WebDAV/Exchange): Exchange\r\n\r\n### Log message\r\n\r\n**SSLException: Write error: ssl=0x977e7680: I/O error during system call, Broken pipe**\r\n\r\nK9-Mail version: 5.008\r\nDevice make: LGE\r\nDevice model: Nexus 5\r\nAndroid version: 6.0.1\r\n\r\ncom.fsck.k9.mail.MessagingException: IO Error\r\n\tat com.fsck.k9.mail.store.ImapStore$ImapFolder.ioExceptionHandler(ImapStore.java:2208)\r\n\tat com.fsck.k9.mail.store.ImapStore$ImapFolder.appendMessages(ImapStore.java:2072)\r\n\tat com.fsck.k9.controller.MessagingController.processPendingAppend(MessagingController.java:2117)\r\n\tat com.fsck.k9.controller.MessagingController.processPendingCommandsSynchronous(MessagingController.java:1987)\r\n\tat com.fsck.k9.controller.MessagingController.synchronizeMailboxSynchronous(MessagingController.java:975)\r\n\tat com.fsck.k9.controller.MessagingController.access$400(MessagingController.java:111)\r\n\tat com.fsck.k9.controller.MessagingController$8.run(MessagingController.java:934)\r\n\tat com.fsck.k9.controller.MessagingController.run(MessagingController.java:435)\r\n\tat\r\njava.lang.Thread.run(Thread.java:818)\r\nCaused by: javax.net.ssl.SSLException: Write error: ssl=0x977e7680: I/O error during system call, Broken pipe\r\n\tat com.android.org.conscrypt.NativeCrypto.SSL_write(Native Method)\r\n\tat com.android.org.conscrypt.OpenSSLSocketImpl$SSLOutputStream.write(OpenSSLSocketImpl.java:771)\r\n\tat java.io.BufferedOutputStream.write(BufferedOutputStream.java:174)\r\n\tat java.io.FilterOutputStream.write(FilterOutputStream.java:129)\r\n\tat com.fsck.k9.mail.filter.EOLConvertingOutputStream.write(EOLConvertingOutputStream.java:21)\r\n\tat java.io.FilterOutputStream.write(FilterOutputStream.java:114)\r\n\tat com.fsck.k9.mail.filter.Base64OutputStream.flush(Base64OutputStream.java:149)\r\n\tat\r\ncom.fsck.k9.mail.filter.Base64OutputStream.flush(Base64OutputStream.java:165)\r\n\tat com.fsck.k9.mail.filter.Base64OutputStream.close(Base64OutputStream.java:180)\r\n\tat com.fsck.k9.mail.store.LocalStore$BinaryAttachmentBody.writeTo(LocalStore.java:4082)\r\n\tat com.fsck.k9.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:141)\r\n\tat com.fsck.k9.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:89)\r\n\tat com.fsck.k9.mail.internet.MimeMessage.writeTo(MimeMessage.java:458)\r\n\tat com.fsck.k9.mail.store.LocalStore$LocalMessage.writeTo(LocalStore.java:3616)\r\n\tat com.fsck.k9.mail.store.ImapStore$ImapFolder.appendMessages(ImapStore.java:2016)\r\n\t... 7 more\r\n"},"comment":{"url":"https://api.github.com/repos/k9mail/k-9/issues/comments/193760486","html_url":"https://github.com/k9mail/k-9/issues/1155#issuecomment-193760486","issue_url":"https://api.github.com/repos/k9mail/k-9/issues/1155","id":193760486,"user":{"login":"philipwhiuk","id":1316415,"avatar_url":"https://avatars.githubusercontent.com/u/1316415?v=3","gravatar_id":"","url":"https://api.github.com/users/philipwhiuk","html_url":"https://github.com/philipwhiuk","followers_url":"https://api.github.com/users/philipwhiuk/followers","following_url":"https://api.github.com/users/philipwhiuk/following{/other_user}","gists_url":"https://api.github.com/users/philipwhiuk/gists{/gist_id}","starred_url":"https://api.github.com/users/philipwhiuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philipwhiuk/subscriptions","organizations_url":"https://api.github.com/users/philipwhiuk/orgs","repos_url":"https://api.github.com/users/philipwhiuk/repos","events_url":"https://api.github.com/users/philipwhiuk/events{/privacy}","received_events_url":"https://api.github.com/users/philipwhiuk/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T12:16:02Z","updated_at":"2016-03-08T12:16:02Z","body":"From the trace this looks like IMAP, not WebDAV/Exchange\r\n\r\nI think we need to be slightly more intelligent and less prone to erroring out on basic IO disconnection behaviour - poor mobile signal is not a K-9 error."}}