File: README

package info (click to toggle)
prayer 1.3.5-dfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,396 kB
  • ctags: 3,309
  • sloc: ansic: 43,161; makefile: 810; sh: 451; perl: 166
file content (113 lines) | stat: -rw-r--r-- 4,597 bytes parent folder | download | duplicates (6)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
$Cambridge: hermes/src/prayer/docs/README,v 1.3 2008/09/16 09:59:56 dpc22 Exp $

Licence and Distribution
========================

See LICENSE and NOTICE in the docs directory.

Installation
============

See INSTALL in the docs directory.

Mailing lists
=============

  https://lists.cam.ac.uk/mailman/listinfo/prayer-announce
  https://lists.cam.ac.uk/mailman/listinfo/prayer-users

Welcome to Prayer
=================

Prayer is (yet another) Webmail interface for IMAP servers. Please look at
the "FEATURES" file in the docs directory if you want more information.

It exists because we weren't terribly happy about the characteristics of
existing Webmail interfaces: in particular scalibility problems with common
open source Webmail packages and the lack of flexibility that commercial
packages would give us.  This doesn't mean that Prayer is better than or
trying to compete with existing Webmail packages. It just means that Prayer
is better suited to our particular environment. We are releasing the code
into the public domain in case others feel the same way.

Prayer is a low level HTTP to IMAP gateway written from scratch in C. It is
not built on top of Apache or any of the standard scripting languages. This
is rather unusual. However, a dedicated Webmail gateway system is a very
specialised Web server: the Web server component less than 10% of the code.

Prayer maintains a great deal of internal state for each logged in user:
far more than most interactive Web applications. It works hard to minimise
the load induced by each login session by using persistent connections to
the IMAP server.  In fact Prayer uses anywhere up to five persistent IMAP
connections for a single logged in user: a permanent inbox stream (which
doubles to check user preferences and for postponed messages when a user
first logs in), plus optional extra streams for an additional live mail
folder plus user preferences, mail folder transfer and postponed-msgs as
they are required.  There is also an internal directory cache to factor out
round trips to the IMAP server each time that a directory is listed.

Prayer also tries quite hard to cache HTTP/1.0 and 1.1 connections to the
user-agent to remove the overhead associated with starting up fresh
connections, especially SSL connections.

Why "Prayer"?
=============

Malcolm Beattie, formerly of Oxford University Computing Services released
a Webmail package named WING (http://users.ox.ac.uk/~mbeattie/wing/) early
in 1999. It was unusual at the time in that it used persistent IMAP
connections and it was written using Apache mod_perl rather than mod_php.

We came to the conclusion that the WING code that was available to us in
1999 and 2000 was not sufficient mature to use for our own Webmail system.
Consequently (and with some reluctance) we decided to start writing our own
package. Prayer was the in house development name for this package, a
simple play on words to acknowledge the strong influence that WING had over
Prayer development, especially in the early days. But at the end of the
day, everything needs a name.

Acknowledgements
================

Espen Koht (a computer officer at the University of Cambridge) gave some
very useful feedback on user interface design during the development
process. The SSL session cache has been adapted from code used by the Cyrus
IMAP server (See NOTICE in the "docs" directory).

The Prayer design and early user interface was strongly influenced by WING
as explained in the previous section. Two other packages which have more
recently influenced the design are:

Postman:  ftp://ftp.uv.es/pub/unix/postman/postman.html

  An Apache CGI plugin written in C++ which uses a persistent connection to
  the IMAP server. This is probably what I would be using today if we
  hadn't got a long way into the development process when Postman was
  released.

sqwebmail: http://www.inter7.com/sqwebmail/

  A standalone Webmail gateway for maildir format mailfolders and the
  Courier IMAP server. I haven't looked in great detail at this package
  however the discussion regarding sanitation of text/HTML seems extremely
  sensible and was the starting point for what I have implemented in Prayer.

We have also looked at the popular Webmail interfaces IMP and Squirrelmail
from time to time.

Authors:
========

David Carter <dpc22@cam.ac.uk>
  - Design and implementation.

Stella Page <sp253@cam.ac.uk>
  - Initial Webmail evaluation. Help Text.

Comments / Bug-reports:
  mail-support@ucs.cam.ac.uk

Software Download
=================

ftp://ftp.csx.cam.ac.uk/pub/software/email/prayer/