[Mimedefang] How do I unquarantine a message?
Renaud PASCAL
renaud.pascal at atosorigin.com
Thu Apr 28 09:34:47 EDT 2005
Le Jeudi 28 Avril 2005 15:28, David F. Skoll a écrit :
> Kevin A. McGrail wrote:
>
> > (echo "From `cat SENDER | tr -d '<>'` `date`"; cat ENTIRE_MESSAGE) >
> > message.mbox && mutt -f message.mbox
>
> That works nicely if you've had the foresight to use
> action_quarantine_entire_message(). If you've only used
action_quarantine()
> to quarantine individual parts, the task is much harder. In general,
> you can't reconstruct the original message just from the quarantined
parts.
Thats' true.
Here a simple form to cope with simple cases, it may
be a start for the OP :-)
I use it from time to time, never turned it on to a real
script because each case may need some arrangements.
(Besides it'll never re-create parts that were stripped off)
Now, my buoyteefool kode :
cd /whereverthemailhasbeenquarantined
cat << "___E_O_F___" |sendmail -oi -Am -v -t -f postmaster
$(cat HEADERS)
--$(grep 'boundary=' HEADERS |cut -d= -f2-|tr -d '\"')
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--$(grep 'boundary=' HEADERS |cut -d= -f2-|tr -d '\"')
$(cat PART.1.HEADERS)
$(mimencode -b PART.1.BODY)
--$(grep 'boundary=' HEADERS |cut -d= -f2-|tr -d '\"')
___E_O_F___
More information about the MIMEDefang
mailing list