2 messages in net.sourceforge.lists.courier-maildrop[maildropl] How to get message id.
FromSent OnAttachments
haraAug 10, 2002 4:11 pm 
Sam VarshavchikAug 10, 2002 5:13 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] How to get message id.Actions...
From:hara (ha@to-the.net)
Date:Aug 10, 2002 4:11:39 pm
List:net.sourceforge.lists.courier-maildrop

Hi People

I am trying to block any "Quoted Printable" format email. Some of them are OK. But Others are really nasty and gross junk mails. Is any way to pick up message id (ID which is written in the directry of ./Maildir/new) and use it in .mailfilter file?? I made perl program file to decode "Quoted Printable" format. And it needs message id.

Script of perl is following...

#!/usr/bin/perl -w

require 5.003; use strict;

use MIME::QuotedPrint;

my $mid = shift; my ($buf, $decode); my $newFile = "../Maildir/new/$mid";

open(FILE, $newFile) or die "The file can not be open.\n"; while (read(FILE, $buf, 60*57)) { $decode .= decode_qp($buf); } close(FILE);

my $rm = system `/bin/rm -rf $newFile`;

open(NEWFILE, ">$newFile") or die "The file can not be open.\n"; print NEWFILE $decode; close(NEWFILE);

exit;

Thank you

Naohisa