Removing attached doc from an email


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Removing attached doc from an email
# 1  
Old 07-29-2013
Removing attached doc from an email

How would you approach a problem of removing an attached document from an email?

Later I would parse that attachment and put the data into a database. Can do that part.

Unfortunately, I'm not use to the various mail programs - have been looking at sendmail and postfix but haven't noticed a solution yet. I'm reading an reading but thought someone knows of a good link or a good code snippet. I'm looking for a way to deal with other who what to send data via email instead of in a folder or something.
# 2  
Old 07-29-2013
I have used munpack to split the text and the attachment from a mail; that worked well. IIRC it wasn't available in the distros package repository so I had to download it.
This User Gave Thanks to zaxxon For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Getting the Attached File in Email

Hi All, Is there a way on how to get the attached file in email using shell script? what i'm going to do? all i can see is to send and email but to get an attached file in email i don't find it. Please advise, Thanks, (4 Replies)
Discussion started by: znesotomayor
4 Replies

2. UNIX for Dummies Questions & Answers

Here doc question

This is a very simple question. So I have: # cat << 'EOF' > /usr/share/servers/test man EOF From the command line I want to put "man" into a /usr/share/servers/test. I have file "test" in directory /usr/share/servers/. However when I run that it come back with # cat << 'EOF' >... (2 Replies)
Discussion started by: scj2012
2 Replies

3. Shell Programming and Scripting

Mailx attachment not getting attached.

Hi Friends, Please help me with this problem. I have a number of split files in a directory. each split files has pdf filenames in it. pdf files are also in the same directory. I send a mail for each split files present in the directory with the pdf file mentioned in the file. I have... (4 Replies)
Discussion started by: jcebalaji
4 Replies

4. Shell Programming and Scripting

Attached HTML page to Email

Greeting all, Not sure anyone tested to send out email with HTML page as attachment from Shell Script ? I know if I use uuencode file.html approach, the mail receive in attachment is empty. So I guess uuencode cannot be use for the html code. Appreciate if anyone can share the code to... (0 Replies)
Discussion started by: ckwan
0 Replies

5. Shell Programming and Scripting

Removing patterns conforming to email addresses

I have a huge collection of text files on my computer. These files contain lots of text in them. The files look like this. Example 1: This is a test file. This is an email address: abc.yahoo.com. This is another line. Example 2: This is another file. The person can be contacted at... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies

6. Shell Programming and Scripting

Referring to attached images in html email body through mailx

encoding type for images? (5 Replies)
Discussion started by: biswasbaishali
5 Replies

7. Shell Programming and Scripting

Process not attached to terminal

Hi Folks, When i try to run schedule job on Unix server am getting following errror messges in logs pic_selection @starting on Fri Feb 5 01:53:06 GMT 2010 ------------------------------------------------------------------------------- Microfocus Cobol batch run Started: Fri Feb 5... (4 Replies)
Discussion started by: bhargav20
4 Replies

8. UNIX for Dummies Questions & Answers

Split-Email-removing files

Friends, I have a datafile that have unknown a number of CHARACTERS. if the datafile have more than 1 character and less than 20 email me the file rm datafile if the datafile have more than 20 characters split the datafile into 20 characters in each file email datafileaa email... (4 Replies)
Discussion started by: bobo
4 Replies

9. UNIX for Dummies Questions & Answers

Here Doc (I think!)

Can someone explain to me how a here doc works. I thought it was something like this <<EOF command command command EOF What I am trying to do is put a ftp commands into my shell script, and I've been told that I need to use a here doc for it. Can anybody shed some light on this... (6 Replies)
Discussion started by: cfoxwell
6 Replies
Login or Register to Ask a Question