Visit Our UNIX and Linux User Community


metamail


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers metamail
# 1  
Old 04-19-2002
metamail

Hi there. I have a problem with some files I am trying to process. It goes as follows:
I receive an email with a MIME attachment
I use metamail to extract the data to a flat file named "email.txt"
I decode "email.txt" using metamail
This works great with one tiny issue

Information in the file that I receive is 1000 rows of invoice data that needs to be stripped of ANY extra characters that may be in the file, so that all I am left with is the pure data.

But at the end of every file is something like:
------_=_NextPart_000_01C1E6F8.678CC080--

or like this:

------_extPart_000_01C1E6F8.678CC080-- (once I have metamailed it)

I need to be able to get rid of these extra characters some how. I thought of using grep somehow (?) or some other techinique, but these "weird" characters seems to be changing with every file, so I am at a loss on how to do this.
I am using a PERL program that calls metamail using "system(..)", so maybe there is a cool trick in PERL as well?

If anyone could help, I would really appreciate it.
Thanks in advance
# 2  
Old 04-22-2002
Have you tried using metamail with the -q option (quiet)?
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #566
Difficulty: Easy
Many programming languages use two ampersands, a && b to denote the logical And operator.
True or False?

4 More Discussions You Might Find Interesting

1. Solaris

Metamail Alternatives on Solaris 10

Hi All, We have been trying to Install Metamail on our Solaris 10 server but have failed to do so. We are a bit topo short of time here so are now trying to Explore any Meta Mail alternatives. What we basically want to do is: Server will recieve email, Procmail will recieve the email... (0 Replies)
Discussion started by: paragkhanore
0 Replies

2. Solaris

Metamail for Solaris 10

Hi All, We are trying to Load Metamail on our Solaris 10 Server but are not able to. This is what we get: m5k604d1@root# pwd /export/home/xpvh76/mm2.7/src m5k604d1@root# /usr/ccs/bin/make (cd metamail ; make CONFIGDIR=../. CFLAGS="-g -I. " CC="cc" LDLIBS="") sh: make: not found... (1 Reply)
Discussion started by: paragkhanore
1 Replies

3. Programming

metamail execution error

Hi. Im have installed the metamail from skunkware and when Im trying to use mailto (the complete script is bellow), I got this message: # mailto To: test@bla.com Subject: test ~/2048000 Set splitsize to 2048000 ~* Please choose which kind of data you wish to insert: 0: A raw file,... (2 Replies)
Discussion started by: ahnishimi
2 Replies

4. Programming

Problem compiling metamail

Hi Guys. I have downloaded metamail from internet e Im trying to compile it at a SCO 5.0.5. In this server its working fine (lets name it as mission1) im using the developer package in this server (mission1) and when I use mailto, i got the e-mail fine. Its forwarding to a exchange server... (2 Replies)
Discussion started by: ahnishimi
2 Replies

Featured Tech Videos