Hi.
"Stephen Isard" <[email protected]> wrote:
|On Thu, 6 Oct 2016, Steffen Nurpmeso steffen-at-sdaoden.eu |s-nail| wrote:
|> Yes, that special treatment of *folder* for IMAP has to go, if you
|> have set it to a Maildir or directory with MBOXes then this
|> doesn't override $MAIL and "automatically `cd's to *folder*", too.
|> Stephen's idea was that of introducing a new *inbox* variable,
|> which overrides $MAIL if set, and which it is that will be opened
|> upon startup / `account' switch. I think we will go that route.
|
|I keep coming back to the fact that mailx has been working just fine
|with this imap account for the past ten years or so. I agree that
|having to replace Mail/ (or whatever trails the servername) with INBOX
|in the code looks hacky (and I don't know how Gunnar discovered that it
|was the solution). But couldn't s-nail do what mailx does just for the
|sake of backward compatibility, as well as implementing the new more
|rational scheme?
On [stable/{v14.8,stable,latest}] you will find a new *inbox*
variable that is used in preference of $MAIL, and also avoids the
special treatment of *folder* when set. *inbox* can undergo
several expansions itself, like +.
And then i have actually added *imap-delim{,-{{,USER@}HOST}}*,
with a default fallback of "/.": any path that is used (i hope
i have found all occurrences of paths, .. _really_!) will
henceforth (..IMAP..) undergo a special massage that replaces
all occurrences of any members of that variable with the first of
these, e.g.,
? copy . +Burg........er
>>> T14 UID COPY 4 "Burg/er"
* 6 EXISTS
* 3 RECENT
I hope this gets this server going, i have _no_ real idea of IMAP,
i haven't yet read any RFCs (except accidentally: you know, with
a SYNC-DELETE command and a FETCH-BODY i would presumably be
a POP3 fan forever). Any reports would be welcome, especially
shall i have missed some path adjustments. Disconnect and
reconnect seems to work, too, but, really.. Thank you.
Does this make you happy, Stephen?
Thanks. And ciao!
--steffen
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
__________________________________
[email protected]