From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id C48336DE0314 for ; Fri, 20 Jan 2017 08:22:46 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.363 X-Spam-Level: X-Spam-Status: No, score=0.363 tagged_above=-999 required=5 tests=[AWL=0.000, RDNS_DYNAMIC=0.363] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mm-SBvW2Nv8k for ; Fri, 20 Jan 2017 08:22:45 -0800 (PST) Received: from beesknees.cern.ch (pb-d-128-141-154-183.cern.ch [128.141.154.183]) by arlo.cworth.org (Postfix) with ESMTPS id 0E4A66DE0297 for ; Fri, 20 Jan 2017 08:22:45 -0800 (PST) Received: from belohrad by beesknees.cern.ch with local (Exim 4.84_2) (envelope-from ) id 1cUbv5-0003GT-M6; Fri, 20 Jan 2017 17:20:07 +0100 From: David Belohrad To: Brian Sniffen , David Bremner , notmuch@notmuchmail.org Subject: Re: i do not have INBOX In-Reply-To: <8760l9u408.fsf@istari.evenmere.org> References: <87lgu53no0.fsf@rocinante.cs.unb.ca> <8760l9u408.fsf@istari.evenmere.org> Date: Fri, 20 Jan 2017 17:20:06 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jan 2017 16:22:46 -0000 Dear all, thanks for hint, i'm however not sure how to apply this on afew, which i'd = like to use to move the mails around. The 'default' afew example config is = similar to this: [MailMover] folders =3D INBOX .Trash INBOX =3D 'tag:deleted':.Trash .Trash =3D 'NOT tag:deleted':INBOX if i'm however not able to specify folder as empty, this would not work, ri= ght? (i know, this is rather question for Justus, author of afew, hence put= ting in copy) .d. Brian Sniffen writes: > David Bremner writes: > >> David Belohrad writes: >> >>> >>> my directory does not contain INBOX, as inside the Maildir folder is >>> directly /cur, /new, /tmp. How do I search in this particular one? >> >> Quoting notmuch-search-terms(7) >> >> The exact syntax for maildir folders depends on your mail confi= gura=E2=80=90 >> tion. For maildir++, folder:"" matches the inbox folder (which is= the >> root in maildir++), other folder names always start with "."= , and >> nested folders are separated by "."s, such as folder:.classes.t= opol=E2=80=90 >> ogy. For "file system" maildir, the inbox is typically folder:= INBOX >> and nested folders are separated by slashes, such = as >> folder:classes/topology. >> >>> The question is related to usage of 'afew' to move all mails which >>> have 'deleted' tag into Trash folder (which I have under .Trash) >> >> Hopefully the above is enough to help you formulate the right query. >> You probably also want the options --format=3Dtext0 and --output=3Dfiles= for >> notmuch search. > > The next paragraph of that man page has an important warning for anyone > planning on re-arranging files based on the results of notmuch: > > Both path: and folder: will find a message if any copy of that > message is in the specific directory/folder. > > It's important to filter the names (e.g., `notmuch ...|grep -Fzv > /.|xargs -Ifoo mv foo $MAILDIR/.Trash/cur/`) before relying on them. > > -Brian