[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: small filtering improvement ?



Andrew J Cosgriff <ajc@bing.wattle.id.au> writes:

> ...I'd like to be able to simplify my nnimap filter rules by
> extracting the name of the destination folder straight from the header
> matching rule. eg. something like :
> 
> ...
> "Lists/$1" "Sender: *owner-\\([^@]+\\)@"
> ...
> 
> 
> Any chance of this happening ?

Yup, in nnimap 0.93. The syntax will be like the nnmail syntax, eg:

(setq nnimap-split-rule '(
	...
	("INBOX.\\1"                  "^Sender: owner-\\([^@]+\\)@")
	...
	))

You can also have elisp functions instead of the regexp (but then you
can't use the \\1 syntax, of course).

I think the nnimap split stuff is as capable as the nnmail right now,
except for fancy splitting. Since I don't use fancy splitting I won't
add that myself, but if someone feel the need for it I'm always
accepting patches.

> Or are there bigger/better plans for filtering that I haven't
> noticed ?

Well, a backend-independent mail splitter would be very neat, but that
seem to require lots of changes to Gnus.

-s