--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id E96FC431FB6\r
+ for <notmuch@notmuchmail.org>; Tue, 15 May 2012 00:20:38 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id MkSBacH5NW0W for <notmuch@notmuchmail.org>;\r
+ Tue, 15 May 2012 00:20:38 -0700 (PDT)\r
+Received: from mail-qc0-f181.google.com (mail-qc0-f181.google.com\r
+ [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 5156F431FAE\r
+ for <notmuch@notmuchmail.org>; Tue, 15 May 2012 00:20:38 -0700 (PDT)\r
+Received: by qcsk26 with SMTP id k26so5169059qcs.26\r
+ for <notmuch@notmuchmail.org>; Tue, 15 May 2012 00:20:37 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=google.com; s=20120113;\r
+ h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+ :mime-version:content-type:x-gm-message-state;\r
+ bh=CKugWHBDRtWmgToe6j427WR1iws0p6lUxLCV/xmdB9Q=;\r
+ b=KtXNb7WhxdsSTe6BU9iaLSm2qHfU1CbFqw42eOfQfCl0tXKf8UPgOGP9ORtm8qixuO\r
+ +lWU5roV0h1vQOn0ERZ/4wKxj4qyRyQdY6tcQjk3xh492FrpqRM2H/nIDwvaoMGG1QD+\r
+ 0WNM0qr4grgCmnEdDErv5dT1z5GwWmMazxTSbAMQ4oCvOLs2Wsd9zcPMoj+HmFFBBKIr\r
+ mBaeT8wDY14X0NoQ6L3SQAPyU1Wfdmu4naKgmx/bqQWxL4QJqJ3sPoOS/AaxonVlg+VW\r
+ 8/M+mE4jtdQjraB6LZcumwQK91tRhgP8c5WOmpylXPwgVsXgf2pOy8UtpDDT6gBZ6j8j\r
+ gixg==\r
+Received: by 10.229.137.137 with SMTP id w9mr5384217qct.107.1337066437463;\r
+ Tue, 15 May 2012 00:20:37 -0700 (PDT)\r
+Received: from localhost (nikula.org. [92.243.24.172])\r
+ by mx.google.com with ESMTPS id gw8sm1543072qab.7.2012.05.15.00.20.35\r
+ (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 00:20:36 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Robert Horn <rjhorn@alum.mit.edu>, notmuch@notmuchmail.org\r
+Subject: Re: Using procmail to set tags\r
+In-Reply-To: <m3vcjyl4kg.fsf@quad.robs.office>\r
+References: <m3vcjyl4kg.fsf@quad.robs.office>\r
+User-Agent: Notmuch/0.11.1+222~ga47a98c (http://notmuchmail.org) Emacs/23.1.1\r
+ (i686-pc-linux-gnu)\r
+Date: Tue, 15 May 2012 07:20:33 +0000\r
+Message-ID: <874nrhap1a.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-Gm-Message-State:\r
+ ALoCoQkSO64jFlVHCq3Yvf+RmGffqatMZEvC8Wfp05XSuYAJpS7mwt7UEaDdyPF3l5ryhpHSjUw6\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 15 May 2012 07:20:39 -0000\r
+\r
+On Mon, 14 May 2012 19:34:55 -0400, Robert Horn <rjhorn@alum.mit.edu> wrote:\r
+> Is it practical (and has anyone documented) using a procmail setup to\r
+> set initial tags for messages using notmuch?\r
+\r
+Can you express your initial tags in terms of notmuch searches? If you\r
+can, I'd use the post-new hook of 'notmuch new' to do the initial\r
+tagging. See http://notmuchmail.org/initial_tagging/ and 'man\r
+notmuch-hooks' for some tips. OTOH, there's no real need for tags based\r
+purely on notmuch searches in the emacs ui, because you can setup\r
+notmuch-saved-searches. But YMMV.\r
+\r
+If you can't express your tags in terms of notmuch searches (perhaps\r
+because you want to tag based on List-Id: or some other header notmuch\r
+does not index) you may need to look into notmuch-deliver. It's in the\r
+contrib directory of the notmuch repository:\r
+http://git.notmuchmail.org/git/notmuch/tree/HEAD:/contrib/notmuch-deliver\r
+\r
+Tagging anything in notmuch requires that the message has been\r
+delivered, and 'notmuch new' has been run, which might not be practical\r
+within procmail. IIUC notmuch-deliver combines delivery, 'notmuch new',\r
+and tagging. Disclaimer: I haven't used it myself.\r
+\r
+> I've just started using emacs-notmuch to read mail, and I'm using a\r
+> system where I have procmail filters to bin mail by category into\r
+> folders. I can continue this using folder:value for searching, but one\r
+> reason notmuch interests me is the potential to do more.\r
+\r
+You can, of course, combine folder searches with other searches, and\r
+include them in notmuch-saved-searces.\r
+\r
+HTH,\r
+Jani.\r
+\r
+> It's practical for me to assign potentially overlapping tags with a more\r
+> sophisticated procmail setup. Notmuch tags enable having multiple tags\r
+> on one email.\r
+> \r
+> I don't know enough about the procmail/notmuch process to see just how\r
+> to make this happen. I'm hoping that someone has already done something\r
+> similar.\r
+> \r
+> R Horn\r
+> rjhorn@alum.mit.edu\r
+> \r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r