mailing list archives

meli community discussions

⚠️ if something does not work as intended when interracting with the mailing lists,
reach out Github mirror Gitea repo @epilys:matrix.org

E-mail headers
From: roberto.diremigio@hey.com
Date: Wed, 16 Sep 2020 15:02:21 -0000
Message-ID: 160026854170.22144.16063588445444947690@snf-804220.localdomain
more …View raw Download as eml (RFC 5322 format)
Hello,
I'm trying to set up meli to work with the Outlook account provided by my university and I am having some difficulties.

Here's the TOML (with sensitive info left out)
```
[accounts."Roberto@UU"]
root_mailbox = "INBOX"
format = "imap"
subscribed_mailboxes = ["*" ]
identity = ""
index_style = "Conversations"
display_name = ""
mailboxes = { "INBOX" = { alias = "Inbox" } }

# IMAP-specific options for this account
server_hostname="mail.uu.se"
server_username=""
server_password=""
server_port="993"

[composing]
send_mail = { hostname = "mail.uu.se", port = 587, auth = { type = "auto", username = "", password = { type = "raw", value = "" } }, security = { type = "STARTTLS" } }
```

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`. If I add an alias for any other folder, I get a warning message: `Account `Roberto@UU` mailbox `Sent` configured but not present in account's mailboxes. Is it misspelled?`
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.

  Roberto
E-mail headers
From: epilys@nessuent.xyz
Date: Thu, 17 Sep 2020 20:46:44 +0000
Message-ID: gtn57.doavavw9rkjp@nessuent.xyz
more …View raw Download as eml (RFC 5322 format)
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)
E-mail headers
From: roberto.diremigio@hey.com
Date: Sun, 27 Sep 2020 11:55:48 +0000
Message-ID: 160120774853.9639.1386263814807880659@snf-804220.localdomain
more …View raw Download as eml (RFC 5322 format)
Hi! Thanks for the detailed how-to for debugging the IMAP connection.

I ran imapshell and LIST "" "*" returns:

S: * LIST (\HasNoChildren) "/" Calendar
* LIST (\HasChildren) "/" Contacts
* LIST (\HasNoChildren) "/" "Deleted Items"
* LIST (\HasNoChildren) "/" Drafts
* LIST (\Marked \HasNoChildren) "/" INBOX
* LIST (\HasNoChildren) "/" Journal
* LIST (\HasNoChildren) "/" "Junk Email"
* LIST (\HasNoChildren) "/" Notes
* LIST (\HasNoChildren) "/" Outbox
* LIST (\HasNoChildren) "/" "Sent Items"
* LIST (\HasNoChildren) "/" Tasks

Regarding the other issue. The "sent" message was saved to INBOX and never sent.
E-mail headers
From: meli-general@meli.delivery
Date: Sun, 27 Sep 2020 11:55:48 +0000
Message-ID: 160120775110.19661.12736540841151871203@mail
more …View raw Download as eml (RFC 5322 format)

    
E-mail headers
From: epilys@nessuent.xyz
Date: Sun, 27 Sep 2020 17:59:50 +0000
Message-ID: hbxbz.0lavb05kc2x6@nessuent.xyz
more …View raw Download as eml (RFC 5322 format)
On Sun, 27 Sep 2020 11:55:48 -0000 roberto.diremigio--- via meli-general <meli-general@meli.delivery> wrote:
>I ran imapshell and LIST "" "*" returns:

Thank you for your reply! I have two notes here:

1. the subscription status of a mailbox is returned by LSUB so if it's not much trouble, do check out if LSUB returns these mailboxes or not; if not that means meli ignores them.
2. So it seems this server does not support the standard way of defining special mailboxes and meli doesn't recognise "Sent Items" as the Sent folder. You must explicitly define the special mailboxes in the account configuration:

  [accounts.account-name]
  format = "imap"
  ...8<-----8<...snip...
  subscribed_mailboxes = [ "*", ]
    [accounts.account-name.mailboxes]
    "Sent Items" = { usage="Sent" }
    "Deleted Items" = { usage="Trash" }
    "Junk Email" = { usage="Junk" }

 the configuration file documentation (`man meli.conf`) mentions these settings.

>Regarding the other issue. The "sent" message was saved to INBOX and never sent.

Is there any SMTP error notification? Can you retry mailing yourself?
E-mail headers
From: roberto.diremigio@hey.com
Date: Mon, 28 Sep 2020 16:51:23 +0000
Message-ID: 160131188399.17608.14056427871415125859@snf-804220.localdomain
more …View raw Download as eml (RFC 5322 format)
Hello again! So, LSUB returns an empty string. I will try your suggestion in point 2 and also test sending an email and report.
  Roberto
E-mail headers
From: meli-general@meli.delivery
Date: Mon, 28 Sep 2020 16:51:23 +0000
Message-ID: 160131188914.19661.3607022107080103770@mail
more …View raw Download as eml (RFC 5322 format)

    
E-mail headers
From: epilys@nessuent.xyz
Date: Mon, 28 Sep 2020 16:52:39 +0000
Message-ID: hexh2.bs7d90jrckx@nessuent.xyz
more …View raw Download as eml (RFC 5322 format)
On Mon, 28 Sep 2020 16:51:23 -0000 roberto.diremigio wrote:
>Hello again! So, LSUB returns an empty string.

This unfortunately means none of your mailboxes are subscribed; the server appears to be unexpectedly configured 😞. Unfortunately meli lacks the ability to deal with unsubscribed mailboxes in IMAP right now. Web clients might have an option to change subscription status, or if you are now comfortable with raw IMAP now you can use:

- SUBSCRIBE INBOX
- SUBSCRIBE Drafts
- SUBSCRIBE "Sent Items"
- etc for all mailboxes.

Thank you for your patience :)
E-mail headers
From: roberto.diremigio@hey.com
Date: Tue, 29 Sep 2020 19:31:01 +0000
Message-ID: 160140786172.15007.7793270257389951558@snf-804220.localdomain
more …View raw Download as eml (RFC 5322 format)
Thanks for your help!
I have run SUBSCRIBE for INBOX and "Sent Items" and now LSUB "" "*" does return them. When I open meli I see both folders. Success!

Still no luck with sending emails, though and I see no errors. I'm testing it by trying to send an email to a disposable address generated by mintemail.com
E-mail headers
From: meli-general@meli.delivery
Date: Tue, 29 Sep 2020 19:31:01 +0000
Message-ID: 160140786426.19661.16101318922832171240@mail
more …View raw Download as eml (RFC 5322 format)

    
E-mail headers
From: roberto.diremigio@hey.com
Date: Wed, 04 Nov 2020 17:00:29 +0000
Message-ID: 6464773db54c835503a78da64bfe3092b1e45778@hey.com
more …View raw Download as eml (RFC 5322 format)
Hello again!

I am still struggling with sending emails. I am getting this error
whenever:

Summary: Command parameter not implemented
5.7.4 Unrecognized authentication type
Kind: Authentication

Roberto
E-mail headers
From: meli-general@meli.delivery
Date: Wed, 04 Nov 2020 17:00:29 +0000
Message-ID: 160450923220.11723.8297092458673132786@mail
more …View raw Download as eml (RFC 5322 format)

    
E-mail headers
From: epilys@nessuent.xyz
Date: Sat, 14 Nov 2020 14:04:14 +0000
Message-ID: jshvf.trx8g9cpuz88@nessuent.xyz
more …View raw Download as eml (RFC 5322 format)
Could you send me your SMTP server in private (or here, if you don't mind)? I want to see what authentication methods it supports and if I can implement it!

Thank you :)
E-mail headers
From: roberto.diremigio@hey.com
Date: Sat, 14 Nov 2020 14:51:09 +0000
Message-ID: 1c8c1770eae7b4f37fb71d90224a6f7c9bd388d5@hey.com
more …View raw Download as eml (RFC 5322 format)

    
E-mail headers
From: epilys@nessuent.xyz
Date: Sat, 14 Nov 2020 18:36:36 +0000
Message-ID: jsufa.7iz9mbyxuf1@nessuent.xyz
more …View raw Download as eml (RFC 5322 format)
On Sat, 14 Nov 2020 15:51:09 +0100 Roberto Di Remigio <roberto.diremigio@hey.com> wrote:
>Hello,
>the SMTP server is mail.uu.se

Thank you, this should be easy to do. Thank you for your patience and help!

I'll post on the mailing list when I have updates.
E-mail headers
From: roberto.diremigio@hey.com
Date: Sat, 14 Nov 2020 22:01:46 +0000
Message-ID: 82db49f2be28bd412cb2942908da7052988ffdd2@hey.com
more …View raw Download as eml (RFC 5322 format)
Thank you for taking the time!
   Roberto

On November 14, 2020, Manos Pitsidianakis <epilys@nessuent.xyz> wrote:
> On Sat, 14 Nov 2020 15:51:09 +0100 Roberto Di Remigio
> <roberto.diremigio@hey.com> wrote:
> >Hello,
> >the SMTP server is mail.uu.se
>
> Thank you, this should be easy to do. Thank you for your patience and
> help!
>
> I'll post on the mailing list when I have updates.
E-mail headers
From: epilys@nessuent.xyz
Date: Sun, 15 Nov 2020 19:51:57 +0000
Message-ID: juspk.whu520alrxhq@nessuent.xyz
more …View raw Download as eml (RFC 5322 format)
Ok, so the problem is:

mail.uu.se is using an old and deprecated auth mechanism (AUTH LOGIN). It's
easy to implement so I did it but new servers don't support it so I can't
test it properly.

I pushed the commit on git master [0], it will be a while before another
release is out but if you're ever willing you can build and test your server
on by checking out the master.

[0] https://github.com/meli/meli

On Sat, 14 Nov 2020 23:01:46 +0100 Roberto Di Remigio <roberto.diremigio@hey.com> wrote:
>Thank you for taking the time!
>   Roberto
>
>On November 14, 2020, Manos Pitsidianakis <epilys@nessuent.xyz> wrote:
>> On Sat, 14 Nov 2020 15:51:09 +0100 Roberto Di Remigio
>> <roberto.diremigio@hey.com> wrote:
>> >Hello,
>> >the SMTP server is mail.uu.se
>>
>> Thank you, this should be easy to do. Thank you for your patience and
>> help!
>>
>> I'll post on the mailing list when I have updates.