Gnus development mailing list
 help / color / mirror / Atom feed
From: "Arne Jørgensen" <arne@arnested.dk>
Subject: Generate Procmail recipes from Gnus
Date: Tue, 26 Apr 2005 14:07:19 +0200	[thread overview]
Message-ID: <87mzrlrbbc.fsf@arnested.dk> (raw)

[-- Attachment #1: Type: text/plain, Size: 853 bytes --]

Heavily inspired, and even more based on, gnus-sieve.el I created a
way to generate Procmail recipes from inside Gnus.

This way you can add an `procmail' entry to your group parameters like

     (procmail . "^Sender:.*arne@arnested.dk")

and have it turned into recipes like

:0
* ^Sender:.*arne@arnested.dk
~/Maildir/mail.junk/

or

     (procmail "^From:.*larsi" "^Subject:.*gnus")

to 

:0
* ^From:.*larsi
* ^Subject:.*gnus
~/maildir/mail.important/

You will still have to know how to write a Procmail condition, but you
can keep them together with your group parameters and the recipes will
adjust themselves to changing group names.

The format of the action line (the destination of the mail) is decided
by `gnus-procmail-action' (a format string or a function).

Feedback appreciated.

Kind regards,
-- 
Arne Jørgensen <http://arnested.dk/>


[-- Attachment #2: lisp/gnus-prcml.el --]
[-- Type: application/emacs-lisp, Size: 6967 bytes --]

             reply	other threads:[~2005-04-26 12:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-26 12:07 Arne Jørgensen [this message]
2006-04-14 13:58 ` Lars Magne Ingebrigtsen
2006-04-14 14:08   ` Arne Jørgensen
2006-04-14 14:30     ` Lars Magne Ingebrigtsen
2006-04-14 14:36       ` Arne Jørgensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mzrlrbbc.fsf@arnested.dk \
    --to=arne@arnested.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).