unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Procmail regex group reuse
@ 2013-03-13 15:16 Guyzmo
  2013-03-13 19:16 ` Istvan Marko
  0 siblings, 1 reply; 3+ messages in thread
From: Guyzmo @ 2013-03-13 15:16 UTC (permalink / raw)
  To: Notmuch

Hello,

    I have looked over that usage pattern over the procmail doc and
mailing lists for some time now, and it seems no one ever asked the
question:

    Would it be possible to reuse a part of the match regexp in procmail
so it can be reused in the action part of the rule. Something like the
following:

--------8<----------------8<----------------8<---------------8<--------
:0:notmuch.lock
* .*foo\+\(\w+\)@mydomain\.tld.*
{ 
    TAGS="${TAGS} $1"
}
-------->8---------------->8---------------->8--------------->8--------

    where "$1" would be the group match (like `\1` in sed). I used 
to do it easily when I was using sup, and I really miss it now that I
have switched to notmuch.

    Maybe I shall use another mail matching program like formail, or 
shall I write a patch for it, but I'd like first to ask here if someone 
had the same issue, and found a solution.

-- 
Guyzmo

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

end of thread, other threads:[~2013-03-13 22:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-13 15:16 Procmail regex group reuse Guyzmo
2013-03-13 19:16 ` Istvan Marko
2013-03-13 22:09   ` guyzmo+notmuch

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).