Re: [SLUG] Procmail FAQs

From: Derek Glidden (dglidden@illusionary.com)
Date: Wed Jul 18 2001 - 11:05:08 EDT


"Ian C. Blenke" wrote:
>
> Tagging as "deleted" is an internal construct within your email
> reader. Once the reader closes, it will delete those "deleted"
> messages.
>
> Marking them as "already read" makes sense.
>
> [...]
>
> As for deleted messages, I think you might be looking at an "X-Status:"
> header line. The generally accepted values are "F" for flagged (important),
> and "A" for answered messages... but it depends on your mailer.
>
> Realistically, you only see "deleted" emails until you close your
> session and delete them. But, again, I think it depends on your MTA.

If I read mail with Mutt, and "tag" some messages to be deleted without
actually deleting them on exit, and then open up Netscape, it can "tell"
that those messages have been flagged "deleted" and will indicate them
as such. Likewise, Pine seems to understand the same thing, and if I
mark messages deleted in any of those three apps, any of the other three
will see that those messages have been tagged to be deleted. I don't
know the method by which they are communicating this information, which
was part of the original question I suppose, although indirectly, but
since they can do this, I was under the impression there was some fairly
standard way of tagging a message to say "This message should be deleted
in the indefinite future by some mail app that understands this flag."
I suppose I could actually enter mutt, tag some messages to be deleted
but not delete them when I exit mutt then go look at my mail spool and
see what it's done.

So, presuming I can figure out what to do to the message to tell it to
be deleted, I should be able to use a rule something like this, eh:

:0
* ^.*slug@nks.net
{
   :0 cw
   | formail -A "Status: Deleted"

   :0
   slug
}

to make the message in my inbox be "Deleted" and then also slap a copy
of it into the "slug" folder.

So the further question is, WHERE THE HECK DID YOU FIGURE THIS OUT? I
can't find ANY decent reference on how to make procmail do anything
anywhere!!

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#!/usr/bin/perl -w
$_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map
{$_%16or$t^=$c^=($m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;
$t^=(72,@z=(64,72,$a^=12*($_%16-2?0:$m&17)),$b^=$_%64?12:0,@z)
[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h=5;$_=unxb24,join
"",@b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$d=
unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=$t&($d
>>12^$d>>4^$d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*
8^$q<<6))<<9,$_=$t[$_]^(($h>>=8)+=$f+(~$g&$t))for@a[128..$#a]}
print+x"C*",@a}';s/x/pack+/g;eval 

usage: qrpff 153 2 8 105 225 < /mnt/dvd/VOB_FILENAME \ | extract_mpeg2 | mpeg2dec -

http://www.eff.org/ http://www.opendvd.org/ http://www.cs.cmu.edu/~dst/DeCSS/Gallery/



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:14:11 EDT