LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2011, 04:28 PM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,657

Rep: Reputation: 255Reputation: 255Reputation: 255
bash: outputing the email content of the last email received?


Hello,

I would like with bash to output the content of my very last email that has been received (I use gmail), especially using fetchmail or mutt.


Thank you in advance!
Cheers

--
(Nota: My mutt is well configured, and fetchmail too.)
 
Old 03-01-2011, 11:39 AM   #2
Agentrooker
LQ Newbie
 
Registered: Sep 2003
Posts: 9

Rep: Reputation: 5
I've never done this myself, but it seems like if you could get fetchmail configured right, there shouldn't be much (if any) bash scripting needed to get it to do what you want.

This tutorial seems like it would be useful to you: http://www.axllent.org/docs/networki...with_fetchmail

I would also check the man page for fetchmail. You would probably have more luck posting any questions that come up about fetchmail in one of the other subforums, like maybe the Linux Software subforum.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: How to use $(fetchmail | head -n 1) to make a beep at any new email received? frenchn00b Programming 1 05-29-2010 09:36 AM
[SOLVED] Email output of Cron command, sends email but no content? the182guy Linux - Newbie 4 05-28-2010 09:52 AM
receive and parse email in bash (or execute script when message is received) Guyverix Linux - Newbie 2 11-15-2009 07:29 AM
Pipe'ing the ouput of 'cat' into 'mutt' (email) losses newlines when email received helptonewbie Linux - Newbie 2 08-28-2008 03:16 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:38 PM.

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