[OP-226] T#14971 Respect mail_conf.ini settings about special folder paths Created: 02/Dec/15  Updated: 11/May/16  Resolved: 03/Dec/15

Status: Closed
Project: Opush
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.0

Type: Bug Priority: Normal
Reporter: Thomas HILAIRE Assignee: Thomas HILAIRE
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rank: 6933
Sprint: 2016#01

 Description   

Pre-conditions

  • Set "altnamespace: no" in /etc/imapd.conf
  • Restart cyrus: /etc/init.d/cyrus-imapd restart
  • Verify that your special folders are under the INBOX
    $ curl -kv -u "admin@obm24.lyn.lng:admin" imap://obm24/ -X 'LSUB "" *'
    ...
    * LSUB () "/" INBOX/Drafts
    * LSUB () "/" INBOX/SPAM
    * LSUB () "/" INBOX/Sent
    * LSUB () "/" INBOX/Trash
    
  • Adapt your mail_conf.ini to match these folders
    imap.mailbox.draft=INBOX/Drafts
    imap.mailbox.sent=INBOX/Sent
    imap.mailbox.trash=INBOX/Trash
    

Reproduction steps

  1. As usera with any device, delete an email A of your INBOX
  2. As usera with any device, send an email B

Current behavior

  1. NOK the email A is not deleted, it has not been moved in the trash
  2. NOK the email B is not sent, it has not been stored in the sentbox

Expected behavior

  1. OK the email A is deleted, it has been moved in the trash
  2. OKthe email B is well sent, it has been stored in the sentbox

Additional informations



 Comments   
Comment by Stephane COLSON [ 03/Dec/15 ]

OK with version 3.1.2~rc0 on CentOS. Tested with iPhone 5 (iOS 9.1) and Fairphone FP1 (Android 4.2.2)

  1. Send email, email in Sent Folder
  2. Reply email, email in Sent Folder
    # Forward email, email in Sent Folder
  3. Receive email, email in Inbox
  4. Delete email, email in Trash
Comment by Jenkins Continuous Integration Server [ 22/Feb/16 ]

SUCCESS: Integrated in opush-master-3.1 #36
OP-226 Fix failed bumping (thilaire: 58d0820f1e5bb56fd945e6c436c3b1e528a14151)

  • pom.xml
    OP-226 Add integration test about send an email (thilaire: 6555c00db782f4ea99fe37b01b5eb77a927c0c35)
  • integration-testing/opush/src/main/java/org/obm/opush/env/OpushStaticConfiguration.java
  • integration-testing/opush/src/test/java/org/obm/opush/env/GreenMailEnvModule.java
  • integration-testing/opush/src/test/java/org/obm/opush/command/email/SmartReplyHandlerTest.java
  • integration-testing/opush/src/main/java/org/obm/opush/env/OpushConfigurationFixture.java
    OP-226 Send email now takes care of the settings (thilaire: 191607cce449dbdb3c6c85c115754074abb8a311)
  • push-mail/src/test/java/org/obm/push/mail/imap/MockBasedImapMailboxServiceTest.java
  • integration-testing/opush/src/test/java/org/obm/opush/command/email/SmartReplyHandlerTest.java
  • push-mail/src/main/java/org/obm/push/mail/imap/LinagoraMailboxService.java
    OP-226 Delete email now takes care of the settings (thilaire: a1d8e81285396a7b4eaa5cb27c27fdc0cdd9b775)
  • push-mail/src/test/java/org/obm/push/mail/MailBackendTest.java
  • push-mail/src/main/java/org/obm/push/mail/MailBackendImpl.java
  • integration-testing/opush/src/test/java/org/obm/opush/MailBackendGetChangedTest.java
    OP-226 FolderSync now takes care of the settings (thilaire: 037f8e9822d85455cabb35e83483ea33a8dc2ef5)
  • push-mail/src/test/java/org/obm/push/mail/MailBackendImplTest.java
  • integration-testing/opush/src/test/java/org/obm/opush/command/sync/folder/FolderSyncHandlerWithBackendsTest.java
  • push-mail/src/main/java/org/obm/push/mail/MailBackendFoldersBuilder.java
  • integration-testing/opush/src/main/java/org/obm/opush/HierarchyChangesTestUtils.java
  • push-mail/src/test/java/org/obm/push/mail/MailBackendFoldersBuilderTest.java
  • push-mail/src/main/java/org/obm/push/mail/MailBackendImpl.java
  • integration-testing/opush/src/test/java/org/obm/opush/command/sync/SyncTestUtils.java
Comment by Jenkins Continuous Integration Server [ 11/May/16 ]

ABORTED: Integrated in opush-master #262
OP-226 Add integration test about send an email (thilaire: 3826c684b3394d13a1051f6796b78d7a0fa3c1da)

  • integration-testing/opush/src/test/java/org/obm/opush/command/email/SmartReplyHandlerTest.java
  • integration-testing/opush/src/main/java/org/obm/opush/env/OpushStaticConfiguration.java
  • integration-testing/opush/src/main/java/org/obm/opush/env/OpushConfigurationFixture.java
  • integration-testing/opush/src/test/java/org/obm/opush/env/GreenMailEnvModule.java
    OP-226 Send email now takes care of the settings (thilaire: 6f546bc035c6f8764e6d2da920d290e61ef3efdf)
  • push-mail/src/test/java/org/obm/push/mail/imap/MockBasedImapMailboxServiceTest.java
  • push-mail/src/main/java/org/obm/push/mail/imap/LinagoraMailboxService.java
  • integration-testing/opush/src/test/java/org/obm/opush/command/email/SmartReplyHandlerTest.java
    OP-226 Delete email now takes care of the settings (thilaire: 0ce4fc02771ca10caefecaf3d3aa5aea2138470f)
  • integration-testing/opush/src/test/java/org/obm/opush/MailBackendGetChangedTest.java
  • push-mail/src/main/java/org/obm/push/mail/MailBackendImpl.java
  • push-mail/src/test/java/org/obm/push/mail/MailBackendTest.java
    OP-226 FolderSync now takes care of the settings (thilaire: 40bff16a9a88b6f21ab4753c720f515174cc3267)
  • push-mail/src/test/java/org/obm/push/mail/MailBackendImplTest.java
  • push-mail/src/main/java/org/obm/push/mail/MailBackendFoldersBuilder.java
  • integration-testing/opush/src/test/java/org/obm/opush/command/sync/folder/FolderSyncHandlerWithBackendsTest.java
  • push-mail/src/main/java/org/obm/push/mail/MailBackendImpl.java
  • push-mail/src/test/java/org/obm/push/mail/MailBackendFoldersBuilderTest.java
  • integration-testing/opush/src/test/java/org/obm/opush/command/sync/SyncTestUtils.java
  • integration-testing/opush/src/main/java/org/obm/opush/HierarchyChangesTestUtils.java
Generated at Fri Oct 18 13:48:40 CEST 2019 using JIRA 6.1.1#6155-sha1:7188aeec9a6b57d61ea04c52f235f15f55c105e2.