9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Risto Salminen <risto.salminen@gmx.com>
To: 9front@9front.org
Subject: Re: [9front] upas/fs: copy messages between IMAP folders
Date: Thu, 10 Jun 2021 14:02:22 +0300	[thread overview]
Message-ID: <C8F24A99DB9FDF5401F7A2A3BBE18237@gmx.com> (raw)
In-Reply-To: <489177A742ECA8D25F4387712C32F0DC@9lab.org>

Hello,

> The only nitpick after using this for a while is re: moves to and from
> the 'Inbox'.
>
> Assuming the following mailboxes:
>
>   term% upas/fs -f /imaps/mail.9lab.org/igor
>   term% echo open /imaps/mail.9lab.org/igor/Hacking Hacking  >/mail/fs/ctl
>
> Moving two message from 'Hacking' to 'Inbox' looks like this:
>
>   term% echo move Hacking 677 674 Inbox >/mail/fs/ctl
>
> Moving messages from 'Inbox' to 'Hacking' looks like this:
>
>   term% echo move mbox 4 3 Hacking >/mail/fs/ctl
>
> Note that the former move requires the IMAP folder name 'Inbox', the
> latter move requires the use of 'mbox' (i.e. 'Inbox' does not work).

This is how it is supposed to work.

The source of the move is the local label by which upas
presents the folder in /mail/fs/, which is implicitly
'mbox' if not explicitly specified.  Therefore ones
inbox, perhaps usually 'Inbox' in the IMAP server, is
commonly presented as 'mbox' by upas, and not by its
actual folder name.

The target, on the other hand, is the name of the folder
in the IMAP server, because the move is done inside the
IMAP server.  The local label defines the IMAP connection,
and therefore it indeed can be different from the actual
name of the folder in the IMAP server.

The confusion therefore arises from the fact that people
usually present their IMAP 'Inbox' as 'mbox' in upas,
but then present every other folder by their actual
names in the IMAP server, for example IMAP 'Hacking'
as 'Hacking' in upas.  In this case, if IMAP 'Hacking'
folder was known as 'nonhacking' by upas, then messages
could be moved as 'move nonhacking 677 674 Inbox' and
'move mbox 4 3 Hacking'.

As a summary, the source is the upas label and the
target is the folder in the IMAP server.

Thanks,
rsal

      reply	other threads:[~2021-06-11  9:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-28 15:10 risto.salminen
2021-05-28 15:29 ` Stanley Lieber
2021-05-28 16:26   ` risto.salminen
2021-05-29  3:50     ` Stanley Lieber
2021-05-29  9:44       ` risto.salminen
2021-05-29 21:41         ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2021-05-31 11:31           ` Risto Salminen
2021-05-31 22:34             ` Lyndon Nerenberg (VE7TFX/VE6BBM)
2021-05-28 22:11 ` kjn
2021-05-31 11:41 ` Risto Salminen
2021-06-09 21:41   ` igor
2021-06-10 11:02     ` Risto Salminen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=C8F24A99DB9FDF5401F7A2A3BBE18237@gmx.com \
    --to=risto.salminen@gmx.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).