IMAP TODOs #36
Labels
No Label
IMAP
JMAP
Maildir
Retired
User Experience
User Interface
bsd
bug
contacts
currently worked on
documentation
duplicate
easy
enhancement
help wanted
invalid
linux-gnu
macos
mbox
notmuch
question
security
wishlist
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: meli/meli#36
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
IMAP LIST Extension for Special-Use Mailboxeshttps://tools.ietf.org/html/rfc6154*
Special use configuration should move entirely tomelib
and be modifiable from within the backend. Then IMAP and JMAP can use their special role metadata to update the folder confs2b6f6ab42c
melib
support first)Tagging0eaf178
* needs to parse custom flags as keywords in
imap/protocol_parser.rs
password command in configuration6ca8c3b
Please add support for password command in configuration to TODO list.
Another feature request is to provide tree view of mailbox folders instead of flat view. To see for example Tagged/foo and Tagged/bar (or Tagged.foo and Tagged.bar if not using
LAYOUT=fs
) as a directory structure.Added!
It should be a tree view and not flat. What separator does your account use? Can you provide a screenshot? An IMAP LIST could also be of help.
Nice :)
Actually I'm not yet running meli, because I stopped my configuration when I noticed it required plain text password, so I'm waiting on that to actually migrate from aerc, which I've been using around a month or so, but meli seems more promising.
I'm using
/
as separator (with actual maildir fs layout), but I have no idea whether meli already should present it in directory structure, I just requested that because most programs I use, including K-9 and aerc, doesn't display it as a tree, but if meli already does it, then fine.Alright then.
As far as password commands are concerned, it's trivial to add but it has to be good UX. I'll test it with gpg and pinentry.
6ca8c3b
Addedserver_password_command
for IMAP only. Tested with command:Trailing white space from the output is trimmed.
Okay, I just tried and have hit a few issues. First is that I can't set a command like
"pass foo | head -1"
, piping is not supported (it works inaerc
, which specifies the string to be passed tosh -c
for execution), so I had to save it to a script and set/my/script
as the password command.Once logged in, I only got a handful of folders, just
Draft
,Junk
,Sent
andTrash
, I didn't getINBOX
nor any of the otherTagged/
sub-folders I have. My dovecot maildir format is set like this:mail_location = maildir:/var/mail/%d/%n:LAYOUT=fs:INBOX=/var/mail/%d/%n/INBOX
, which means I'm using filesystem layout, andINBOX
is in its own folder.I think
mailer_cmd
should be possible to be configured specific of accounts. I can't have a singlemailer_cmd
when using many accounts because each requires a different command for setting up password, etc, formsmtp
.Configuration:
Thank you so much for your report,
Yeah
sh -c "$CMD"
should be the solution, though the arguments are split by whitespace right now so my syntax would have issues.Could you post a censored IMAP
LIST
response, if possible?LIST
response would exist in the debug logs, enabled by thedebug-tracing
compilation flag. Runningcargo run --features=debug-tracing 2> debug.log
should be enoughopenssl
likeopenssl s_client -crlf -connect imap.server.tld:993
to connect (instructions)It should be, yes. In general you can override settings on a folder basis, and you could override
mailer_cmd
for each account. This must be fixed!Logged response is this:
This is the full log redacted:
It's noticeable that the folders that are displayed have this
\Foo) "/" Foo
in the LIST response. I'm not sure whether at least INBOX too should also have come with that or not, but it only makes a difference inmeli
.@oblitum It seems the problem is you are not subscribed to those mailboxes. Look for the
LSUB
response in your debug logs. I'm not sure how to deal with this since it's not completely wrong to assume you're not interested in unsubscribed mailboxes, yet it's not correct either. Perhaps there could be an entry like "... andn
others" in the sidebar. And a more complete list of mailboxes in the account status.In any case, you can alter subscription status with
{un,}subscribe-mailbox ACCOUNT_NAME MAILBOX_PATH
PS: Btw, the attributes you're referring to is RFC 6154 SPECIAL-USE which is supported.
But I have
subscribed_mailboxes = ["*"]
in my configuration.I've set it in specific form
subscribed_mailboxes = ["INBOX", "Drafts", "Tagged/meli"]
, and still onlyDrafts
show up.And when executing the
subscribe-mailbox ACCOUNT_NAME INBOX
command from TUI, after confirmation box, I getNot Implemented
as result.I got
INBOX
listed!Looks like the way I've setup dovecot with standalone
INBOX
folder, it doesn't get subscribed by default. Afterdoveadm mailbox subscribe -u me@domain.tld INBOX
,meli
starts listing it.I'm a bit confused, even though it was unsubscribed, why didn't it change to subscribed since I've configured it as subscribed on
meli
config? From what I can tell this looks like two levels of subscription access, one on the server, with higher priority, and another on the client.Another interesting thing. To get subfolders listed, I had to subscribe to the parent folder. This is why any of the
Tagged/boxN
were not being listed. I had todoveadm mailbox subscribe -u me@domain.tld Tagged
and thendoveadm mailbox subscribe -u me@domain.tld Tagged/box1
, afterwards, I need tosubscribed_mailboxes = ["*"]
orsubscribed_mailboxes = ["INBOX", "Tagged", "Tagged/box1"]
(parent folder also needs to be listed here).If I simply remove
subscribed_mailboxes
, then I get folder listing as configured withdoveadm
.All in all, now that I see how to configure it, I'm able to play with meli :)
FWIW, the tree view of subfolders is working as expected.
Actually I'm waiting on per-account
mailer_cmd
for it to be usable daily. It would be nice to have more Vim-like bindings option too, likei
for command instead ofspace
;j
,k
instead of arrows, etc, but I guess I can configure those myself.That's true. Maildir for example doesn't have any notion of mailbox subscription whereas IMAP and JMAP does. It's confusing, the terminology must change.
That's also a confusing thing: what to do in this case. The unsubscribed ancestors could be flattened to a dummy unselectable mailbox.
Perhaps making meli-level subscription opt out instead of opt in would be more intuitive.
I am working on a configuration revision right now, to make overriding better.
@oblitum
9ff54f236b
introduces composing settings override per-account, so a setting like follows should work:@epilys, thx. It's still a little difficult to adopt it at this phase :/ very experimental. I'm having issues with syncing and another thing is that it takes a lot of processing when starting, and keep doing that after couple of minutes.
@oblitum testing still needs to be done, yes.
Are you using a debug or release build?
There's still header caching to be done properly, and IMAP needing to re-download everything is a bottleneck. Clients usually fake stuff by showing entries that are not loaded yet; I haven't done anything in that direction yet.