Can't set "sent" folder for SMTP account

Bug #1540149 reported by Michael Terry
92
This bug affects 18 people
Affects Status Importance Assigned to Milestone
Canonical System Image
In Progress
High
Unassigned

Bug Description

I have an IMAP account, which apparently needs a separate SMTP account set up to send from (which is weird UX, if I'm understanding this right...)

But that SMTP account doesn't see the folders of the IMAP account when I'm trying to select a folder to save sent messages in. When I get to the "Select a mailbox" screen, it's just empty. And searching doesn't yield any results.

I'm assuming this is a generic "smtp accounts can't see the imap folders" issue rather than something specific to my account? If it's not generic, I'm happy to provide logs.

I have a "sent" folder selected for the IMAP account, but that's not being used obviously, since that "account" isn't doing the sending.

I'm using 0.6.

Revision history for this message
Dan Chapman  (dpniel) wrote :

Oh shoot it's broken again. You should have been prompted to add an smtp account when you created the imap account. And it sounds like you've ended up with an smtp account that thinks it has a partnering imap config. I need to fix this asap.

In the mean time what you can do is modify the accounts config file ~/.config/dekko.dekkoproject/dekko.dekkoproject.conf

* find the settings group that contains your imap settings and change the "accountType" to "IMAP_SMTP"
* next find the smtp accounts settings group and copy all the msa.* key/value pairs and the identities to the imap account.
* Finally remove the smtp config group and it's group id from the [Accounts] section

You should end up with something like

[Accounts]
a84886e3-f46a-42aa-ab51-ec6b0f7dfd60\AccountId=a84886e3-f46a-42aa-ab51-ec6b0f7dfd60

[a84886e3-f46a-42aa-ab51-ec6b0f7dfd60]
accountType=IMAP_SMTP
identities\1\<email address hidden>
identities\1\organisation=
identities\1\realName=Foo Bar
identities\1\signature=Sent using Dekko from my Ubuntu device
identities\1\useDefaultSignature=true
identities\size=1
imap.AuthType=LoginAuth
imap.auth.pass="AwIPPaRrpxJIKWv1fuJ2mw=="
imap.auth.user=imap.username.com
imap.extension.blacklist=@Invalid()
imap.filterSubscribed=false
imap.host=imap.mail.com
imap.method=SSL
imap.needsNetwork=true
imap.port=993
imap.proxy.system=true
imap.ssl.pemPubKey=@ByteArray(-----BEGIN PUBLIC KEY-----\nMyPUblIcKEy\n-----END PUBLIC KEY-----\n)
imap.starttls=true
migrated-mboxConfig=true
msa.AuthType=LoginAuth
msa.method=SSMTP
msa.smtp.auth.pass="AwLKhH2yfsIL8LIspzuvQg=="
<email address hidden>
msa.smtp.burl=false
msa.smtp.host=send.mail.com
msa.smtp.port=465
msa.smtp.starttls=false
profile.description=MyEmailAccount
profile.name=
profile.organization=
saveToImapEnabled=false
uoa.accountId=0
uoa.enabled=false
uoa.provider=dekko

Changed in dekko:
status: New → Triaged
importance: Undecided → High
milestone: none → 0.6.2
assignee: nobody → Dan Chapman  (dpniel)
Revision history for this message
lunatic-13 (lunatic-13) wrote :

Hi,

I had the same bug...
After modifying the ~/.config/dekko.dekkoproject/dekko.dekkoproject.conf as stated down above everythings works well.
Thanks!

I'm using Aquaris E5, Ubuntu 15.03 (OTA-9), Dekko 0.6

Revision history for this message
Mitchell (curious-mitchell) wrote :

Bug still present in 0.6.11 - any eta for a fix? Will edit the config file for this tonight. Thanks for the workaround!

Revision history for this message
Roberto Resoli (roberto-resoli) wrote :

Same here, hit this bug while configuring Dekko on a new Aquaris m10.

Dan Chapman  (dpniel)
Changed in dekko:
milestone: 0.6.2 → 1.0-beta
status: Triaged → Fix Committed
Revision history for this message
Dan Chapman  (dpniel) wrote :

Hey guys so this has actually been fixed now. Unfortunately it won't be in the next release but the one after.

I'm currently in the process of replacing Dekko's messaging backend and in the process have fixed this.

During account setup (and during account migration) the special-use folders i.e Inbox, Drafts, Sent, Spam etc are picked out and used as defaults. But you can change these in settings if you wish.

If a sent folder can't be found/doesn't exist then a local storage folder is used until a server side folder is selected. Which then all locally stored sent mail will get moved to the newly selected folder. This is a one time operation if you later select a different folder for sent mail no previously sent mail will be moved to that new folder.

You should see this new version hit the store in the next month or so.

Cheers

Changed in canonical-devices-system-image:
importance: Undecided → High
status: New → In Progress
assignee: nobody → Alan Pope  (popey)
milestone: none → 11
Revision history for this message
Marco Graziotti (graziottimarco) wrote :

Same problem for me.
I'm using Meizu MX4, OTA-10.1 and Dekko v. 0.6.11.

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

just upgraded to 0.6.20, i see Dan Chapman said "next month in #5" so i assume it wasn't this time? :)

Anyways, i can't wait to have this fixed :) Meanwhile, I thought i'd share my work-around: put myself in CC :D

I love this app, and the dev team for making it happen! Thanks guys.

Yours,
That sakrecoer guy that would not become the product of a "Free as in beer" email-service.

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

after trying the fix in #1, i found out that just adding an SMTP account enables IMAP too \o/

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

sorry for the noise, it does so but only until restart....

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

Me again... hrm.. sorry about the many messages...

So i managed to get the fix in #1 working, and now i have both outgoing and incoming in the same account-entry, i can set "copy to sent folder" and also "move to trash when removing a message" and while the messages are moved to trash alright, nothing is being copied to the sent folder on send...

i add a copy of my .conf file, maybe someone can help? Otherwise i'll just be patient and stick with my "workaround"

[Accounts]
lotsoffunkycarachters

[lotsoffunkycarachters]
accountType=IMAP_SMTP
identities\1\<email address hidden>
identities\1\organisation=
identities\1\realName=name
identities\1\signature=Sent from my Ubuntu pocket computer
identities\1\useDefaultSignature=false
identities\2\<email address hidden>
identities\2\organisation=
identities\2\realName=name
identities\2\signature=Sent from my Ubuntu pocket computer
identities\2\useDefaultSignature=false
identities\size=1
imap.AuthType=LoginAuth
imap.auth.pass=123
<email address hidden>
imap.extension.blacklist=@Invalid()
imap.filterSubscribed=false
imap.host=imap.mail.com
imap.method=SSL
imap.needsNetwork=true
imap.port=993
imap.proxy.system=true
imap.ssl.pemPubKey=@ByteArray(-----BEGIN PUBLIC KEY-----\lotsoffunkycarachters-----END PUBLIC KEY-----\n)
imap.starttls=true
migrated-mboxConfig=true
msa.AuthType=LoginAuth
msa.method=SSMTP
msa.smtp.auth.pass=123
<email address hidden>
msa.smtp.burl=false
msa.smtp.host=smtp.mail.com
msa.smtp.port=465
msa.smtp.starttls=false
profile.description=public
profile.name=name
profile.organization=
saveToImapEnabled=false
uoa.accountId=0
uoa.enabled=false
uoa.provider=dekko

I tried with "saveToImapEnabled=true" but it didn't do it... Needless to say, my knowledge with these types of configuration files is very poor.

Revision history for this message
Roberto Resoli (roberto-resoli) wrote :

I applied the workaround (thanks), but in order to have the messages copied to the Sent folder I had also to manually add missed names in the.json mail behavior foder. Doing it from the guilty didn't work.

Revision history for this message
Roberto Resoli (roberto-resoli) wrote :

Sorry, read the former comment as follows: "I had also to manually add the missing folder names in the .json mail behavior file. Doing it from the gui didn't work."

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

I tried Roberto Resoli's workaround in #11 and added the missing folder names in the .json mail behavior file, but it didn't work. Running dekko on BQ E5

Revision history for this message
Roberto Resoli (roberto-resoli) wrote :

Hello sakrecoer,
Have you checked that the [lotsoffunkycarachters] account id in ~/.config/dekko.dekkoproject/mailboxConfig.json is matching the IMAP_SMTP account in ~/.config/dekko.dekkoproject/dekko.dekkoproject.conf ?

Moreover, I see that your "dekko.dekkoproject.conf" config is not consistent, for instance you have 2 identities, but "identities\size=1" ...

I think you should remove all configuration files, and start from scratch ...

Changed in canonical-devices-system-image:
milestone: 11 → 12
Revision history for this message
Set Hallstrom (sakrecoer) wrote :

Thank you Roberto. Yes, [lotsoffunkycarachters] account id in ~/.config/dekko.dekkoproject/mailboxConfig.json is matching the IMAP_SMTP account in ~/.config/dekko.dekkoproject/dekko.dekkoproject.conf
I have only one identity, so I removed every line beginning with "identities\2\". It didn't work.

I'll try from scratch...

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

no success....

dekko.dekkoproject.conf:
[Accounts]
[id_string]

[id_string]
accountType=IMAP_SMTP
identities\1\<email address hidden>
identities\1\organisation=Ubuntu Studio
identities\1\realName=Set
identities\1\signature=Set Hallstr\xf6m\nSent from my Ubuntu pocket computer
identities\1\useDefaultSignature=false
identities\size=1
imap.AuthType=LoginAuth
imap.auth.pass="1234"
<email address hidden>
imap.extension.blacklist=@Invalid()
imap.filterSubscribed=false
imap.host=mail.gandi.net
imap.method=SSL
imap.needsNetwork=true
imap.port=993
imap.proxy.system=true
imap.ssl.pemPubKey=@ByteArray(-----BEGIN PUBLIC KEY-----\n blabla \n-----END PUBLIC KEY-----\n)
imap.starttls=true
migrated-mboxConfig=true
msa.AuthType=LoginAuth
msa.method=SSMTP
msa.smtp.auth.pass="1234"
<email address hidden>
msa.smtp.burl=false
msa.smtp.host=mail.gandi.net
msa.smtp.port=465
msa.smtp.starttls=false
profile.description=mobil
profile.name=
profile.organization=
saveToImapEnabled=true
uoa.accountId=0
uoa.enabled=false
uoa.provider=dekko

[global]
imap.enableId=true
preference.previewLines=2
preferences.allowGravatar=true
preferences.autoExpunge=false
preferences.autoLoadImages=true
preferences.defaultAccount=[id_string]
preferences.hideMarkedDeleted=true
preferences.markAsRead=immediately
preferences.preferPlainText=false
preferences.theme=Ubuntu.Components.Themes.Ambiance

-----------------------------
mailboxConfig.json:

{
    "[id_string]": {
        "global": {
            "archive": {
                "enabled": false,
                "folder": "Archive",
                "format": "yearly",
                "keepMboxStructure": false
            },
            "deleted": {
                "autoExpunge": false,
                "markRead": true,
                "moveToTrash": false,
                "preserveFlagged": false
            },
            "drafts": {
                "saveDraftInterval": 1000,
                "saveLocal": true,
                "saveToDrafts": false
            },
            "draftsMailbox": "Drafts",
            "sentMailbox": "Sent",
            "submission": {
                "allowRetries": false,
                "bcc": "",
                "cc": "",
                "includeBCC": false,
                "includeCC": false,
                "includeSignature": "always",
                "quoteOriginalMessage": true,
                "saveToImap": true
            },
            "trashMailbox": "Trash"
        }
    },
}

I am having difficulties hiding the little bit of sadness in my eye...

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

Ihad forgotten to activate save to sent folder within the apps settings, now it works!! \o/ I am having difficulties containing my joy!! Thank you guys! Sorry for the noise!

Revision history for this message
Set Hallstrom (sakrecoer) wrote :

it worked until i restarted dekko, then it was broken again. I give up on this workaround and hold my thumbs for OTA12.

Changed in canonical-devices-system-image:
milestone: 12 → 13
Changed in canonical-devices-system-image:
milestone: 13 → backlog
Revision history for this message
Amapohua (echazarret) wrote : Re: [Bug 1540149] Re: Can't set "sent" folder for SMTP account

Thank you so much, Pat.

Saludos.
Isaac.

2016-09-20 15:56 GMT-05:00 Pat McGowan <email address hidden>:

> ** Changed in: canonical-devices-system-image
> Milestone: 13 => backlog
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1540149
>
> Title:
> Can't set "sent" folder for SMTP account
>
> Status in Canonical System Image:
> In Progress
> Status in Dekko:
> Fix Committed
>
> Bug description:
> I have an IMAP account, which apparently needs a separate SMTP account
> set up to send from (which is weird UX, if I'm understanding this
> right...)
>
> But that SMTP account doesn't see the folders of the IMAP account when
> I'm trying to select a folder to save sent messages in. When I get to
> the "Select a mailbox" screen, it's just empty. And searching doesn't
> yield any results.
>
> I'm assuming this is a generic "smtp accounts can't see the imap
> folders" issue rather than something specific to my account? If it's
> not generic, I'm happy to provide logs.
>
> I have a "sent" folder selected for the IMAP account, but that's not
> being used obviously, since that "account" isn't doing the sending.
>
> I'm using 0.6.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/canonical-devices-system-image/+bug/1540149/+
> subscriptions
>

Revision history for this message
Warren Jacques (warren-bipco) wrote :

This is still not working for me with OTA-13 on Aquaris E5, Dekko 0.6.20 If I create an IMAP account I don't get prompted for SMTP details and I have no way of sending. If I create an SMTP account it is not connected to the IMAP account and it has no mailboxes to save outgoing mail. Will try the workaround, but I find text editing on the phone in Nano really annoying compared to Gedit on the Desktop (we should have Gedit or similar on the phone).

Previously I was using a Yahoo account for outgoing, but now they've upgraded their security Yahoo doesn't like connecting to Dekko as it says it's using a less secure protocol (I know I can bypass this in Yahoo settings, but I thought I'd go with their more secure option).

Thanks

Warren

Changed in canonical-devices-system-image:
assignee: Alan Pope 🍺🐧🐱 🦄 (popey) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.