On Wed, Jun 21, 2000 at 10:20:55AM +0530, System Administrator wrote:
>
> can we have a prefix set for our list. for example :
> Subject line of each mail on the list has something as follows :
> Subject : [Qmail] ................
> the dots signify the actual subject.
 
Why send extra 7 chars thus loosing visibility in the subject field?

You can do it yourself, choosing any text you want.
The attached script checks if the subject line contains your choice of
prefix and if it doesn't it tacks it on. (OK, I admit. The search is a little
crude.)

Run it in your .qmail-file that catches your qmail-list mail or if you have   
to, add some check on the "Mailing-List: contact [EMAIL PROTECTED];
run
by ezmlm"-line.

If you want, you can even expand it to handle multiple lists, friends,
enemies, spam-control etc. I'll leave it up to you to decide what "handle"
means in the different cases. 

/magnus

--%< cut here %< ----------------------------------------------------
#!/usr/bin/perl
# tagmail.pl; 1999-02-18; [EMAIL PROTECTED]; http://x42.com/
use strict;

# read mail and split into hdr and body
my ($hdr, $body);
while (<STDIN>) { last if /^[\r\n]*$/; $hdr .= $_; }
$body = join '',<STDIN>;

# Fix subject-line
$pre = '[Qmail]';
$hdr =~ s/^(subject:\s*)(.*)$/$1 [Qmail] $2/mi unless $hdr =~ /$pre/;;

# print mail 
print "$hdr";
#print "$hdr\n$body";

Reply via email to