From: Dan Jacobson <jidanni@dman.ddts.net>
Subject: mime QP and B headers in body
Date: 15 Jan 2003 16:18:52 +0800 [thread overview]
Message-ID: <871y3i7pluspcj.fsf@jidanni.org> (raw)
In-Reply-To: <871y3i7pcj.fsf@jidanni.org>
>I make a daily spam report and send it to myself in the body of a mail message:
> Subject: =?BIG5?B?ttmhS...
> Subject:=?big5?Q?=A7A=B...
> Subject: Want a BIG Pen...
> Subject: =?GB2312?B?1tC...
> Subject: =?ISO-8859-1?B...
the reply posted didn't work because my perl doesn't have concat() or
something. Here's another approach
my $bdy='----=_NextPart_'.rand();
print '
This is a multi-part message in MIME format.
'.$bdy.'
Content-Type: multipart/alternative;
boundary="'.$bdy.'"'
s/=\?([-a-z0-9]*)\?([BQ])\?([^?]*)\?=/$bdy . '\
Content-Type: text\/plain;\
charset="'.$1.'"\
Content-Transfer-Encoding: '.if($2=='Q'){'"quoted-printable"'}elif\
($2=='B'){'"base64"'}.'\
'.$3.'\
\
'.$bdy/e;
Unfortunately my perl is bad so someone help me maybe.
The idea is to simple turn the =? seperator sequence into the larger
style seperator sequence.
next prev parent reply other threads:[~2003-01-15 8:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <871y3i7pcj.fsf@jidanni.org>
2003-01-12 11:26 ` Lars Magne Ingebrigtsen
2003-01-15 8:18 ` Dan Jacobson [this message]
[not found] <87wulax72k.fsf@jidanni.org>
2003-01-13 7:32 ` Kjetil Torgrim Homme
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871y3i7pluspcj.fsf@jidanni.org \
--to=jidanni@dman.ddts.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).