Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D3C85431FB6 for ; Tue, 15 May 2012 03:57:59 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6Um7+XrfhX4z for ; Tue, 15 May 2012 03:57:59 -0700 (PDT) Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 3A759431FAE for ; Tue, 15 May 2012 03:57:59 -0700 (PDT) Received: by qcsk26 with SMTP id k26so5280231qcs.26 for ; Tue, 15 May 2012 03:57:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:x-gm-message-state; bh=d3FREM99bphaNqPRs73IzK7PBfC2OR7DlWvl8WmkuHI=; b=G5huZoEdcFTE5/fZSBUuNe5UlRctFjO7CDJ6ajdpppoQLTJMs07U9CI1/H1DfzkYFm UyZPNhMFAKpPZOKDp6yRakuh8IJiyU/xBQbAXpqe6MT8L0OG0x+Ab7AGYwY8bRbMAlH1 sGTLsP9lGszmtCn9AsR2o7SiIRqTlcYgmBKhRg/ufAXVpAx9pZaX3U+CHSinJb3/X+xy TYQao2CpAtW0M2R5lDBxnFg1ZiWPp8DXxMaYtlfpC7lr0l3+XzPHRJtIiNXELPrspOno g0u6H7jCUdQ3QI1J1EBkkB6EdGk9L3om4RDFIgyKyv5zzp4Sx51yBOYcZgNh6rI2qSNM C6Zg== Received: by 10.224.205.6 with SMTP id fo6mr2511276qab.73.1337079477398; Tue, 15 May 2012 03:57:57 -0700 (PDT) Received: from localhost (nikula.org. [92.243.24.172]) by mx.google.com with ESMTPS id x10sm2322377qan.1.2012.05.15.03.57.55 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 03:57:56 -0700 (PDT) From: Jani Nikula To: bryan hunt , Robert Horn Subject: Re: Using procmail to set tags In-Reply-To: <1337076890.12535.2.camel@dsktp> References: <1337076890.12535.2.camel@dsktp> User-Agent: Notmuch/0.11.1+222~ga47a98c (http://notmuchmail.org) Emacs/23.1.1 (i686-pc-linux-gnu) Date: Tue, 15 May 2012 10:57:54 +0000 Message-ID: <87zk9990el.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQl+ylrIvijMWqru6tB7vH8050tWzrkQWR7fwfhVdxN5DCKcKSOpi60ykaz+yTAit5VrPpcR Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Tue, 15 May 2012 10:58:00 -0000 On Tue, 15 May 2012 11:14:50 +0100, bryan hunt wrote: > On Mon, 2012-05-14 at 19:34 -0400, Robert Horn wrote: > > Is it practical (and has anyone documented) using a procmail setup to > > set initial tags for messages using notmuch? > > > > I've just started using emacs-notmuch to read mail, and I'm using a > > system where I have procmail filters to bin mail by category into > > folders. I can continue this using folder:value for searching, but one > > reason notmuch interests me is the potential to do more. > > > > It's practical for me to assign potentially overlapping tags with a more > > sophisticated procmail setup. Notmuch tags enable having multiple tags > > on one email. > > > > I don't know enough about the procmail/notmuch process to see just how > > to make this happen. I'm hoping that someone has already done something > > similar. > > > > R Horn > > rjhorn@alum.mit.edu > > You could have procmail fire a python script to add or remove tags based > upon message content. Note that you need to run 'notmuch new' after the message has been delivered in order to modify the tags. Otherwise notmuch does not know about the message. > The problem is that the tag removal isn't being saved. > I've created a bug report with the developer: > > https://bitbucket.org/spaetz/cnotmuch/issue/1/removing-tags-doesnt-seem-to-be-saving That repository is obsolete; the notmuch python bindings have been merged into upstream notmuch. If you still have problems, please report them on this list. J.