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 6CC4D6DE00E8 for ; Wed, 28 Dec 2016 00:22:01 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.13 X-Spam-Level: X-Spam-Status: No, score=0.13 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] 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 7ydy03CDKtkP for ; Wed, 28 Dec 2016 00:22:00 -0800 (PST) Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by arlo.cworth.org (Postfix) with ESMTPS id 25F586DE0005 for ; Wed, 28 Dec 2016 00:22:00 -0800 (PST) Received: by mail-pg0-f68.google.com with SMTP id g1so15030711pgn.0 for ; Wed, 28 Dec 2016 00:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version :content-transfer-encoding; bh=KPveixs6B868ceoTbbcNPq1/8HmzB9gUe1epUxOecvY=; b=M6emAVMWrZIo9+RO/OXvt76sIunwRMR37GP79LyUCXy/x2x+YfK/HJSCxX/Baq6aNK lQahRfjJhCf92pDB8lsXzp6N9gFfPVgMbaeoDZjlqtYXIam5y123PeDj05iBIl/UcmTz BMnvbRTdofBrYLoijXPF4lWLmBg7Hz6+UbgUVYiG2x/7WkC3EG+prjlhZgSqbREaQ7/g hqEyorZdOlbkLa2DIPSNraAXNE+GV9Xyph3enAMk/y+d9Nmy9l7bxqnD/ANDvZw3rHPb btCXxrl0EPEdor2kGRR/1/30cGuLT0nwahsmUj0lp44G0hsp/bjdFVtnZlTPZnDOyH+V z90g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-transfer-encoding; bh=KPveixs6B868ceoTbbcNPq1/8HmzB9gUe1epUxOecvY=; b=HSqxi+hT4o79NVgw4zG9j8nk0hQc8O8mHz48WXno0Db0YeXLZ+pKk7DKCEuIpm1L54 2h43KnASakhgNTQ3IfJkO6tJmmcQ+UuAl0EBwV8NC6+wxgZew8XQM2TbMI9rpfu7KOQk alBomJCr2du5N2V5/S3CLAhpN5TfdvVSyWuxu1HDwbL488/iUli/8NuVWylP2jpJT3aq P/65ZGla10TcZQI0dW4jpbV/yZCLul/6LYKCZWAZm8o31gDCcmcup42ZCVNtoGvgHDlc w5b8+uE8jFXrBOqVVnEEPQYD/Nndak295sioh/biXTB8Dz4BPpmQowUAEiMkOE2LOUP1 eOug== X-Gm-Message-State: AIkVDXIo60gBXfavMkunhOJdTwE6Y+F0mS/0RiorUFItLguuhUmTquW92msYs6/vI+zh/Q== X-Received: by 10.99.146.13 with SMTP id o13mr66663810pgd.3.1482913318678; Wed, 28 Dec 2016 00:21:58 -0800 (PST) Received: from localhost ([118.201.58.126]) by smtp.gmail.com with ESMTPSA id k4sm22298032pga.27.2016.12.28.00.21.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 28 Dec 2016 00:21:57 -0800 (PST) From: YANG Ling To: Christoffer =?utf-8?Q?Stjernl=C3=B6f?= Cc: notmuch@notmuchmail.org Subject: Re: Unsure on how initial tagging with afew is supposed to work In-Reply-To: <87a8bgqz15.fsf@vps.i-did-not-set--mail-host-address--so-tickle-me> Date: Wed, 28 Dec 2016 16:21:53 +0800 Message-ID: <87lgv0cvku.fsf@yangling_arch.i-did-not-set--mail-host-address--so-tickle-me> 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: Wed, 28 Dec 2016 08:22:01 -0000 Christoffer Stjernl=C3=B6f writes: > Hello! > > I have the following contents in ~/.config/afew/config: > > # This is the default filter chain > [SpamFilter] > [ClassifyingFilter] > [KillThreadsFilter] > [ListMailsFilter] > [ArchiveSentMailsFilter] > [Filter.1] > query =3D 'tag:killed and tag:new' > tags =3D -unread > message =3D marking killed new email as read > [InboxFilter] > > My expectation is that this will remove the "unread" tag from messages > that are also tagged "killed". This does not happen =E2=80=93 I can find = several > recent messages which are tagged both with "killed" and "unread". > > Why is this a problem? Two reasons! > > 1. Messages with the "unread" tag reside in the new/ directory > physically on the file system, which causes my "you have unread email" > alert to go off, and > > 2. I'd like to understand how to configure automatic tagging with > afew. For example, the OpenBSD mailing list is just tagged "misc" by the > default afew tagger, and I'd love to switch this to "openbsd-misc" or > something. > > How can I accomplish what I expect to be able to? > > Regards, > Christoffer > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > https://notmuchmail.org/mailman/listinfo/notmuch Hi, I am not familiar with afew's source code, but I think your problem is caused by [InboxFilter]. I think this filter will replace `new` tag with `inbox` and `unread` tags. So your [Filter.1] doesn't work just because the message doesn't have `unread` tag. It only has `new` tag. I guess if you change `tags =3D -unread` to `tags =3D -new`, it should work. One more thing, `tag:new` in `query` part is unnecessary. The code below should also work. query =3D tag:killed Hope it helps. Regards, Allen Yang