LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-09-2007, 01:51 PM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 50
How to list gmail emails in box, with pop or imap (no delete on server), secured way?


Just wanna check the emails, secured, and then play a sound or read it with festival.

Thanks !!
 
Old 10-09-2007, 02:18 PM   #2
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Set the appropriate parameter in the program you use to poll the POP3 and/or IMAP server; most of them have a "no delete" parameter.
 
Old 10-09-2007, 02:36 PM   #3
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Su-Shee View Post
Set the appropriate parameter in the program you use to poll the POP3 and/or IMAP server; most of them have a "no delete" parameter.
sounds cool; which console program would you recommand to use to read via IMAP the emails ? thanks for hte info
 
Old 10-09-2007, 02:57 PM   #4
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
Just to look if something is there? Probably fetchmail. Supports both IMAP and POP.

You'd possibly even just hack a short shell script or perl script to do the task, because if you setup a LIST command via telnet, you'll get your list of mails without deleting. Deleting is another command.

Usally, I use IMAP from within a real mail client where I prefer text-based mutt, but of course thunderbird will do either.
 
Old 10-09-2007, 03:02 PM   #5
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Su-Shee View Post
Just to look if something is there? Probably fetchmail. Supports both IMAP and POP.

You'd possibly even just hack a short shell script or perl script to do the task, because if you setup a LIST command via telnet, you'll get your list of mails without deleting. Deleting is another command.

Usally, I use IMAP from within a real mail client where I prefer text-based mutt, but of course thunderbird will do either.
Thanks
I'd now have to look how to fetchmail the gmail accounts with imap; I mean how to configure that stuffs ports ...

(Mutt is nice alternative, but still difficult to confgure.. like mutt reading or list sthg)

For avoiding that, I run a hack gmail-notify that is in perl with output to dev null with addons lines, but that problem : I was not satisfied. I prefer that a pro would modify or release an "official" gmail-notify-shell stuff.

Thanks (and greetings to you, abroad ) !!
 
Old 10-09-2007, 03:52 PM   #6
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
I thought Gmail only supports POP3?

And mutt is easy, really - just four lines to enable IMAP:

set spoolfile="{YOURSERVER.EU:993}INBOX" # don't move stuff anywhere
set folder="{YOURSERVER.EU:993/}INBOX" # another don't move stuff anywhere
set imap_user="YOURUSERNAME"
set imap_pass="YOURPASS"
set imap_authenticators="login"
set imap_servernoise
set imap_force_ssl

Well, ok 7.

"man muttrc" is easy to understand.

You can hook on different accounts different actions.

And gmail notify is probably THAT simple that nearly everyone just hacks it in two or three lines to make it work - check one of the hundreds of web-applets notifying about gmail mail, I can't imagine that this is difficult.

Google for "gmail desklets" - there're even several desklets which support this.
 
Old 10-09-2007, 04:37 PM   #7
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 50
Quote:
Originally Posted by Su-Shee View Post
I thought Gmail only supports POP3?

And mutt is easy, really - just four lines to enable IMAP:

set spoolfile="{YOURSERVER.EU:993}INBOX" # don't move stuff anywhere
set folder="{YOURSERVER.EU:993/}INBOX" # another don't move stuff anywhere
set imap_user="YOURUSERNAME"
set imap_pass="YOURPASS"
set imap_authenticators="login"
set imap_servernoise
set imap_force_ssl

Well, ok 7.

"man muttrc" is easy to understand.

You can hook on different accounts different actions.

And gmail notify is probably THAT simple that nearly everyone just hacks it in two or three lines to make it work - check one of the hundreds of web-applets notifying about gmail mail, I can't imagine that this is difficult.

Google for "gmail desklets" - there're even several desklets which support this.
something like this (?)
cat .muttrc
Code:
set sendmail="/usr/local/bin/nbsmtp"
unset use_from

set spoolfile="{YOURSERVER.EU:993}INBOX" # don't move stuff anywhere
set folder="{YOURSERVER.EU:993/}INBOX" # another don't move stuff anywhere
set imap_user="MYLOGINXXXXX@gmail.com"
set imap_pass="MYPASSWORDXXXXXX"
set imap_authenticators="login"
set imap_servernoise
set imap_force_ssl
for gmail, but I get this:
Code:
$ .muttrc, line 10: imap_force_ssl: unknown variable
source: errors in /root/.muttrc
Press any key to continue...
 
Old 10-10-2007, 04:59 AM   #8
Su-Shee
Member
 
Registered: Sep 2007
Location: Berlin
Distribution: Slackware
Posts: 509

Rep: Reputation: 41
It seems, your mutt doesn't support IMAP SSL.

Change the IMAP port to 143 and comment out the critized option.

And please don't do all this as root, mutt works perfectly fine with ordinary user permissions.
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
POP/IMAP Only Mail Server Setup? bardanes Linux - Software 3 10-23-2004 05:05 PM
Mail, POP, IMAP server !! bpandey Linux - Networking 1 09-06-2004 01:09 PM
how to delete too many emails in my box? linuxboy_inside Linux - Newbie 2 12-11-2003 09:29 PM
email server POP and IMAP petebud Linux - General 3 05-09-2003 03:33 PM
domain pop and imap server l10nel Linux - Newbie 3 03-18-2002 06:45 AM


All times are GMT -5. The time now is 04:46 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration