The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Aix Unix Mailx Attachments darioa AIX 3 01-07-2009 01:09 PM
Reading a mailbox and sending new messages to a text file rsw626 Shell Programming and Scripting 1 04-17-2008 02:35 PM
how to extract a tilde delimited file in unix trichyselva Shell Programming and Scripting 12 03-06-2007 12:19 AM
sending attachments via unix Abhishek Ghose UNIX for Advanced & Expert Users 6 09-30-2005 05:49 PM
Mailbox file format exile UNIX for Advanced & Expert Users 1 09-18-2001 10:44 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 06-24-2008
raynor raynor is offline
Registered User
  
 

Join Date: Jun 2008
Posts: 2
Extract all attachments from unix mailbox file

Hi guys,

I wondering if someone already wrote a script for this, it looks easy for the first shot but I would say it's a bit advanced.

I want to extract all my email attachments from /var/mail/username (Unix mail format) + from my local mails (Maildir format) to a directory with the original filename, and rename it automatically if 2 attachments have the same name. Thunderbird has an extension for it but I would like to do it with shellscript.

If noone knows script for this (tried googling of course) then I write my own.
Pbly sed would be sufficient to process the whole mailbox file and find the attachments as records.

Thanks

Last edited by raynor; 06-24-2008 at 02:21 AM..
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:28 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0