Re: Filter question.
Urs Janßen <[email protected]> Wed, 1 Feb 2012 17:29:30 +0100
| Newsgroups | gmane.network.tin.user |
|---|---|
| Message-ID | <[email protected]> |
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 -- "Only whimps use tape backup: _real_ men just upload their important stuff on ftp, and let the rest of the world mirror it ;)" - Linus