LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-21-2013, 04:06 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,579

Rep: Reputation: 104Reputation: 104
Using Fetchmail to get Gmail Emails into ~/Mails/inbox?


Hello,

I would like to know whether it is possible to
fetch the emails of gmail to a given directory?

If yes, could you please recommend an interesting
configuration .fechmailrc?

Fetchmailrc and its configuration is particularly tricky.

thank you in advance
 
Old 04-21-2013, 08:05 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,722
Blog Entries: 55

Rep: Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325
Quote:
Originally Posted by Xeratul View Post
Fetchmailrc and its configuration is particularly tricky.
You've been a member long enough now to know that shouldn't keep you from showing us what you actually tried.

Personally I use Getmail and a config for Gmail is a simple as
Code:
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.whatever
username = user
password = pass

[destination]
type = Mboxrd
path = /some/path/some.mbox

[options]
verbose = 0
 
Old 04-21-2013, 09:17 AM   #3
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,579

Original Poster
Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by unSpawn View Post
You've been a member long enough now to know that shouldn't keep you from showing us what you actually tried.

Personally I use Getmail and a config for Gmail is a simple as
Code:
[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.whatever
username = user
password = pass

[destination]
type = Mboxrd
path = /some/path/some.mbox

[options]
verbose = 0

I have used getmail4 and offlineimap. both work.

However I have looked for a new alternative since my current machine has NOT python. yeap.
Getmail4 and offlineimap are both python based.

I have either to use gcc, libs to code myself something or look another solution.
I came to fetchmail which is basically coded in C(*).

...
(till now, after using fetchmail several years too, I do think that you cannot retrieve the imap gmail inbox to your local dir with fetchmail)
but getmail4 and offlineimap (python based) yes.

well, still unsolved till now.

(I need portability )

(It seems that I will have to code sthg to avoid using python)

Last edited by Xeratul; 04-21-2013 at 09:20 AM.
 
Old 04-21-2013, 04:03 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 28,722
Blog Entries: 55

Rep: Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325Reputation: 3325
Quote:
Originally Posted by Xeratul View Post
(..) I have looked for a new alternative since my current machine has NOT python.
It kind of helps to put all your requirements in the first post and I'm sure searching The-Site-Formerly-Known-As-Freshmeat, Sourceforge, Savannah.nongnu, Berlioz, Googlecode will yield IMAP tools written in C(*).
 
Old 04-22-2013, 03:08 AM   #5
Xeratul
Senior Member
 
Registered: Jun 2006
Location: Debian Land
Posts: 1,579

Original Poster
Rep: Reputation: 104Reputation: 104
Quote:
Originally Posted by unSpawn View Post
It kind of helps to put all your requirements in the first post and I'm sure searching The-Site-Formerly-Known-As-Freshmeat, Sourceforge, Savannah.nongnu, Berlioz, Googlecode will yield IMAP tools written in C(*).
Thanks I will try to find out. I will search

I guess that I had troubles with fetchmail, and will try to dig into more in this direction. I havent manage to understand how fetchmail works.

http://easierbuntu.blogspot.co.at/20...fetchmail.html

man fetchmail will be my friend
and search.

thx
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] fetchmail does not delete mails received mails from server golden_boy615 Linux - General 1 05-02-2011 02:16 AM
Sendmail not going into INBOX of gmail,Yahoo, Reddiff etc unix_anand Linux - Newbie 1 10-31-2009 08:14 AM
No mails in inbox + Courier-imap kiranbyk Linux - Server 3 01-08-2007 04:22 AM
How to get incoming e-mails to go to IMAP inbox? capitalista Linux - Networking 1 12-11-2005 09:50 PM
Number of Emails in INBOX BxBoy Programming 3 02-24-2003 07:04 AM


All times are GMT -5. The time now is 09:57 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration