| 1 |
How to use the autoresponder: |
|---|
| 2 |
---------------------------- |
|---|
| 3 |
|
|---|
| 4 |
WARNING to non-Debian users: |
|---|
| 5 |
|
|---|
| 6 |
Twisted 1.3 contains two severe bugs that may cause lost mail and |
|---|
| 7 |
actually prevent using the autoresponder. These have been fixed in |
|---|
| 8 |
upstream Twisted, in commits r12036, r12767 and r12858. Debian has |
|---|
| 9 |
these bugs fixed in twisted-1.3.0-6 and later. |
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
In the LDAP entry for an account, add one or more instances of the |
|---|
| 13 |
attributetype scaleMailAway. The values should look like: |
|---|
| 14 |
|
|---|
| 15 |
away = start SP stop [(LF / CRLF) message] |
|---|
| 16 |
|
|---|
| 17 |
start = isotime |
|---|
| 18 |
|
|---|
| 19 |
stop = isotime |
|---|
| 20 |
|
|---|
| 21 |
isotime = year "-" month "-" day |
|---|
| 22 |
[ "T" hour [ ":" minute [ ":" second ] ] ] |
|---|
| 23 |
|
|---|
| 24 |
Where year, month, day, hour, minute and second should be obvious, and |
|---|
| 25 |
message is as defined in RFC 2822. |
|---|
| 26 |
|
|---|
| 27 |
(That is, two ISO 8601 timestamps separated by space on the first |
|---|
| 28 |
line, the rest is an optional mail message.) |
|---|
| 29 |
|
|---|
| 30 |
During the time between start and stop, the email message given is |
|---|
| 31 |
sent as an autoresponse to anyone sending email to the account. A |
|---|
| 32 |
single person gets atmost a limited number of autoresponses per time |
|---|
| 33 |
interval. |
|---|
| 34 |
|
|---|
| 35 |
If the message given is a MIME multipart message, the original message |
|---|
| 36 |
is attached to it. |
|---|
| 37 |
|
|---|
| 38 |
Special header fields starting with "X-Scalemail-" can configure |
|---|
| 39 |
the following things: |
|---|
| 40 |
|
|---|
| 41 |
X-Scalemail-Subject |
|---|
| 42 |
|
|---|
| 43 |
will be used as subject prefix in the autoresponse |
|---|
| 44 |
|
|---|
| 45 |
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 |
PS. A lot of thanks to Bruce Guenter for his qmail-autoresponder |
|---|
| 49 |
software (http://untroubled.org/qmail-autoresponder/), it |
|---|
| 50 |
provided a lot of inspiration for scalemail.gone. |
|---|
| 51 |
|
|---|
| 52 |
PPS. scalemail.gone is meant to be a pluggable engine, with no |
|---|
| 53 |
dependency on LDAP or Scalemail itself. Using it in other |
|---|
| 54 |
projects should be quite easy. |
|---|