summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2003-12-04 01:54:55 +0000
committerIan C <ianc@noddybox.co.uk>2003-12-04 01:54:55 +0000
commit8520befe602e9b90d455342068a623f2cf89f631 (patch)
treec180cccf55eac9870101cb564fc28eb8badd698e /doc
parent7d304c66c4870344e9617eb665000183b4f84802 (diff)
This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'doc')
-rw-r--r--doc/INSTRUCTION151
-rw-r--r--doc/README25
2 files changed, 176 insertions, 0 deletions
diff --git a/doc/INSTRUCTION b/doc/INSTRUCTION
new file mode 100644
index 0000000..d4ffc69
--- /dev/null
+++ b/doc/INSTRUCTION
@@ -0,0 +1,151 @@
+
+Usage
+=====
+
+ kbs
+
+
+Description
+===========
+
+kbs works on the simple premise that most people know who will be sending them
+email, or at least have a few trusted domains. It also makes it easy for
+a special keyword in a subject header to be used.
+
+
+Config file format
+==================
+
+The kbs config file is read from $HOME/.kbsrc and is in the form:
+
+[config settings]
+
+[trusted settings]
+
+[domain settings]
+
+Note it is *highly* recommended to set .kbsrc to be only readable by the
+user - this is as passwords are stored in there.
+
+Blank lines and text proceeded with a hash (#) are ignored.
+
+Each token is delimited with white space - if the value you want to use
+includes spaces, simple quote them (with either single or double quotes).
+
+Note that escapes aren't used (to make regular expression writing easier), so
+if you want to include a quote in a string, simply use the other sort of quote.
+If you want both, you're stuck!
+
+To see and example kbsrc file, see kbsrc in the src directory.
+
+
+Config settings
+===============
+
+The config settings are in the general form:
+
+ set variable=value
+
+And understand the following variables:
+
+
+ hostname <FQDN> The Fully Qualified Domain Name of the POP3 server.
+ Defaults to localhost.
+
+ port <port number> The port number to connect to.
+ Defaults to 110.
+
+ username <username> The username to give to the server.
+ Defaults to guest.
+
+ password <username> The password to give to the server.
+ Defaults to an empty string.
+
+ log <path> Log information to the given file (note the file is
+ appended to).
+ If not used, or is an illegal path, logging is to
+ stdout.
+
+ delete_log <path> Logs deleted messages to the given file, which is
+ appended to.
+ If not used, or is an illegal path, logging is to
+ $HOME/.kbs-deletelog.
+
+ timeout <seconds> Number of seconds to allow for no response from the
+ server.
+ Defaults to 60 seconds.
+
+ casesense <on|off> Whether regular expressions are case sensitive.
+ Defaults to case insensitive (off).
+
+ dejunk <on|off> Whether subjects are dejunked before checking.
+ Dejunking here means that anything an alphanumeric
+ character is stripped, and all contiguos white space
+ is reduced to one space.
+ Defaults to off.
+
+ blockhtml <on|off> Whether messages that are pure HTML (content part just
+ reported as "text/html" are blocked.
+ Defaults to off.
+
+ testmode <on|off> Whether things will be really deleted, or just
+ the actions logged. Note that the delete_log is still
+ filled out as if the deletion occured.
+ Defaults to off, though it is recommended to use this
+ for early runs to ensure your rules are not too harsh
+ (or too easy for that matter).
+
+
+Trusted settings
+================
+
+These define users and domains for which mail is let thorugh, regardless of
+other tests.
+
+ trusted_users
+ {
+ username
+ [username]
+ }
+
+ trusted_domains
+ {
+ domain
+ [domain]
+ }
+
+
+Domain settings
+===============
+
+These define the rules applied to a certain domain. Note the order these
+appear in is important, as the first match when checking domain names will
+be used.
+
+ domain <regular expression>
+ {
+ [default block|allow]
+ [block_user <username>]
+ [allow_subject <regular expression>]
+ [block_subject <regular expression>]
+ }
+
+The default says what to do if neither the allow_subject or block_subject are
+matched. If not specified, the default is to allow.
+
+The block user allows a specific username to be blocked. For instance, I've
+noticed that spammers have a great love of emailing from your username at
+a different domain.
+
+The allow_subject means that subjects that match that regular expression are
+always let through.
+
+The block_subject means that subjects that match that regular expression are
+always blocked and deleted.
+
+Note that multiple allow_subject and block_subject commands can be in one
+domain.
+
+
+-------------------------------------------------------------------------------
+$Id: INSTRUCTION,v 1.1.1.1 2003-12-04 01:54:55 ianc Exp $
diff --git a/doc/README b/doc/README
new file mode 100644
index 0000000..facf09f
--- /dev/null
+++ b/doc/README
@@ -0,0 +1,25 @@
+ kbs - A simple (very) POP3 filter
+ =================================
+
+ Copyright 2003 Ian Cowburn
+
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+
+ See INSTRUCTION for instructions on use.
+
+-------------------------------------------------------------------------------
+$Id: README,v 1.1.1.1 2003-12-04 01:54:55 ianc Exp $