Discussion:
decoding =xx stuff
Jonathan Lundell
2008-04-04 17:19:50 UTC
Permalink
I have messages (spam reports) in Mail that I'd like to process in
BBEdit for easier viewing. When I display and copy the raw message,
though, it's QP-encoded (per example below). Anybody have a QP-
decoding script handy?
<td align=3Dright style=3D"padding-right:0.8em;">Apr 4, 12:28
pm</td>
<td>=D0=91=D1=83=D0=BA=D0=BB=D0=B8=D0=BD
=D0=AF=D0=BA=D0=BE=D0=B2 &lt;b=
=20=20=20=20
<td>Re:</td>
=20=20=20=20
</TR>
=20=20
<TR bgcolor=3D"#eeeeee">
<TD>
<INPUT TYPE=3D"checkbox" NAME=3D"discard_id"
VALUE=3D"1119092877"
onChange=3D'this.form.select_discard.value=3D"Checked"' />
</TD>
<td align=3Dright style=3D"padding-right:0.8em;">Apr 4, 12:28
=20=20=20=20
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Jonathan Lundell
2008-04-04 17:34:17 UTC
Permalink
Post by Jonathan Lundell
I have messages (spam reports) in Mail that I'd like to process in
BBEdit for easier viewing. When I display and copy the raw message,
though, it's QP-encoded (per example below). Anybody have a QP-
decoding script handy?
<td align=3Dright style=3D"padding-right:0.8em;">Apr 4, 12:28
pm</td>
<td>=D0=91=D1=83=D0=BA=D0=BB=D0=B8=D0=BD
=D0=AF=D0=BA=D0=BE=D0=B2 &lt;b=
=20=20=20=20
<td>Re:</td>
=20=20=20=20
</TR>
=20=20
<TR bgcolor=3D"#eeeeee">
<TD>
<INPUT TYPE=3D"checkbox" NAME=3D"discard_id"
VALUE=3D"1119092877"
onChange=3D'this.form.select_discard.value=3D"Checked"' />
</TD>
<td align=3Dright style=3D"padding-right:0.8em;">Apr 4, 12:28
=20=20=20=20
Answering my own question, it seems that Perl 5.8 has
MIME::Decoder::QuotedPrint, so at least on Leopard, problem solved.
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Johan Solve
2008-04-05 23:29:17 UTC
Permalink
I have messages (spam reports) in Mail that I'd like to process in BBEdit for easier viewing. When I display and copy the raw message, though, it's QP-encoded (per example below). Anybody have a QP-decoding script handy?
<td align=3Dright style=3D"padding-right:0.8em;">Apr 4, 12:28 pm</td>
<td>=D0=91=D1=83=D0=BA=D0=BB=D0=B8=D0=BD =D0=AF=D0=BA=D0=BE=D0=B2 &lt;b=
A simple approach is to replace =\r with nothing to unwrap the soft wraps, and =([0-9A-F]{2}) with &#x\1; to create hex html entities. Then Markup -> Utilities -> Translate html to text.
--
Johan Sölve [FSA Member, Lasso Partner]
Web Application/Lasso/FileMaker Developer
MONTANIA SOFTWARE & SOLUTIONS
http://www.montania.se mailto:joh-***@montania.se
(spam-safe email address, replace '-' with 'a')
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <***@barebones.com>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <bbedit-talk-***@barebones.com>
Continue reading on narkive:
Loading...