Folder Matching doesn't work with Exchange IMAP
Bug summary
When I setup the synchronization with an MS Exchange IMAP Server run by my university geary shows an error message on sending an email about not being able to save the email to the correct folder ("Sent Items").
Setting sent_mail_folder=Sent Items
in geary.ini
doesn't help.
geary -d
output shows that Geary tries to create the folder Sent Items
even though it already exists. The condition at https://gitlab.gnome.org/GNOME/geary/blob/geary-0.12.4/src/engine/imap-engine/imap-engine-generic-account.vala#L733 seems to be going somewhere wrong.
About you
- Geary version: 0.12.4-2
- Installation method: Package from ubuntu-cosmic-universe
- Your desktop: Gnome
- Your operating system and version: Ubuntu 18.10
- Email provider: Exchange Server from University
Steps to reproduce
- Setup Exchange Account that uses a folder named "Sent Items" to store sent emails.
What is the current bug behavior?
What is the expected correct behavior?
Geary uses the folder "Sent Items" to store the Email.
Relevant logs and/or screenshots
The relevant parts of geary -d:
[msg] 17:11:18 0,035048 geary-application.vala:256: Geary 0.12.4 prefix=/usr exec_dir=/usr/bin is_installed=true
[deb] 17:11:18 0,040026 client-web-view.vala:140: Failed to load user CSS file: Failed to open file “/home/jb/.config/geary/user-message.css”: open() failed: No such file or directory
[deb] 17:11:18 0,053934 libmessagingmenu.vala:30: Registered messaging-menu indicator
[deb] 17:11:18 0,000563 unity-launcher.vala:44: set unity launcher entry count to 0
[...Cropped...]
[deb] 17:11:18 0,000690 imap-db-gc.vala:105: [GC:/home/jb/.local/share/geary/account_01/geary.db] GC state: last_reap_time=2019-02-12T01:50:34+0100 last_vacuum_time=never reaped_messages_since=0 free_page_bytes=2613248
[deb] 17:11:18 0,000111 imap-db-gc.vala:128: [GC:/home/jb/.local/share/geary/account_01/geary.db] Reaping last completed on 2019-02-12T01:50:34+0100 (7 days ago)
[deb] 17:11:18 0,000006 imap-db-gc.vala:138: [GC:/home/jb/.local/share/geary/account_01/geary.db] Database never vacuumed (0 messages reaped)
[deb] 17:11:18 0,080402 smtp-outbox-folder.vala:178: Starting outbox postman
[deb] 17:11:18 0,013255 smtp-outbox-folder.vala:141: Filling outbox queue
[deb] 17:11:18 0,073344 smtp-outbox-folder.vala:166: Priming outbox postman with 4 stored messages
[deb] 17:11:18 0,000998 smtp-outbox-folder.vala:300: Outbox postman: Saving [SmtpOutboxEmailIdentifer:1] to sent mail
[deb] 17:11:18 0,000041 imap-engine-generic-account.vala:694: Previously used Sent Items for special folder GEARY_SPECIAL_FOLDER_TYPE_SENT
[deb] 17:11:18 0,000005 imap-engine-generic-account.vala:738: Creating Sent Items to use as special folder GEARY_SPECIAL_FOLDER_TYPE_SENT
[...Cropped...]
[deb] 17:11:19 0,000179 smtp-outbox-folder.vala:304: Outbox postman: Error saving sent mail: Server reports error creating path Sent Items: a005 NO Mailbox already exists.
[deb] 17:11:19 0,000012 geary-controller.vala:1012: Reported problem: GEARY_ACCOUNT_PROBLEM_SAVE_SENT_MAIL_FAILED Error: Server reports error creating path Sent Items: a005 NO Mailbox already exists.
[...Cropped...]