From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7495 invoked from network); 11 Jun 2021 09:07:23 -0000 Received: from 1ess.inri.net (216.126.196.35) by inbox.vuxu.org with ESMTPUTF8; 11 Jun 2021 09:07:23 -0000 Received: from mout.gmx.net ([212.227.15.15]) by 1ess; Thu Jun 10 07:05:35 -0400 2021 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1623323129; bh=Np9QIdkxlcCakg4q6USZXtG+FEnXm+EAWoty+aE72/A=; h=X-UI-Sender-Class:From:Date:To:Subject:In-Reply-To; b=UNoSMXj1x4wmwWHepfFnb42CS42rZP/fUluTi5ynqnTFfSQtsB0WEjtytvURtFwjI YwdnRoAyxWyMoleI8mflJABg6TxbMw1nKDL4gToOZjmdlgbT8c73qtA2Ml6DOn9jvf nG4VTlhxs+o2NIlb0AP2vQ9c8/8yeynm52dHAd5c= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from purple.my.domain ([84.248.3.43]) by mail.gmx.net (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1Mo6v3-1lXarG36uh-00pgU1; Thu, 10 Jun 2021 13:05:29 +0200 Message-ID: From: Risto Salminen Date: Thu, 10 Jun 2021 14:02:22 +0300 To: 9front@9front.org In-Reply-To: <489177A742ECA8D25F4387712C32F0DC@9lab.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:CpPgYAPDZZEbQxTOLyDDmFq9cEP201lbh8R3dPXLa80+Bos5r5g VRprgpVBKCjdYc+Ninj7kYv2QuKceDU9K/bNX8GvH0WSu7I1PT2UEt/z2N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LBUalCzAYLF0lhXd8/wjW3Jgoc+x9BBw8fuWVKWcP 3y0H094yW6o8pw5irVulOwi3k9pP3DqgdCUoZodt5cIZGAl2Bw/ZXmF9PKfLBehVljzIjrb8s 1tUsoBODpNO6U1togrN3fXnk8tPD6QD6KipErk8oTyQNwqQdbAsXCkcjKBqfYP/uFsXxwOGls Np5jUB1N8OV0wXYGK5QQ5eqDd+FA+sBobbIc3+30tBGDsoO0zoY9GboKQ== List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: self-healing abstract markup-based browser CMS strategy-oriented interface Subject: Re: [9front] upas/fs: copy messages between IMAP folders Reply-To: 9front@9front.org Precedence: bulk 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/c= tl > > 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