Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

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


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!

(Nota: My mutt is well configured, and fetchmail too.)
Old 03-01-2011, 12:39 PM   #2
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:

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.


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
Bash: How to use $(fetchmail | head -n 1) to make a beep at any new email received? frenchn00b Programming 1 05-29-2010 10:36 AM
[SOLVED] Email output of Cron command, sends email but no content? the182guy Linux - Newbie 4 05-28-2010 10:52 AM
receive and parse email in bash (or execute script when message is received) Guyverix Linux - Newbie 2 11-15-2009 08:29 AM
Pipe'ing the ouput of 'cat' into 'mutt' (email) losses newlines when email received helptonewbie Linux - Newbie 2 08-28-2008 04:16 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration