LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-01-2012, 11:42 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
Fetch the Attachments from Google Inbox to harddisk?


CLI / Bash command line:

Hi, I would like to with bash to retrieve only the attachments into Google Inbox (IMAP) (without deleting the mails into the google box server), for retrieving them into a folder ~/Mail/googleattachements

Would you know if it could be possible?
- fetchmail does not do that (direclty since it get the full email and not its attachment)

I googled a lot and could not find the solution. Maybe another program could do this or even fetchmail if some howto may be found?

thanks for hints
 
Old 04-02-2012, 09:03 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
Quote:
Originally Posted by Xeratul View Post
I would like to with bash to retrieve only the attachments into Google Inbox (IMAP)
See How can I download IMAP mail attachments over SSL and save them locally using Perl? or Use tmail and IMAP to save attachments (uses Ruby) or look for any IMAP copying tool that has filtering rules like imap-wrangler. With the latter an XML config like
Code:
<?xml version="1.0"?>
<!DOCTYPE filters SYSTEM "filters.dtd">
<filters version="0">
 <filter match="any" name="copy_attachments">
  <cond header="content-type" case="no" op="contains">multipart</cond>
   <copy>googleattachements</copy>
 </filter>
</filters>
way (or may not) work.
 
Old 04-04-2012, 01:00 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by unSpawn View Post
See How can I download IMAP mail attachments over SSL and save them locally using Perl? or Use tmail and IMAP to save attachments (uses Ruby) or look for any IMAP copying tool that has filtering rules like imap-wrangler. With the latter an XML config like
Code:
<?xml version="1.0"?>
<!DOCTYPE filters SYSTEM "filters.dtd">
<filters version="0">
 <filter match="any" name="copy_attachments">
  <cond header="content-type" case="no" op="contains">multipart</cond>
   <copy>googleattachements</copy>
 </filter>
</filters>
way (or may not) work.

wow. sounds cool. I will look at this this weekend . thank you Unspawn
 
Old 05-05-2012, 07:47 AM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
...that was a month ago. Remember LQ exists to help you and others. Correcting errors, sharing experiences, posting solutions and marking the thread solved will benefit others that find the thread later on. So please update this thread RSN, TIA.
 
Old 05-06-2012, 02:27 PM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
Quote:
Originally Posted by unSpawn View Post
...that was a month ago. Remember LQ exists to help you and others. Correcting errors, sharing experiences, posting solutions and marking the thread solved will benefit others that find the thread later on. So please update this thread RSN, TIA.
Hi Unspawn,

I have not forgotten you, surely not. I have time to time huge amount of work. I have not found yet sufficiently time to experience it.

I am looking very forward to working on this issue, and I will surely inform you how to make it. The procedure does not look so easy, so it requires me some time.

I would be glad to : fetch them simply with my imap google account, and then do ( I received audio msg from my colleague in US for work)

and then to aplay "$i.wav" all of them to listen what work I shall do.

It saves me lot of time, audio wavs

Last edited by Xeratul; 05-06-2012 at 02:29 PM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
INBOX, Inbox, and MS Outlook 2007 Toomas Linux - Server 5 02-23-2012 09:24 AM
Kmail with google and hotmail accounts receive all SENT messages in INBOX.- nomikos Linux - Desktop 0 03-30-2011 02:30 PM
mplayer fetch subtitles option: --fetch-subs frenchn00b Linux - General 1 11-09-2009 11:21 PM
Low Harddisk space. Can I just transfer the entire Linux to a bigger harddisk? davidas Linux - Newbie 12 04-13-2004 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:08 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