Gnus development mailing list
 help / color / mirror / Atom feed
* Generate Procmail recipes from Gnus
@ 2005-04-26 12:07 Arne Jørgensen
  2006-04-14 13:58 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Arne Jørgensen @ 2005-04-26 12:07 UTC (permalink / 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Generate Procmail recipes from Gnus
  2005-04-26 12:07 Generate Procmail recipes from Gnus Arne Jørgensen
@ 2006-04-14 13:58 ` Lars Magne Ingebrigtsen
  2006-04-14 14:08   ` Arne Jørgensen
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2006-04-14 13:58 UTC (permalink / raw)


Arne Jørgensen <arne@arnested.dk> writes:

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

[...]

> Feedback appreciated.

Seems neat to me, but I don't use procmail/maildir, so I'm not the
best of judges.  :-)  But would you want to include this in Gnus?

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Generate Procmail recipes from Gnus
  2006-04-14 13:58 ` Lars Magne Ingebrigtsen
@ 2006-04-14 14:08   ` Arne Jørgensen
  2006-04-14 14:30     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 5+ messages in thread
From: Arne Jørgensen @ 2006-04-14 14:08 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Arne Jørgensen <arne@arnested.dk> writes:
>
>> Heavily inspired, and even more based on, gnus-sieve.el I created a
>> way to generate Procmail recipes from inside Gnus.
>
> [...]
>
>> Feedback appreciated.
>
> Seems neat to me, but I don't use procmail/maildir, so I'm not the
> best of judges.  :-)  But would you want to include this in Gnus?

Wow, you're following up on old mail -- this one was almost one year
old!

Including it in Gnus would be nice. Just give me a few days to look
over the code to see if any improvements come to mind (I probably have
made some during the last year anyway).

Btw. maildir is not a requirement, but just mentioned in some of the
examples.

Kind regards,

     /arne
-- 
Arne Jørgensen <http://arnested.dk/>




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Generate Procmail recipes from Gnus
  2006-04-14 14:08   ` Arne Jørgensen
@ 2006-04-14 14:30     ` Lars Magne Ingebrigtsen
  2006-04-14 14:36       ` Arne Jørgensen
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Magne Ingebrigtsen @ 2006-04-14 14:30 UTC (permalink / raw)


Arne Jørgensen <arne@arnested.dk> writes:

> Including it in Gnus would be nice. Just give me a few days to look
> over the code to see if any improvements come to mind (I probably have
> made some during the last year anyway).

Cool.  You should probably also include some documentation for
gnus.texi. 

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Generate Procmail recipes from Gnus
  2006-04-14 14:30     ` Lars Magne Ingebrigtsen
@ 2006-04-14 14:36       ` Arne Jørgensen
  0 siblings, 0 replies; 5+ messages in thread
From: Arne Jørgensen @ 2006-04-14 14:36 UTC (permalink / raw)


Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Arne Jørgensen <arne@arnested.dk> writes:
>
>> Including it in Gnus would be nice. Just give me a few days to look
>> over the code to see if any improvements come to mind (I probably have
>> made some during the last year anyway).
>
> Cool.  You should probably also include some documentation for
> gnus.texi. 

Yep. I once started writing something, but now is a good time to
finish it :-)

Kind regards,

     /arne
-- 
Arne Jørgensen <http://arnested.dk/>




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-04-14 14:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-26 12:07 Generate Procmail recipes from Gnus Arne Jørgensen
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

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).