Solved

Program to receive email w/attachment, unzip attachment and email back unzipped files

Posted on 2004-04-09
6
239 Views
Last Modified: 2011-04-14
I am trying to create a quick program for a linux box running qmail with qmail-scanner.  What i want to do is set up an email robot to receive emails (that part is easy) with .zip attachments but it then needs to unzip the attachment and email the unzipped files back to the person that emailed them the zip file.  Basically its just an automatic unzipper.

I can create the email robot which can receive email but at the moment all it can do is send an automated response back to the person.  I want it to do more than this.  Currently i am using Qmail/qmail-scanner/vpopmail/vqadmin.

Does anyone have any ideas how to do this?

Thanks,
Jim
0
Comment
Question by:jimm17
  • 3
  • 2
6 Comments
 
LVL 9

Expert Comment

by:Alf666
ID: 10793296
You could easily do it in perl or simply using a shell script.

Unzipping is not hard. But then, you'd have to browse the file tree and encode each file separately.

You can use mmencode for this.

Could you be more precise about what exactly you're trying to achieve ?
0
 

Author Comment

by:jimm17
ID: 10793560
The reason i want to do this is because i am trying to remove the need for me to purchase and install winzip on every workstation in my organization.  Every once in a while, someone will receive a zip file via email which they need to open.  We do not have winzip installed on these users workstations.  Currently what i have them do is forward me the email they recieved, then i unzip it for them and then email them back the unzipped files.  So im thinking to myself, why cant a program do this automatically?  I know i can make the simple script to unzip the file itself but integrating this into the mail system is something i really dont know how to do.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10793697
Have  you considered using Info-Zip (http://www.info-zip.org/pub/infozip/) on the windows boxes?
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:jimm17
ID: 10793721
No, i didnt know about info-zip.  However, i would have to install this on about 150 workstations and show everyone how to use it.  This may not sound like a big deal, but we're talking about doctors and nurses here and believe it or not, most of them have no clue when it comes to computers.  Im looking to make it as easy as possible for them, and remove the headache for me.
0
 
LVL 40

Accepted Solution

by:
jlevie earned 500 total points
ID: 10793851
For simple zip files the mail solution could be made to work, provided the zip files aren't password protected. Handling a zip file that contains a directory hierarchy would be a mess.

What I suspect would be easier to do would be to create a web app that allowed a user to upload a zip file, run unzip on the file into a "personal web dir" that the user can then download from.
0
 

Author Comment

by:jimm17
ID: 10793959
Thats a good point.  I didnt even think about the web app.  Being that php programming is something i've been doing for some time now this wouldnt really be that difficult.  Not to mention that using a web app would be a lot easier to manage directory structure within the zip file.

Thanks everyone for the suggestions.

Jim
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Percona cluster member randomly crash 15 517
How to trace the cause of Out Of Memory issues 8 70
Help with Ubuntu 14.04 LTS 10 135
Problem to start Neon 20 103
Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now