Dovecot default directory separator which is apparently '.'
I looked up the source and it seems the problem is aerc does a path join here: https://git.sr.ht/~sircmpwn/aerc/tree/master/commands/msg/archive.go#L70
I'd suggest to implement a string Join there with a configurable seperator which defaults to
/. This wouldn't change anything for all current users but would make it possible to use with default dovecot configuration.
@sircmpwn would you accepct such a patch?
I'd suggest to implement a string Join there with a configurable
seperator which defaults to
/. This wouldn't change anything for all
current users but would make it possible to use with default dovecot configuration.
Should not be configurable but auto detected. The individual workers should be able to tell the delimiter used (for imap it's in the server handshake)
Autodetecting sounds even better, still I have no idea how to do this. Do we need to support Pop3 or just imap? Does aerc already save the headers somewhere?
Do we need to support Pop3 or just imap? Every worker type (imap / maildir /notmuch)
Does aerc already save the headers somewhere? The mail headers? You don't need them. What you need is parts of the imap protocol exchange for imap, for maildir it will be the path separator of the OS ("/" in all supported OSes) and for notmuch we don't care (:archive doesn't work)
for maildir it will be the path separator of the OS ("/" in all supported OSes)
Actually, maybe this should be configurable for maildir. In the maildir++ format, '.' is used as the separator.
Though perhaps it makes more sense to configure it in accounts.conf by pointing to maildir++:// or something and then inferring the separator from that?
In any case, we don't have great support for maildir++ yet so maybe we don't need to worry about it now.
The mail headers? You don't need them.
No, basically the imap handshake where I can get the separator.
Basically this seems like currently the problem deduces to detect the separator IF the worker is imap, since notmuch has no working archive and maildir defaults to
/. Is this right?
Still the question is, is there a way in aerc to get the imap protocol exchange values?
Then you'll need to modify one of the worker messages in a generic way so that we can pass that to the store... probably models.DirectoryInfo? Not sure but that seems to be the most appropriate one ( I think the path sep is per mailbox? Don't know the RFC by hard)
Hi, just installed aerc and I'm pretty impressed. Is there any chance to get this ":archive year" with my MiaB service (Dovecot) working!? Got "Invalid mailbox name: Name must not have '/' characters" but will have to be able to store my archive within subfolders with aerc. It's a show stopper to not use this great tool...would be great if there is a fix possible...?