Find the answer to your Linux question:
Results 1 to 3 of 3
Im having a problem with my Fetchmail. When i run the program it keeps fetching the same mail everytime. My fetchmailrc looks like this: ------------------------------------------------------------------ #set daemon 600 #set logfile ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2011
    Posts
    4

    Fetchmail problems... keeps downloading the same mail!


    Im having a problem with my Fetchmail.

    When i run the program it keeps fetching the same mail everytime.

    My fetchmailrc looks like this:
    ------------------------------------------------------------------
    #set daemon 600
    #set logfile /home/username/fetchmail.log

    poll "mail.server.com" protocol POP3
    user "NAME" pass "PASSWORD" is "USERNAME" here
    # ssl
    # fetchall
    keep
    # no rewrite
    mda "/usr/bin/procmail -f %F -d %T"
    ------------------------------------------------------------------

    I know if im not using keep it will work but i want to use it, it must be a way so fetchmail knows which mail it already has been fetching?

  2. #2
    Linux User
    Join Date
    Dec 2009
    Posts
    262
    My guess is that fetchmail has a problem writing the id-file.

    fetchmail.man
    https://trac.macports.org/wiki/howto/SetupFetchmail

    It should be:
    ~/.fetchids

    So take a look if it exists, and if there are ids inside.
    Also check if the user running fetchmail has access to the file.

    Commands you may need:
    cd ~
    ls -al \.fetchids
    touch .fetchids
    chmod 777 .fetchids

  3. #3
    Just Joined!
    Join Date
    Jun 2011
    Posts
    4
    I just added the command uidl as follows:

    #set daemon 600
    #set logfile /home/username/fetchmail.log

    poll "mail.server.com" protocol POP3 uidl
    user "NAME" pass "PASSWORD" is "USERNAME" here
    # ssl
    # fetchall
    keep
    # no rewrite
    mda "/usr/bin/procmail -f %F -d %T"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •