At Thursday, May 2, 2002, 7:13:35 AM, Allie wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1
> Mike Smith [MS] wrote:
> ...
MS>> I'm a moderator on a couple of other lists (LYRIS based) and the
MS>> moderation mail comes in with separated MIME, which makes it
MS>> display the contents as 2 attachments. Is there a way of making
MS>> TheBat display these messages in 'raw' form, rather than
MS>> attachments?
> I think you're referring to bursting the digest?
Perhaps - I've got an example below.
> No, there's no
> automatic way of doing this. You have to manually copy the attached
> messages to the desired location.
For the puposes I intend, this would be tedious and wasteful, cos I'd
be discarding immediately afterward.
Here's a cut down version of what the message looks like, when I save
the entire message to disk, then open it with TextPad. I've cut
extraneous and identifying portions from it.
==== Start
<rfc headers deleted>
Mime-Version: 1.0
Content-Type: multipart/digest;
boundary="---+---------------+------+-------------+---++----+-----++-+-++-++-++-"
-----+---------------+------+-------------+---++----+-----++-+-++-++-++-
<this appears as first attachment to the main message>
<more headers deleted>
The attached message destined for <some list> has been received. This
message requires your approval before it will be sent to the list.
---
To approve this message, send the following two line message to
<an email address>
login (enter your password here)
moderate approve 22398
---
To reject this message, send the following two line message to
<same email address>
login (enter your password here)
moderate reject 22398
---
<email from list member that I approve or reject>
-----+---------------+------+-------------+---++----+-----++-+-++-++-++-
<dupe of email from list member, but without the extra approve-reject info - this
appears as yet another attachment to TheBat main message>
-----+---------------+------+-------------+---++----+-----++-+-++-++-++---
==== End
MS>> If not, is there a way of making regex replacements search the
MS>> entire raw message? Currently, it only searches the
MS>> pseudo-attachment that you have opened. I'm looking for a way of
MS>> making accept/reject a little more automated, by using reply
MS>> template for accept, forward template for reject.
> Would you explain this part further. I don't quite understand what
> you're getting at.
OK, I'm looking at doing the following in my reply template
%TO="Lyris List Manager <email addy>"
%CC="list owner's addy"
%SUBJECT=" 'listname' moderated message %1 approved"
Mail forwarded to 'listname' mailing list owner
login myPassword
moderate approve %1
end quiet
(TheBat macro)
===8<==============Original message text===============
%Text
===8<===========End of original message text===========
And similarly in my forward macro, but with reject instead of approve.
I'm wanting to use a regex something like \([0-9]\{5\}\) to set my
first replaceable to (in the above example, 22398) - this works fine
if the example email doesn't have this number in the MIME
pseudo-attachment (pseudo, because it isn't really an attachment,
IMO.)
My second way of skinning this cat would be to save messages that met
my filtering criteria for this folder to disk, and write a c++ app
that used a FindFirstChangeNotification to notice the files, open
them, regex them, and create an approriate reply - somewhat more
work, but less of a compromise, in the end.
--
Mike mailto:[EMAIL PROTECTED]
Using The Bat! v1.60h on Windows 2000
5.0 Build 2195
Service Pack 2
smime.p7s
Description: S/MIME Cryptographic Signature

