UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Dekko 2 account settings

    Scheduled Pinned Locked Moved Support
    27 Posts 5 Posters 5.1k Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • G Offline
        gdegrez
        last edited by gdegrez

        I am experiencing a problem with creating a new account with custom settings in Dekko. I have no problem entering the account connection information (ingoing IMAP server and port, outgoing SMTP server and port, I enter exactly the same as those on my Android phone), but the account does not get validated. I go to the information verification page, but it immediately switches back to the setting page and does not display the message "Your account has been set up successfully". The inbox is nonetheless created, but it is empty. BTW, is it possible to download email messages manually?

        Another related question: is it possible to add a Microsoft exchange account on Dekko 2?

        BQ Aquaris M10 FHD

        1 Reply Last reply Reply Quote 0
        • H Offline
          hummlbach
          last edited by hummlbach

          Hi @gdegrez

          please enable logging by following the instructions in this post:
          https://forums.ubports.com/post/13127
          You can see the end result (for the config file) in this post:
          https://forums.ubports.com/post/17125
          Then try it again and have a look at the log.

          G 1 Reply Last reply Reply Quote 1
          • G Offline
            gdegrez @hummlbach
            last edited by gdegrez

            @hummlbach said in Dekko 2 account settings:

            please enable logging by following the instructions in this post:
            https://forums.ubports.com/post/13127

            I did that, here is my dekkod.conf file:
            [FileLog]
            Enabled=0
            Path=/home/phablet/dekkod.log

            [LogCategories]
            IMAP=1
            Messaging=1
            POP=1
            SMTP=1

            [StdStreamLog]
            Enabled=1

            [Syslog]
            Enabled=0

            And here is dekkod-notify.log:
            dekko.accounts.list: Adding accounts (7) to list
            dekko.accounts.list: Removing accounts (7) from list
            dekko.accounts.list: Adding accounts (8) to list

            The new account inbox is created, but it remains empty. And I don't know how to force email downloads, if it's at all possible.
            The account settings are as shown in the screen shot below.
            screenshot20190421_092123150.png

            BQ Aquaris M10 FHD

            1 Reply Last reply Reply Quote 0
            • H Offline
              hummlbach
              last edited by

              The interesting thing would be the dekkod.log (not the dekkod-notify.log) ^^.
              According to your config the log could be in your home now and should also be in .cache/upstart/dekkod.log.
              (If theres no log yet, you need to restart dekkod by executing restart dekkod or by rebooting the phone.)

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                gdegrez @hummlbach
                last edited by

                @hummlbach said in Dekko 2 account settings:

                The interesting thing would be the dekkod.log (not the dekkod-notify.log) ^^.

                OK. I quitted Dekko2 and then restarted it from the command line as you suggested. Here is the log. (I put only what I guess are the interesting lines, the file is too long)

                [6505] avr. 21 17:36:30 [Warning] void QCopClient::connectToServer() QLocalSocket::ServerNotFoundError "QLocalSocket::connectToServer: Invalid name"
                [6505] avr. 21 17:36:30 [Debug] MessageServer ctor begin
                [6505] avr. 21 17:36:30 [Debug] opening database
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Will attempt to establish push email for account 1 "Privé" in 0 seconds
                [6505] avr. 21 17:36:30 [Debug] Registering service: "imap4" for account: 1
                [6505] avr. 21 17:36:30 [Debug] Registering service: "smtp" for account: 1
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Will attempt to establish push email for account 8 "ULB" in 0 seconds
                [6505] avr. 21 17:36:30 [Debug] Registering service: "imap4" for account: 8
                [6505] avr. 21 17:36:30 [Debug] SMTP :  Fetching capabilities from the server...
                [6505] avr. 21 17:36:30 [Debug] Registering service: "smtp" for account: 8
                [6505] avr. 21 17:36:30 [Debug] Messaging :  IDLE Session: Opening...
                [6505] avr. 21 17:36:30 [Debug] Messaging :  IDLE session opened, state 3
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Attempting to restart push email for account 1 "Privé"
                [6505] avr. 21 17:36:30 [Warning] Would not determine server/action completing
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Attempting to establish push email for account 1 "Privé"
                [6505] avr. 21 17:36:30 [Debug] Messaging :  HasPersistentConnection for  1 changed to true
                [6505] avr. 21 17:36:30 [Warning] Would not determine server/action completing
                [6505] avr. 21 17:36:30 [Debug] Messaging :  IDLE Session: Opening...
                [6505] avr. 21 17:36:30 [Debug] Messaging :  IDLE session opened, state 3
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Attempting to restart push email for account 8 "ULB"
                [6505] avr. 21 17:36:30 [Warning] Would not determine server/action completing
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Attempting to establish push email for account 8 "ULB"
                [6505] avr. 21 17:36:30 [Debug] Running action TransmitMessagesRequest 27938762260481
                [6505] avr. 21 17:36:30 [Debug] SMTP :  newConnection
                [6505] avr. 21 17:36:30 [Debug] SMTP :  Open SMTP connection
                [6505] avr. 21 17:36:30 [Debug] Messaging :  QMailTransport::Socket::Socket SET PROXY host= "" port= 0
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Opening connection -  "smtp.ulb.ac.be" : 587  SSL
                [6505] avr. 21 17:36:30 [Debug] Running action RetrieveMessageListRequest 27938762260482
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Setting imap strategy 31ImapRetrieveMessageListStrategy
                [6505] avr. 21 17:36:30 [Debug] IMAP :  "1" About to open connection "gerard.degrez@yahoo.fr" "imap.mail.yahoo.com"
                [6505] avr. 21 17:36:30 [Debug] Messaging :  QMailTransport::Socket::Socket SET PROXY host= "" port= 0
                [6505] avr. 21 17:36:30 [Debug] Messaging :  Opening connection -  "imap.mail.yahoo.com" : 993  SSL
                [6505] avr. 21 17:36:30 [Debug] Messaging :  SMTP : connection established
                [6505] avr. 21 17:36:30 [Warning] socketError: 13 : "Error during SSL handshake: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol"
                [6505] avr. 21 17:36:30 [Debug] SMTP :  Closed connection: "Socket error"
                [6505] avr. 21 17:36:30 [Debug] Action completed 27938762260481 result failure
                [6505] avr. 21 17:36:30 [Debug] SMTP :  Could not fetch capabilities...trying again after  1 seconds
                ...
                [6505] avr. 21 17:41:30 [Debug] IMAP :  "2" About to open connection "gdegrez" "imap.ulb.ac.be"
                [6505] avr. 21 17:41:30 [Debug] Messaging :  QMailTransport::Socket::Socket SET PROXY host= "" port= 0
                [6505] avr. 21 17:41:30 [Debug] Messaging :  Opening connection -  "imap.ulb.ac.be" : 143  SSL
                [6505] avr. 21 17:41:30 [Debug] Messaging :  IMAP : connection established
                [6505] avr. 21 17:41:30 [Warning] socketError: 13 : "Error during SSL handshake: error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol"
                [6505] avr. 21 17:41:30 [Debug] Action completed 27938762260488 result failure
                
                

                BQ Aquaris M10 FHD

                1 Reply Last reply Reply Quote 0
                • G Offline
                  gdegrez
                  last edited by

                  Problem solved. I removed the SSL encryption for both IMAP and SMTP servers, and it now works.

                  What about the other question: is it possible to connect to a Microsoft exchange account on Dekko2 ?

                  BQ Aquaris M10 FHD

                  G H 2 Replies Last reply Reply Quote 0
                  • G Offline
                    guru @gdegrez
                    last edited by

                    I connect to Microsofts servers via IMAP and SMTP to read my mails of my company Exchange server. The connect details are:

                    imaps://username@company.com@pod51010.outlook.com/INBOX
                    smtp://username@company.com@pod51010.outlook.com:587
                    
                    G 3 Replies Last reply Reply Quote 1
                    • H Offline
                      hummlbach @gdegrez
                      last edited by

                      @gdegrez mhmm, not using ssl might be a (bad) work around for now, but actually that is working with encryption... but I haven't got an idea what goes wrong there... 😕

                      G 1 Reply Last reply Reply Quote 0
                      • G Offline
                        guru @hummlbach
                        last edited by

                        One has to use in this case STARTTLS.

                        matthias

                        1 Reply Last reply Reply Quote 0
                        • G Offline
                          gdegrez @guru
                          last edited by gdegrez

                          @guru
                          I tried to enter the settings from Dekko2's GUI without success. In which file are these settings stored?
                          On my Android phone, I noticed that there are no outgoing mail settings for the exchange server. I guess it's because it's the same as the incoming mail server, right?

                          An unrelated issue: when I click on "reply to all", the app crashes.

                          BQ Aquaris M10 FHD

                          G 1 Reply Last reply Reply Quote 0
                          • G Offline
                            guru @gdegrez
                            last edited by

                            @gdegrez said in Dekko 2 account settings:

                            @guru
                            I tried to enter the settings from Dekko2's GUI without success. In which file are these settings stored?

                            They are stored in some database files and I found no way to change/add such configs. This is what I would call bad design.

                            On my Android phone, I noticed that there are no outgoing mail settings for the exchange server. I guess it's because it's the same as the incoming mail server, right?

                            No, at least the DNS and port could be different.

                            An unrelated issue: when I click on "reply to all", the app crashes.

                            Welcome in the club. 😞 You will face more issues (search the forum to be prepared.)

                            G 1 Reply Last reply Reply Quote 0
                            • G Offline
                              gdegrez @guru
                              last edited by

                              @guru said in Dekko 2 account settings:

                              They are stored in some database files and I found no way to change/add such configs.

                              Would you know the name of the file? At least, I could see the impact of changes performed with the GUI.

                              No, at least the DNS and port could be different.

                              Yes, the port is different. In your example, pod51010.outlook.com is the server's internet name, right? and it's the same for both incoming and outgoing servers.

                              BQ Aquaris M10 FHD

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                guru
                                last edited by guru

                                The account settings are stored in MazDB files. You can find them by using something like (ofc with your account data):

                                phablet@ubuntu-phablet:~$ for f in `find .config/dekko2.dekkoproject .local/share/dekko2.dekkoproject -type f` ; do grep guru $f ; done
                                Binary file .local/share/dekko2.dekkoproject/mazdb/identities.db/000183.ldb matches
                                Binary file .local/share/dekko2.dekkoproject/mazdb/identities.db/000073.ldb matches
                                phablet@ubuntu-phablet:~$ strings .local/share/dekko2.dekkoproject/mazdb/identities.db/000183.ldb
                                /identity/4
                                8{"data":{"email
                                "guru@unixarea.de","type":"primitive"},"id":{
                                name
                                Y4Matthias ApitzZW
                                parentId
                                replyTo
                                signatur.
                                Sent using Dekko from my Ubuntu device\nhttp://www.=
                                P/    +49 176 38902045R~
                                <object"}
                                

                                Re/ MazDB see http://launchpad.net/maz-db

                                G 1 Reply Last reply Reply Quote 0
                                • G Offline
                                  gdegrez @guru
                                  last edited by

                                  @guru Well, I could find the file for my first identity, but that includes no info on the outgoing and ingoing mail servers. And I couldn't find the files for the 2 other identities.

                                  No way to set up my account on the exchange server. All attemps unsuccesful 😞

                                  BQ Aquaris M10 FHD

                                  G 1 Reply Last reply Reply Quote 0
                                  • G Offline
                                    guru @gdegrez
                                    last edited by

                                    I spent some time glancing through the sources but could not find the way the account setup is written.

                                    It's a pitty that the original developer can not help for whatever reason and no one else is giving a talk or a workshop, for example via webEx, to get others to speed.

                                    LakotaubpL 1 Reply Last reply Reply Quote 0
                                    • LakotaubpL Offline
                                      Lakotaubp @guru
                                      last edited by

                                      @guru Maybe you missed this but plans are underway for Dekko2 with a hackathon next weekend https://forums.ubports.com/topic/2645/dekko2-hackathon-one-week-to-go

                                      G 1 Reply Last reply Reply Quote 1
                                      • G Offline
                                        guru @Lakotaubp
                                        last edited by

                                        I've heard about it , but did not see any agenda or content. Will this be recorded or live streamed. My problem is, that I have had already compromised my participation in a Ramadama in an association and would need (for me) good reasons to cancel this.

                                        1 Reply Last reply Reply Quote 0
                                        • D Offline
                                          domubpkm
                                          last edited by domubpkm

                                          For info, seen on gitlab, we can see dekko 2 issues which should be addressed during hackaton :
                                          For example :
                                          screenshot20190427_134045182.png

                                          1 Reply Last reply Reply Quote 0
                                          • H Offline
                                            hummlbach
                                            last edited by

                                            Please keep in mind: that doesn't mean all of them will be fixed. Just created a board and suggested some issues. 'Even if we only got a handful finished, I would be happy.' (thx Nicholas for lenting me your words ^^)

                                            G 1 Reply Last reply Reply Quote 0
                                            • G Offline
                                              guru @hummlbach
                                              last edited by

                                              Apart of fixing certain issues, what IMHO is most necessary is an architecture overview of the dekko processes/threads (as a schema) and of the source tree where's what piece of code. Is this planned?

                                              1 Reply Last reply Reply Quote 0
                                              • First post
                                                Last post