LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-14-2008, 11:04 AM   #1
nestoraldo
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Exclamation How Can I manipulate e-mail Atachment?


Hello:
======
I´m newbie in this Forum and I would like to do:

I get e-mail from ISP whith fetchmail, I want to "read" e-mail subjet and if it says for example "Reclamo" run a process that uncompress atachment in a folder.
An aplication takes this file (*.xls) an load it into a Database.-

Thanks for help.-
 
Old 05-14-2008, 06:55 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Hello and welcome to LQ, hope you like it here.

You can perform those tasks with a Procmail recipe that selects the message by its subject ("* ^Subject:.*Reclamo") and pipe the message through OpenSSL in base64 mode, mmencode, metamail or equivalent to save the attachment to a temporary file. If your application handles unconverted Mcrsft Excel then you could just fill a variable with the tempfile name and "| sh /the/application $variable". Want to tinker with it yourself (10 pts) or do you want the recipe?
 
  


Reply

Tags
email



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd> chmod/permissions, is possible to manipulate? robbiej Linux - Software 2 01-18-2008 08:56 PM
manipulate the floppy bruse Mandriva 1 02-22-2005 07:49 AM
how to manipulate string in script? ringerxyz Programming 2 02-17-2005 01:14 AM
Manipulate .ISO files in Linux????? Garrett_80 Linux - Software 3 12-15-2004 09:53 AM
need to manipulate dates clsonnt Programming 5 08-19-2003 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration