Skip to contentSkip to conversation

accessing email via POP3

DISCUSSION Karthik Vishwanath Adv03 6 participants 6 messages Nov 30, 2004 – Dec 2, 2004

lore
Share & tools
lore
#0 lore raw

Hello,

I receive mail on this account that can be accessed via POP3. I used to use fetchmail as my mail-fetcher on an old machine to do this. I am trying to do the same from another machine that runs Redhat 9 (Linux 2.4.20-8) and seems like I cannot decipher how exactly to do this (perusing the fetchmail man page had me really confused). My .fetchmailrc looks like this:
---------
set syslog
set daemon 10
poll newdoc.dartmouth.org and options no dns keep user 'karthikv' there is 'karthik' here options

---------

$ fetchmail 
fetchmail:/home/karthik/.fetchmailrc:6: parse error at user

How can I fix this? (BTW, I had a whole load of dependency issues on trying to install fetchmailconf...)

Thanks!

-K

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#1 lore raw
Quoted 15 lines · At 03:54 PM 11/30/2004 -0500, Karthik Vishwanath Adv03 wrote:

Hello,

I receive mail on this account that can be accessed via POP3. I used to use fetchmail as my mail-fetcher on an old machine to do this. I am trying to do the same from another machine that runs Redhat 9 (Linux 2.4.20-8) and seems like I cannot decipher how exactly to do this (perusing the fetchmail man page had me really confused). My .fetchmailrc looks like this:
---------
set syslog
set daemon 10
poll newdoc.dartmouth.org and options no dns keep user 'karthikv' there is 'karthik' here options

Quoted 7 lines

---------

$ fetchmail
fetchmail:/home/karthik/.fetchmailrc:6: parse error at user

How can I fix this? (BTW, I had a whole load of dependency issues on trying to install fetchmailconf...)

The error message says the problem is on line 6, but in the extract you provide, the "user" line is line 4. Have you left some part of the file out?

None of the examples for .fetchmailrc that I could locate (on a quick search) actually used the word "options", instead simply putting the desired options in those spots. So you might try deleting that word on the user line and the one before it.

Is it possible that a non-printing character slipped into the file (for example, a CRLF combo for newline instead of the Unix LF)?

All the examples I could find either used no quotes or (if there were embedded spaces) regular double quotes. So you might try either removing the single quotes or replacing them with double quotes.

Since this used to work on a different machine ... why aren't you simply moving the working .fetchmailrc from the old setup to the new one/

As to your BTW ... the Debian packaging system says that fetchmailconf depends only on fetchmail itself and the python and python-tk packages. Of course, that conceals some dependencies derived from those three, but it suggests that nothing really exotic is needed. Might you have run into some versioning issue (like a libc6 mismatch)? Hard to say much here, since I don't know Red Hat, not having used it for years.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#2 lore raw
In reply to Karthik Vishwanath Adv03
Quoted 4 lines · On 30 Nov 2004 15:54:46 EST [email protected]…

My .fetchmailrc
looks like this:
---------
set daemon 10

it's seconds you're giving as an argument. So that is: "poll every 10 seconds"

Quoted 1 line

poll newdoc.dartmouth.org and options no dns keep

As far as I know you can't use options here but only in the next line:

Quoted 1 line

user 'karthikv' there is 'karthik' here options

a password is missing here.

the syntax is:
poll mail-server protocol POP3
user "karthikv", with password "hidden" is user "karthik" here options\
no dns keep

But I guess you should use "no dns" so that fetchmail won't take it for to words (not tested).

Quoted 2 lines
$ fetchmail 
fetchmail:/home/karthik/.fetchmailrc:6: parse error at user

That says that you have an error in line 6. I guess it's the line beginning with poll (don't use options here)

Quoted 3 lines

How can I fix this? (BTW, I had a whole load of dependency issues on trying to install fetchmailconf...)

I never could make much use of that program. I prefer to handle it via editor.

hth

Ulrich
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#3 lore raw
Quoted 8 lines · Ulrich Fürst
Quoted 4 lines · On 30 Nov 2004 15:54:46 EST [email protected]…

My .fetchmailrc
looks like this:
---------
set daemon 10

it's seconds you're giving as an argument. So that is: "poll every 10 seconds"

Polling every 10 sec's is rude behaviour towards your i.s.p. .. Don't do that.

The command:
fetchmail --version
Will show all your options set in your .fetchmailrc and if they are accepted by fetchmail.. Try it..

A typical ~/.fetchmailrc for dailup-users

poll pop.myisp1.nl
proto POP3
username president
password UsCliNton
mda "/usr/bin/procmail -d clinton"
set logfile "/var/log/fetch.log"

Of course every command can given on the command-line as options to fetchmailrc

J.

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#4 lore raw
Quoted 9 lines · On Wed, 1 Dec 2004 18:19:23 +0100 (CET) "J." <[email protected]> wrote:
Quoted 7 lines · Ulrich Fürst
Quoted 4 lines · On 30 Nov 2004 15:54:46 EST [email protected](Karthik…

My .fetchmailrc
looks like this:
---------
set daemon 10

Quoted 5 lines
Quoted 2 lines

it's seconds you're giving as an argument. So that is: "poll every 10 seconds"

Polling every 10 sec's is rude behaviour towards your i.s.p. .. Don't do that.

Yes, I know, I thought that would be clear for the OP by reading.
Btw if you get e.g. a hundred emails while booting that will last
longer than ten seconds even with DSL.
But I've got to admit that I should've writen it. for you can't read my thoughts (I hope ;-) ).

Ulrich
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

#5 lore raw

When I switched to Linux from DOS it was fetchmail which nearly made me abandon the idea of using Linux, until somebody suggested not to use fetchmail and things worked out alright ever since.

I am using getmail now, it's a great program.

http://www.qcc.ca/~charlesc/software/getmail-4/

Regards

Signature · 7 lines
Peter

-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs