Re: Bleh - MS attachements

1999-03-03 Thread David DeSimone

Christian Stigen Larsen <[EMAIL PROTECTED]> wrote:
>
> Is there any patch, utility, script or something which
> can decode typical MS-attachements like
> 
>   [applica/ms-tnef, base64, 1.4M]

Try this URL:

http://www.fiction.net/blong/programs/#tnef2txt

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
Convex Division  |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: Bleh - MS attachements

1999-03-03 Thread Michael Sobolev

On Wed, Mar 03, 1999 at 08:12:54PM +0100, Christian Stigen Larsen wrote:
> Is there any patch, utility, script or something which
> can decode typical MS-attachements like
> 
>   [applica/ms-tnef, base64, 1.4M]
I doubt there is one.  I believe it should make hard use of OLE stuff or
something alike.  Anyway, it has nothing of use.  To my mind, at least. :)
Formattings, attachment placement, etc.  Yes, sometime this very attachment
may contain all the stuff, but this is rather rare.

You may try to ask your [usual] correspondents to turn so called `Rich-text'
option off when sending e-mail to you.

--
Mike



Re: Bleh - MS attachements

1999-03-04 Thread fred smith

On Wed, Mar 03, 1999 at 08:12:54PM +0100, Christian Stigen Larsen wrote:
> Is there any patch, utility, script or something which
> can decode typical MS-attachements like
> 
>   [applica/ms-tnef, base64, 1.4M]
> 
> As I continually get these type of attachements life is
> really annoying, as I can't decode them (and the senders
> won't attach in another format).


Yeah they are really annoying. What's even worse is the air heads
who think it's really cool that they can send pretty formatted text
as email, without thinking or caring that they are making it harder
for anybody who doesn't use their own proprietary mail programs.

I tend to get stiff-necked and tell them i can't read their mail,
it's got some kind of "strange junk" in it,... can they please 
configure their mailer to send plain text?

At work we use Lotus Notes for email. While I think there are a lot
of things wrong with using a kitchen-sink as a mailer, at least one 
thing they got right was that when you send pretty formatted text
outside the company all that arrives at the other end is nice plain
80-column ASCII.
<\gripe-mode>
-- 
 Fred Smith -- [EMAIL PROTECTED] 



Attachments (Was Re: Bleh - MS attachements)

1999-03-04 Thread John Adams

On Wed, 3 Mar 1999, fred smith wrote:

> On Wed, Mar 03, 1999 at 08:12:54PM +0100, Christian Stigen Larsen wrote:
> > Is there any patch, utility, script or something which
> > can decode typical MS-attachements like
> > 
> > [applica/ms-tnef, base64, 1.4M]
> > 
> > As I continually get these type of attachements life is
> > really annoying, as I can't decode them (and the senders
> > won't attach in another format).
> 
> 
> [deleted text] 
> I tend to get stiff-necked and tell them i can't read their mail,
> it's got some kind of "strange junk" in it,... can they please 
> configure their mailer to send plain text?
> [deleted text]
> <\gripe-mode>

I regularly see annoying junk in e-mail.  I'm a hold-over from the 80s
internet before WWW.  I think a sig over four lines with ASCII art or long
rambling quotes is a waste.  But rather than bitch about it, I use
procmail to filter the crap.

-- 
John Adams   O-
[EMAIL PROTECTED]



Re: Attachments (Was Re: Bleh - MS attachements)

1999-03-10 Thread Stephen Hack

The attached perl script handles removing of the tnef attachment##

it's worked for me.  (might want to test with a large assortment of message to
make sure that you're not loosing the attachments.)

##
## Remove the ms-tnef attachments
##

:0 
* B ?? ^Content-Type: \/(application/ms-tnef)$
{
LOG="--found garbage--"

# save backups
:0 c
$PMDIR/save.ms-tnef

:0 f
| $PMDIR/remove-attachment" "$MATCH
}


> > On Wed, Mar 03, 1999 at 08:12:54PM +0100, Christian Stigen Larsen wrote:
> > > Is there any patch, utility, script or something which
> > > can decode typical MS-attachements like
> > > 
> > >   [applica/ms-tnef, base64, 1.4M]
> > > 
> > > As I continually get these type of attachements life is
> > > really annoying, as I can't decode them (and the senders
> > > won't attach in another format).

-- 
Stephen P. Hackmutt - vim - maildrop http://www.uiuc.edu/ph/www/shack
[EMAIL PROTECTED]  Underwater Hockey Pres http://www.uiuc.edu/ro/uwhockey
[EMAIL PROTECTED] University of IllinoisComputer Science


#!/home/shack/bin/perl

$mime = join ' ', @ARGV;
@ARGV = ();

$message = join '', <>;
$message =~ /Content-Type:[^\n]*boundary=(".*")/;
$boundary = $1;
$boundary =~ s/"//g;  #"

$date = scalar localtime;

$message =~ s/--$boundary\nContent-Type: 
$mime[\s\S]*\n--$boundary/\n--$boundary\nContent-Type: text\/plain\n\nRemoved a 
message of type $mime\n\n$0: $date\n\n\n--$boundary/m;

print $message;