LinuxQuestions.org
Review your favorite Linux distribution.
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, 12:04 PM   #1
nestoraldo
LQ Newbie
 
Registered: May 2008
Posts: 1

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


Hello:
======
Im 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, 07:55 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:56 PM
manipulate the floppy bruse Mandriva 1 02-22-2005 08:49 AM
how to manipulate string in script? ringerxyz Programming 2 02-17-2005 02:14 AM
Manipulate .ISO files in Linux????? Garrett_80 Linux - Software 3 12-15-2004 10:53 AM
need to manipulate dates clsonnt Programming 5 08-19-2003 11:07 AM


All times are GMT -5. The time now is 01:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration