Software: Apache/2.2.22 (Debian). PHP/5.6.36 uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) Safe-mode: OFF (not secure) /usr/share/doc/maildrop/html/ drwxr-xr-x |
Viewing file: Select action/file-type: Namemaildropex — maildrop filtering language examples Synopsis
DESCRIPTION
If
The files in EXAMPLES
Take all mail that's sent to the 'auto' mailing list, and save it in
After the to command delivers the message,
maildrop automatically
stops filtering and terminates without executing the subsequent instructions
in the
Take all mail from
Note that it is necessary to use a backslash in order to continue the if statement on the next line.
Keep copies of the last 50 messages that you received in the
Put this at the beginning of your filter file, before any other filtering instructions. This is a good idea to have when you are learning maildrop. If you make a mistake and accidentally delete a message, you can recover it from the backup/new subdirectory.
Save messages that are at least 100 lines long (approximately) into
Send messages from the auto mailing list to the program 'archive', using a lock file to make sure that only one instance of the archive program will be running at the same time:
Check if the
The reformail command maintains a list of
recently seen Message-IDs in the file
Here's a more complicated example. This fragment is intended to go right after the message has been filtered according to your regular rules, and just before the message should be saved in your mailbox:
This code maintains a list of everyone who sent you mail in the file called
The first statement saves the original message in your regular mailbox.
Then,
xfilter
is used to generate an
autoreply header to the sender. The
If the address is already in the file, maildrop exits,
otherwise the
contents of NoteAn easier to make a vacation script is with mailbot(1). Here's a version of the vacation script that uses a GDBM database file instead. The difference between this script and the previous script is that the previous script will send a vacation message to a given E-mail address only once. The following script will store the time that the vacation message was sent in the GDBM file. If it's been at least a week since the vacation message has been sent to the given address, another vacation message will be sent. Even though a GDBM database file is used, locking is still necessary because the GDBM library does not allow more than one process to open the same database file for writing:
This script requires that maildrop must be compiled with GDBM support enabled, which is done by default if GDBM libraries are present. After you return from vacation, you can use a simple Perl script to obtain a list of everyone who sent you mail (of course, that can also be determined by examining your mailbox). |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0119 ]-- |