Book description
This book will explain in easy to understand language the
complexities of Procmail. With almost all linux distributions
including procmail as a standard package Unix like systems and
procmail are finding their way into more office and homes leaving
more people wondering how to do 'the clever bits'.
The book will be split into 2 parts - the first part fairly
introductory for new procmail users and the second more of a
reference book for 'power procmail users'. The first part will have
copious examples to help the reader using a mythical company as a
running case study. The second part will provide solutions and tips
and tricks for the more complex features of procmail.
Table of contents
- Copyright
- FOREWORD
- PREFACE
- 1. WHAT IS PROCMAIL?
- 2. SETTING UP PROCMAIL
- 3. SIMPLE FILTERING OF EMAIL WITH PROCMAIL
-
4. MORE COMPLEX FILTERING USING PROCMAIL REGULAR EXPRESSIONS
- REGULAR EXPRESSIONS
- MATCHING BEGINNINGS AND ENDS
- MATCHING INDIVIDUAL CHARACTERS
- CHARACTER CLASSES
- SEQUENCE META-CHARACTERS
- WILDCARD CONFUSION
- WORD BOUNDARIES
- BUILT-IN SHORTCUTS
- DEFINING VARIABLES
- USING THE HEAD AND THE BODY
- OTHER RECIPE FLAGS
- ADDING COMPLEXITY TO CONDITIONAL LINES
- BACKREFERENCES – USING WHAT YOU HAVE ALREADY MATCHED
- SCORING
- EXTERNAL PROGRAMS
- 5. USING PROCMAIL TO MANAGE MAILING LISTS
-
6. TROUBLESHOOTING
-
DIAGNOSTIC MESSAGES
- Autoforwarding mailbox found
- Bad substitution of variable
- [pid] date time (VERBOSE)
- Acquiring kernel-lock (VERBOSE)
- Assigning “x” (VERBOSE)
- Assuming identity of the recipient, VERBOSE=off (VERBOSE)
- Bypassed locking file (VERBOSE)
- Can't determine your mailbox, who are you?
- Can't fork
- Can't unlock “file”
- Closing brace unexpected
- Conflicting options
- Conflicting “flag” suppressed
- Couldn't create path
- Couldn't create or rename temp file
- Couldn't determine implicit lockfile from string
- Couldn't make link to “path”
- Couldn't open “file”
- Couldn't rename bogus “file” into “file”
- Couldn't unlock “file”
- Deadlock attempted on “lockfile”
- Denying special privileges for “name”
- Descriptor “0/1/2” was not open
- Duplicate key found:
- Enforcing stricter permissions on “mailbox”
- Error while writing to “location”
- Exceeded LINEBUF
- Excessive output quenched from “source”
- Executing “program” (VERBOSE)
- Extraneous “flag” ignored
- Extraneous locallockfile ignored
- Failed forking “program”
- File table full
- Filename too long
- Forced unlock denied on “lockfile”
- Forcing lock on “x”
- HOST mismatched “hostname” (VERBOSE)
- Incomplete recipe
- Insufficient privileges
- Internal error: improper type (x) passed to foldertype for folder x
- Invalid field-name:
- Invalid regexp “regular expression”
- Kernel-lock failed
- Kernel-unlock failed
- Linking to “mailfile” (VERBOSE)
- Lock failure on “filename”
- Locking “filename” (VERBOSE)
- Lost “x”
- Match on “string” (VERBOSE)
- Matched “string” (VERBOSE)
- Missing action
- Missing argument
- Missing closing brace
- Missing name
- Missing rcfile
- Missing recipient
- No match on “string” (VERBOSE)
- No space left to finish writing “mailfile”
- Notified comsat: “uesr@offset:file” (VERBOSE)
- Opening “mailfile” (VERBOSE)
- Out of memory
- Processing continued
- Program failure (nnn) of “program”
- Quota exceeded while writing “mailfile”
- Rcfile: “file” (VERBOSE)
- Reiterating kernel-lock (VERBOSE)
- Renaming bogus “file” into “file”
- Rescue of unfiltered data succeeded/failed
- Score: (VERBOSE)
- Skipped: “string”
- Sorry
- Suspicious rcfile “file”
- Terminating prematurely whilst waiting for “child”
- Timeout, terminating “program”
- Timeout, was waiting for “program”
- Truncated file to former size
- Truncating “filename” and retrying lock
- Try praying
- Unexpected EOL
- Unknown user “name”
- Unlocking “lockfile” (VERBOSE)
- Unrecognised options:
-
DIAGNOSTIC MESSAGES
- 7. INVOKING PROCMAIL
-
8. MACROS AND ENVIRONMENT VARIABLES
-
VARIABLES
- COMSAT (boolean)
- DEFAULT (path)
- DELIVERED (boolean)
- DROPPRIVS (boolean)
- EXITCODE (integer)
- HOME (path)
- HOST (string)
- INCLUDERC (path)
- LASTFOLDER (path)
- LINEBUF (integer)
- LOCKEXT (string)
- LOCKFILE (path)
- LOCKSLEEP (integer)
- LOCKTIMEOUT (integer)
- LOG (string)
- LOGABSTRACT (string)
- LOGFILE (path)
- LOGNAME (string)
- MAILDIR (path)
- MATCH (string)
- MSGPREFIX (string)
- NORESRETRY (integer)
- ORGMAIL (path)
- PROCMAIL_OVERFLOW (boolean)
- PROCMAIL_VERSION (string)
- SENDMAIL (path)
- SENDMAILFLAGS (string)
- SHELL (path)
- SHELLFLAGS (string)
- SHELLMETAS (string)
- SHIFT (string)
- SUSPEND (integer)
- TIMEOUT (integer)
- TRAP (path)
- UMASK (integer)
- VERBOSE (boolean)
- ^TO_
- ^TO
- ^FROM_DAEMON
- ^FROM_MAILER
-
VARIABLES
- 9. RECIPE SYNTAX
-
10. COOKBOOK
- THE BASICS
- DIRECTING EMAIL TO SEPARATE MAILBOXES
- DIRECTING A SINGLE MAIL TO MULTIPLE MAILBOXES
- HANDLING EMAIL FROM MAILING LISTS
- OR-ING CONDITIONS
- RECOGNISING TEXT THAT CAN BE SPLIT ACROSS A LINE-END
- REMOVING '[LISTNAME]' FROM SUBJECT LINES
- SETTING THE DEFAULT DELIVERY LOCATION TO BE A FORWARDING ADDRESS
- A. SAMPLE BUILD
Product information
- Title: Procmail Companion, The
- Author(s):
- Release date: November 2001
- Publisher(s): Pearson Business
- ISBN: 9780201737905
You might also like
book
Google™ Search and Tools in a Snap
These days, nobody really wants to learn everything there is about a product like Google Tools. …
book
Expanding Choice
Expanding Choice: Moving to Linux and Open Source with Novell Open Enterprise Server is a concise, …
book
Red Hat® Linux® 7 Unleashed
Red Hat Linux 7 Unleashed shows you how to install, configure, and manage version 7, the …
book
IBM Workplace Managed Client 2.6 on Linux
With IBM Workplace Managed Client Release 2.6 on Linux, IBM offers a strategic end-to-end Linux solution …