The following script should do the trick:
{ Ban sender and delete message.
ReadHeader $from From: %message
DeleteMessage %message
AppendToFile True
AddStrings $path $mailpath "junksender.txt"
SaveBody $from $path
Once you've created the script you can assign it to a
button on your toolbar.
Note: I've only done some pretty basic testing on this. You should do some yourself. Also you should
test to see if the changes to the junksender.txt file are picked up immediately (ie: if you get another
message from the same sender after you've used the script but before you shutdown and restart poco is
that sender banned).
|