Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

maildir-filter(1) [debian man page]

MAILDIR-FILTER(1)					      General Commands Manual						 MAILDIR-FILTER(1)

maildir-filter - program to filter mail in Maildir folders. SYNOPSIS
maildir-filter -r <regexp> [-d ./Maildir/.folder | -b] [-D] [-p] [-i] [-V] [-n] [-H] DESCRIPTION
maildir-filter is used to filter messages in Maildir folders. It reads the message from stdin and used qmail's exit conde conventions, so it can work from your .qmail file. It can be used to bounce, deliver or just send messages do /dev/null. OPTIONS
The programs follow the usual GNU command line syntax. A summary of options are included below. -r <regexp> Use this regexp to match the message. It follows perl syntax. -D turn on a few debug messages -b bounce if matches -p print messa to stdout -i case insensitive match -V print version and exit -n negate regexp (!~ m// in perl talk) -H only try to match the headers -k kill the message SEE ALSO
dot-qmail(5) AUTHOR
This manual page was written by Marcelo Bezerra <>. MAILDIR-FILTER(1)

Check Out this Related Man Page

qmail(7)                                                 Miscellaneous Information Manual                                                 qmail(7)

qmail - overview of qmail documentation INTRODUCTION
qmail is a secure, reliable, efficient, simple message transfer agent. Users who want to control incoming messages should read dot-qmail(5). Available commands for the .qmail file include qbiff(1), qre- ceipt(1), forward(1), bouncesaying(1), and condredirect(1). Other helpful commands include maildirmake(1), maildir2mbox(1), and maildirwatch(1). System administrators who want to control the entire qmail system should start with qmail-control(5) and qmail-start(8). There are three queue-monitoring tools: qmail-qread(8), qmail-qstat(8), and qmail-tcpto(8). Incoming SMTP connections are handled by qmail-smtpd(8). qmail offers two command-line message-sending interfaces: qmail-inject(8) and mailsubj(1). For background information on Internet mail messages, see addresses(5), envelopes(5), qmail-header(5), and forgeries(7). Miscellaneous documentation includes qmail-limits(7) and qmail-pop3d(8). This documentation describes netqmail version 1.05 of qmail. See for other qmail-related software, and for other qmail community contributions. qmail(7)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

recursive effect!!

I run the following command in some of my folders... and ended up with a huge mess!! find . -type f -exec perl -e 's/blabla/zzzxxxx/gi' -p -i.bak {} \; I had to kill the process and later when I checked with one of my folders.. ls vaditerm.dt.bak vaditerm.dt.bak.bak... (2 Replies)
Discussion started by: sskb
2 Replies

2. Shell Programming and Scripting

puzzling regexp

hey guys, i'm having some problems with my understanding of this whole regexp thing. I'm just exploring here really by trying to do various match & filter & print stuff on the console. I figured i want to get the IP of an interface. So my idea here was that first i filter to extract only... (4 Replies)
Discussion started by: jad
4 Replies

3. UNIX for Dummies Questions & Answers

how to move files into different folders based on filename

I need to move a bunch of files into folders that have the same name. I wanted to either do this with some filter command or some type of batch file that I could save that would already include all of the mv commands since I will have to do this process often. Whatever method you think is easier. ... (7 Replies)
Discussion started by: italia5
7 Replies

4. UNIX for Dummies Questions & Answers

Script to delete mails from maildir

Hi buddies, Anybody has any script to delete mails from Maildir/cur??? I mean is it possible to delete mails from Maildir/cur matching a particular subject like spam or fax??? Thanks in advance (1 Reply)
Discussion started by: squid04
1 Replies

5. Shell Programming and Scripting

regexp to print after a field seperator

Hi, How do i Print anything after a ':' Ex : file1: 1235131(rs32553) I want to print out "1235131(rs32553)" how do i do it. I know we can do this using awk but looking for the right syntax. Any help appreciated. Thanks, Ram (7 Replies)
Discussion started by: ramky79
7 Replies

6. UNIX for Dummies Questions & Answers

print the line immediately after a regexp; but regexp is a sentence

Good Day, Im new to scripting especially awk and sed. I just would like to ask help from you guys about a sed command that prints the line immediately after a regexp, but not the line containing the regexp. sed -n '/regexp/{n;p;}' filename What if my regexp is 3 word or a sentence. Im... (3 Replies)
Discussion started by: ownins
3 Replies

7. Shell Programming and Scripting

perl exact match

How to emulate grep -o option in perl. I mean to print not all line, only the exact match. echo "2A2 BB" | perl -ne 'print if /2A2/' 2A2 BB I want to print only 2A2. (2 Replies)
Discussion started by: mirusnet
2 Replies

8. UNIX for Dummies Questions & Answers

sed before and after regexp

Dear all i have the code which print 1 line of context before and after regexp, with line number sed -n -e '/regexp/{=;x;1!p;g;$!N;p;D;}' -e h the code work well but any one can tell me what each letter mean {=;x;1!p;g;$!N;p;D;} also how i can print 2 line before and onle line after ... (2 Replies)
Discussion started by: soly
2 Replies

9. Shell Programming and Scripting

perl - force matching

for below perl code, if without ?, will print test, otherwise will print null. i know it is due to greedy perl regexp matching that eat out test by previous .*, i also know there should be a way to force perl to match if can match, can anyone help me to figure it out or lead me to the right... (6 Replies)
Discussion started by: summer_cherry
6 Replies

10. UNIX for Dummies Questions & Answers

Nawk help!!!

Hi, Please help me I want to filter all messages having a value less than a particular value..Please advice how to use <= in the below red marked script.. Getting the error as no such file or directory for the marked line no. Thanks in advance... Script is as under : read message gawk... (5 Replies)
Discussion started by: vanand420
5 Replies

11. Shell Programming and Scripting

awk, sed or perl regexp to print values from file

Hello all According to the following file (orignal one contains 200x times the same structure...) I was wondering if someone could help me to print <byte>??</byte> values example, running this script/command like ./ xxapp I would expect as output: 102 116 112 ./ xxapp2... (2 Replies)
Discussion started by: cabrao
2 Replies

12. Shell Programming and Scripting

Question on TCL regexp and match

Hello everyone, I'm new in tcl scripting. I'm currently studying a tcl script and came across this line: regexp {(\d+)(\S?)} $opts match opt swi According to my understanding, this line means to search in the opts variable for one or more digit, followed by a non-whitespace character... (2 Replies)
Discussion started by: mar85
2 Replies

13. Shell Programming and Scripting

Problem on understanding the regexp command

Hi all, I'm not clear of this regexp command: regexp {(\S+)\/+$} $String match GetString From my observation and testing, if $String is abc/def/gh $GetString will be abc/def I don't understand how the /gh in $String got eliminated. Please help. Thanks (2 Replies)
Discussion started by: mar85
2 Replies

14. Shell Programming and Scripting

awk regexp to print repetitive pattern

How to use regexp to print out repetitive pattern in awk? $ awk '{print $0, "-\t-\t-\t-\t-\t-\t-\t-\t-\t-\t-\t-"}' output: - - - - - - - - - - - -I tried following which does not give what I want, of course. awk '{print $0, "-\t{11}-"}' output: - ... (10 Replies)
Discussion started by: yifangt
10 Replies

15. UNIX for Beginners Questions & Answers

Bad substitution issues.. but why?

i am trying to prepare a train and test dataset, for which i need to randomly split the data into corresponding folders (train,test).. I began on a simple script, but seem to get som weird error messages, that i cannot make sense of?.. what am I doing wrong? #!/bin/bash RED='\033] then... (13 Replies)
Discussion started by: kidi
13 Replies

Featured Tech Videos