Re: Filter question.

Christian Dysthe <[email protected]> Wed, 1 Feb 2012 11:10:13 -0600
Newsgroups gmane.network.tin.user
Message-ID <20120201171013.GA14037@mint>
On 02/01/12 at 05:29pm, Urs Janßen wrote:
> On Wed, Feb 01, 2012 at 09:17:44AM -0600, Christian Dysthe wrote:
> > Thanks! That really helped. One additional question. Most often I want to 
> > add a kill or hot filter on a certain poster. I would use his e-mail/nym 
> > and the part of the msgid that doesn't change. It is possible to add such 
> > a filter interactively, or do I have to edit my filter file?
> 
> That's possible but not very comfortable:
> 
> When reading a message of such a person, press MenuFilterKill (usualy bound
> to '^K' (ctrl-K)). That will bring you into the built in kill-menu which
> looks like:
> 
> Comment (optional)  :
> 
> Kill text pattern   :
> Apply pattern to    :
> 
> Kill Subject:  [test subject                                      ] (y/n): n
> Kill From:     [[email protected]                                  ] (y/n): y
> Kill Msg-Id:   [<[email protected]>            ] (f/l/o/n): f
> 
> Kill Lines: (</>num):
> Enter score for rule (default=100):
> Kill time in days   : Unlimited
> 
> Kill pattern scope  : group.name
> 
> In the optional Comment field you can add a small description like
> "that guy is a jerk"
> 
> "Kill text pattern" can that a manualy crafted rule which will be applied to
> the header selected in "Apply pattern to", both fields can be left blank
> when use at least one of the next fields (Kill Subject/Kill From).
> 
> In your case I suggest to leave the "Kill text pattern"/"Apply pattern to"
> blank and answer the question for "Kill Subject" with 'n'o.
> Then answer the question "Kill From" with 'y'es and answer the
> "Kill Msg-Id" to your needs woth either 'f'ull, 'l'ast or 'o'nly
> (if you like to also kill any responsed to the jerk use 'f'ull, if you like
> to kill only direct responses use 'l'ast and if you like to kill only his
> posting but no responses use 'o'nly).
> 
> Leave "Kill Lines" alone.
> 
> The default of "score for rule" should be ok, like "Kill time in days" (if
> set to someting other than "Unlimited" the rule will expire).
> 
> Now adjust "Kill pattern scope" to either match the group you are currently
> in or the hierarhcie you are curently in or to match any group.
> 
> If you're finished with that you see:
> 
> q=quit e=edit s=save kill description: s
> 
> Choose 'e'dit, that will span your $EDITOR, jump to the end of the file and
> manually remove the "changing-part" of the Message-ID in the rule so the
> line looks like:
> [email protected]>
> 
> And finally exit your editor.
> 
> Tin also a some single-key generic QuickFilterKill usualy bound to ']'.
> It's behaviour can be controlled via the tinrc-vars:
> 
> # Defaults for quick (1 key) kill & auto-selection filters
> # header=NUM  0,1=Subject: 2,3=From: 4=Message-ID: & full References: line
> #             5=Message-ID: & last References: entry only
> #             6=Message-ID: entry only 7=Lines:
> # global=ON/OFF  ON=apply to all groups OFF=apply to current group
> # case=ON/OFF    ON=filter case sensitive OFF=ignore case
> # expire=ON/OFF  ON=limit to default_filter_days OFF=don't ever expire
> default_filter_kill_header=4
> default_filter_kill_global=OFF
> default_filter_kill_case=ON
> default_filter_kill_expire=ON
> default_filter_select_header=4
> default_filter_select_global=ON
> default_filter_select_case=OFF
> default_filter_select_expire=OFF
> 
> But the QuickFilterKill is somewhat limited as it can only add rules for
> either Subject, From or Message-ID ...
> 
> HTH,
> urs

This was really helpful! Thanks again. I very often want to kill a certain 
author. I've found that using 'From' and the part of the mgsid that doesn't
change is the best way. If it had been possible to edit the fields that now
only have options it would be easy to create such filters from the interactive
^K menu. It could look like this:

Kill Subject:  [The CLI rocks!]	 			(y/n/e): 
Kill From:     [[email protected] ] 			(y/n/e): 
Kill Msg-Id:   [<[email protected]>] 	(f/l/o/n/e):

The 'e' means 'edit' and moves you to the left so you can edit the fields 
and for instance turn <[email protected]> into 
*u.newshosting.com* (the part that never changes as you pointed out above).

I hope this is understandable and even makes a little sense. English is not 
my first language.
> -- 
> "Only whimps use tape backup: _real_ men just upload their important stuff
>  on ftp, and let the rest of the world mirror it ;)" - Linus
> 

-- 
//Christian