Re: Filters

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Nigel Metheringham
日付:  
To: Piete Brooks
CC: Philip Hazel, exim-users
題目: Re: Filters

Piete.Brooks@??? said:
} I suspect you want compound IF statements, rather than nested ....

not normally... I tend to rough classify stuff first and then narrow down - this comes from previously using mailagent which was wonderful but a tad heavy on CPU, ie

  if (contains x-list header) then
     if (x-list contains exim-user) then
        deliver to ~/MH/list/exim-users/
     endif


     .. other conditionals..
  endif


Also, as I suddenly noticed when trying to write the above pseudo-code, you need a way of testing for a random header, and matching its contents. A regexp match and a glob match would also have their uses...


Piete.Brooks@??? said:
} I don't think it should know about MH folders (would be useful to me
} too, but it's not "clean"). What is the big loose about forking
} rvvstore ?

its not that big a problem although rcvstore can be sloppy about locking and so blow away sequences.

Piete.Brooks@??? said:
} Indeed -- that's in. It will fully parse the whole file before doing
} anything ....

I hope its a nice fast parser - my procmail recipes are now 500 lines long, although they do contains refs to mailing lists that I have left.


    Nigel.


-- 
[ Nigel.Metheringham@???   - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House     Tel : +44 113 2345566 x 612 ]
[ Melbourne Street, Leeds LS2 7PS UK. Fax : +44 113 2345656       ]