-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpm-extract.rc
65 lines (58 loc) · 1.46 KB
/
pm-extract.rc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# set syntax=procmail
#
# Notes
#
# You should install the following binary tools in your system:
# procmail (Obviously!)
# formail (usually comes with procmail)
#
# Documentation
#
# (none)
#
# Required settings
#
# In your .procmailrc config file, make sure the binary tool mentioned
# above can be found in the ${PATH} environment.
#
# Call arguments (variables to set before calling)
#
# (none)
#
# Return values
#
# o PM_ORIG_SUBJECT contains the original Subject string without
# "Subject: " prefix.
# o PM_ORIG_FROM contains the original From string without
# "From: " prefix.
# o PM_ORIG_PATH contains the original Path string without
# "Path: " prefix. It's useful to block mails from unwanted MTA.
# o PM_ORIG_BODY contains the original mail body.
#
# Examples
#
# PATH = /bin:/usr/bin:/usr/local/bin
# INCLUDERC = /absolute/path/to/pm-extract.rc
#
# Known issues
#
# (none)
#
# Change Log
#
# 2012-05-27
# Create module.
#
#
# Program Settings
# ===========================================
FORMAIL = ${FORMAIL:-'formail'}
# bumped the LINEBUF up to be large enough to hold string
LINEBUF = 4096
#
# Extract Fields
# ===========================================
PM_ORIG_SUBJECT = `$FORMAIL -cxSubject:`
PM_ORIG_FROM = `$FORMAIL -cxFrom:`
PM_ORIG_PATH = `$FORMAIL -cxPath:`
PM_ORIG_BODY = `$FORMAIL -I ""`