meli-general


Re: Setting up an Outlook account

List meli-general
From Manos Pitsidianakis <epilys@nessuent.xyz>
To meli-general@meli.delivery
Subject [meli-general] Re: Setting up an Outlook account
Date Thu, 17 Sep 2020 23:46:44 +0300
In-Reply-To 160026854170.22144.16063588445444947690@snf-804220.localdomain
References 160026854170.22144.16063588445444947690@snf-804220.localdomain
On Wed, 16 Sep 2020 15:02:21 -0000 roberto.diremigio via meli-general <meli-general@meli.delivery> wrote:
>1. Is there a way to obtain the folder structure for the account? Even
>though I have `subscribed_mailboxes = ["*" ]` in my configuration, I
>can only see `INBOX`.

Hm. I registered an outlook account to test it and I get the full folder
hierarchy. Unfortunately to debug this we'd have to know what the server
returns in response to the IMAP LIST and LSUB commands. Maybe the
missing mailboxes are not actually subscribed in IMAP?

Ways to do this:

## Raw IMAP session:

The IMAP commands are LIST "" "*" and LSUB "" "*"

  - Use the openssl client:
    https://gist.github.com/fedir/1d8f8fb8a5f80090705ef7793936216a
    Each command must be prefixed with a unique string (such as "a",
    "b", .., "z", "aa", "ab", ..)
  - Build and use the `imapshell` tool from meli's repository
  https://git.meli.delivery/meli/meli/src/branch/master/tools
  imapshell will prefix the commands for you.


## Indirectly

Build meli with debug logs and see the IMAP server output in the
logs. To do that run:

  cargo run --feature debug-tracing 2> trace.log

So that the stderr logs are printed to trace.log. Then look for "LIST"
and "LSUB" in the logs. There will be personal info in the logs
(username passwords emails) so don't post it publicly.


>2. When trying to send an email I get this message in the log: `Failed to update envelope <gray3.c5a7a9tvm5cc@it.uu.se> in cache: Database hasn't been initialised. Run `reindex` command` Running `reindex` does not help and I am confident the SMTP configuration is correct.

This looks like a minor bug and not related to SMTP, just the message
accidentally trying to get into an sqlite cache database. Is the rest of
the message submission working? The mail should had been sent and saved
somewhere (Usually Sent folder but you have it missing)