The Procmail Companion

Martin Mccarthy

  • 出版商: Addison Wesley
  • 出版日期: 2001-11-01
  • 售價: $1,250
  • 貴賓價: 9.8$1,225
  • 語言: 英文
  • 頁數: 256
  • 裝訂: Paperback
  • ISBN: 0201737906
  • ISBN-13: 9780201737905
  • 下單後立即進貨 (約5~7天)

買這商品的人也買了...

相關主題

商品描述

Table of Contents

Foreword.
Preface.

What is Promail?

What is Procmail for?
The Basics of Email.
The History.
The Ingredients.


Setting Up Procmail.

Obtaining and Installing Procmail.
Controlling Mail Delivery with Procmail.
Setting Up Procmail for Users.
Creating a .forward file.
Running Procmail Manually.
Running Procmail Manually to Reprocess a Mailbox.
Running Procmail Manually to Test Recipes.
Debugging Procmail Recipes.


Simple Filtering of Email with Procmail.

Setting Up a Basic .procmailrc file.
Improving Efficiency.
It Is Never That Easy.
Making Copies.
Multiple Conditions in a Recipe.
Disposing of Emails.
Working with Emails by Size.
Nesting Blocks.
Summary.


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.
Matching a Condition in the Head or Body.
Matching a Condition against a Variable.
Or Conditionals and the Else Flag.
Backreferences—What You Have Already Matched.
Scoring.
The Theory of Scoring.
Limits.
External Programs.
Capturing Output into Variables.
Extracting Data from Email and Filter Recipes.
Using External Programs in Condition Lines.
Where the External Programs are to be Found.


Using Procmail to Manage Mailing Lists.

Announcement Mailing List.
Discussion List.
Dedicated Mailing List Software.


Troubleshooting.

Diagnostic Messages.


Invoking Procmail.

Procmail as a Delivery Agent.
Procmail as a General Purpose Mail Filter.
Procmail as a Mail Reprocessor.
Invoking Formail.


Macros and Evironment Variables.

Variables.


Recipe Syntax.

Variables.
Comments.
Comments Cannot Occur on Condition Lines.
Comments Must be Outside Quoted Strings.
Comments Depend on what Precedes the #.
Recipes.
Colon Line.
Locking.
Conditions.
Regular Expressions.
Actions.
Regular Expression in Meta-characters.
Regular Expression Shortcuts.
Condition Types.
Condition Line Flags.


Cookbook.

The Basics.
Basics .prc.
Directing Email to Separate Mailboxes.
Problem.
Recipe.
Explanation.
Directing a Single Email to Multiple Mailboxes.
Problem.
Recipe.
Explanation.
Handling Email from Mailing Lists.
Problem.
Recipe.
Explanation.
OR-ing Conditions.
Problem.
Recipe.
Explanation.
Recognising Text that can be Split Across a Line-end.
Problem.
Recipe.
Explanation.
Removing <091>ListName<093> from Subject Lines.
Problem.
Recipe.
Explanation.
Setting the Default Delivery Location to be a Forwarding Address.
Problem.
Recipe.
Explanation.


Appendix A. Sample Build.
Index.