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 E96FC431FB6 for ; Tue, 15 May 2012 00:20:38 -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 MkSBacH5NW0W for ; Tue, 15 May 2012 00:20:38 -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 5156F431FAE for ; Tue, 15 May 2012 00:20:38 -0700 (PDT) Received: by qcsk26 with SMTP id k26so5169059qcs.26 for ; Tue, 15 May 2012 00:20:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type:x-gm-message-state; bh=CKugWHBDRtWmgToe6j427WR1iws0p6lUxLCV/xmdB9Q=; b=KtXNb7WhxdsSTe6BU9iaLSm2qHfU1CbFqw42eOfQfCl0tXKf8UPgOGP9ORtm8qixuO +lWU5roV0h1vQOn0ERZ/4wKxj4qyRyQdY6tcQjk3xh492FrpqRM2H/nIDwvaoMGG1QD+ 0WNM0qr4grgCmnEdDErv5dT1z5GwWmMazxTSbAMQ4oCvOLs2Wsd9zcPMoj+HmFFBBKIr mBaeT8wDY14X0NoQ6L3SQAPyU1Wfdmu4naKgmx/bqQWxL4QJqJ3sPoOS/AaxonVlg+VW 8/M+mE4jtdQjraB6LZcumwQK91tRhgP8c5WOmpylXPwgVsXgf2pOy8UtpDDT6gBZ6j8j gixg== Received: by 10.229.137.137 with SMTP id w9mr5384217qct.107.1337066437463; Tue, 15 May 2012 00:20:37 -0700 (PDT) Received: from localhost (nikula.org. [92.243.24.172]) by mx.google.com with ESMTPS id gw8sm1543072qab.7.2012.05.15.00.20.35 (version=SSLv3 cipher=OTHER); Tue, 15 May 2012 00:20:36 -0700 (PDT) From: Jani Nikula To: Robert Horn , notmuch@notmuchmail.org Subject: Re: Using procmail to set tags In-Reply-To: References: User-Agent: Notmuch/0.11.1+222~ga47a98c (http://notmuchmail.org) Emacs/23.1.1 (i686-pc-linux-gnu) Date: Tue, 15 May 2012 07:20:33 +0000 Message-ID: <874nrhap1a.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Gm-Message-State: ALoCoQkSO64jFlVHCq3Yvf+RmGffqatMZEvC8Wfp05XSuYAJpS7mwt7UEaDdyPF3l5ryhpHSjUw6 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 07:20:39 -0000 On Mon, 14 May 2012 19:34:55 -0400, Robert Horn wrote: > Is it practical (and has anyone documented) using a procmail setup to > set initial tags for messages using notmuch? Can you express your initial tags in terms of notmuch searches? If you can, I'd use the post-new hook of 'notmuch new' to do the initial tagging. See http://notmuchmail.org/initial_tagging/ and 'man notmuch-hooks' for some tips. OTOH, there's no real need for tags based purely on notmuch searches in the emacs ui, because you can setup notmuch-saved-searches. But YMMV. If you can't express your tags in terms of notmuch searches (perhaps because you want to tag based on List-Id: or some other header notmuch does not index) you may need to look into notmuch-deliver. It's in the contrib directory of the notmuch repository: http://git.notmuchmail.org/git/notmuch/tree/HEAD:/contrib/notmuch-deliver Tagging anything in notmuch requires that the message has been delivered, and 'notmuch new' has been run, which might not be practical within procmail. IIUC notmuch-deliver combines delivery, 'notmuch new', and tagging. Disclaimer: I haven't used it myself. > 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. You can, of course, combine folder searches with other searches, and include them in notmuch-saved-searces. HTH, Jani. > 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 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch