Name

maildirquota — voluntary Maildir quotas

Synopsis

maildirmake {-q} {10000000S} {./Maildir}

DESCRIPTION

maildrop has an experimental quota enforcement implementation. This is an option that is set at configuration time, and may be disabled.

Filesystem-based quotas should be used whenever possible. However filesystem-based quotas cannot be used in some situations, such as virtual mailboxes. If this experimental feature is enabled, approximate quota enforcement can be implemented by maildrop or deliverquota to whatever extent it's possible to do so. Quotas are enabled by the -q option to maildirmake. Both maildrop and deliverquota will observe any maildirmake-requested quota.

LIMITATIONS

This quota mechanism will only work as long as maildrop (or deliverquota) are the only applications that deliver messages to the maildir, or as long as other applications implement the same quota enforcement mechanism. The quota enforcement mechanism is described separately in the README.maildirquota.html file in the source code distribution.

Quota enforcement will still work, to some extent, if there are other applications that deliver or modify messages in the maildir. However, quota enforcement may not kick in immediately when the maildir goes over quota, in fact the maildir can go over quota by a noticeable amount. But eventually, as long as maildrop or deliverquota are responsible for delivering the majority of messages, quota enforcement will kick in. Also, other sources of messages may also result in noticeable performance degradation, because quote recalculation will become noticeably more expensive.

Also keep in mind that this quota mechanism is generally useless if mail recipients have direct access to their maildirs.

Finally even under the best conditions this quota enforcement does have a small chance of a race condition where a maildir will go over quota by some amount. maildirs are designed for speed, and this quota implementation was designed to have as little additional overhead as possible, compared to regulare a maildid headers.

The -ra option copies To: headers from the original message into the auto-reply. The -rA option copies To: and Cc: headers.

Normally, the contents of the original message are removed. The -k option copies the contents of the original message, which each line prefixed by "> ". Use the -p option to specify a different prefix.

The contents of the message are preceded by a salutation specified by the -P option. If not specified, the salutation defaults to "%F writes:%n". Within the salutation, each occurrence of % followed by another character is replaced by some information from the original message, as follows:

%C

Replaced by the contents of the X-Newsgroup: header in the original message.

%d

Replaced by the contents of the Date: header in the original message.

%f

Replaced by the E-mail address of the sender of the original message.

%F

Replaced by the name of the sender of the original message. If no name was given, the E-mail address is used.

%i

Replaced by the contents of the Message-ID: header in the original message.

%n

%n will cause reformail to insert a line break here.

%N

Replaced by the contents of the Newsgroups: header in the original message.

%s

Replaced by the contents of any Subject: header in the original message.