Discussion:
Fetchmail missing messages...
Rob Connolly
2011-06-15 08:27:21 UTC
Permalink
Hi All,

I have fetchmail setup as a link between my old mail inbox and my new
mail server. It has been happily syncing mail over for a while so that
when I eventually move over to my new server all my mail will be there.

Due to a misconfiguration that occured when I was working on setting up
virtual user accounts on the new server, incoming mail from fetchmail
started bouncing. This has now been fixed, but any mail that came over
in the time that this occured never got delivered to the new server.

The mail is still on the old server. My question is... is there any way
to get fetchmail to pull over the mail it is missing? Every time I run
it now it just pulls over new messages since it was last run, presumably
because it thinks it has already dealt with the other (missing)
messages.

Thanks in advance,

Cheers,

Rob
Alexander Taler
2011-06-15 08:32:45 UTC
Permalink
The mail is still on the old server. My question is... is there any way to
get fetchmail to pull over the mail it is missing? Every time I run it now
it just pulls over new messages since it was last run, presumably because
it thinks it has already dealt with the other (missing) messages.
I had to do this recently and used imapsync. It worked nicely
and can definitely fetch only the messages it needs to.

Alex
--
hsh: The {Human|Happy|History} shell http://www.nongnu.org/hsh/
DEvelopment REFined - Enabling your software team - http://deref.co.nz/
PGP: ID: 0x23DC453B FPR: 42D0 66C2 9FF8 553A 373A B819 4C34 93BA 23DC 453B
the different sources can produce differing forecasts, however we believe [it]
contributes to a more compelling and interesting weather section


_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Rob Connolly
2011-06-15 09:09:33 UTC
Permalink
Post by Alexander Taler
The mail is still on the old server. My question is... is there any way to
get fetchmail to pull over the mail it is missing? Every time I run it now
it just pulls over new messages since it was last run, presumably because
it thinks it has already dealt with the other (missing) messages.
I had to do this recently and used imapsync. It worked nicely
and can definitely fetch only the messages it needs to.
That looks good, although it looks like it will just sync over all my
mail since the folder arrangement is different on each server. I guess I
can just do that and then deal with the folders afterwards.

Rob
Bruce Clement
2011-06-15 12:06:10 UTC
Permalink
Post by Rob Connolly
The mail is still on the old server. My question is... is there any way
to get fetchmail to pull over the mail it is missing? Every time I run
it now it just pulls over new messages since it was last run, presumably
because it thinks it has already dealt with the other (missing)
messages.
I had to do this once, but long ago & I've forgotten the details.

I have some recollection that the ~/.fetchids (file recording last message
UIDs seen per host) was involved. I either edited or deleted it.

I can't remember the rest, but perhaps it will be enough to prompt someone
else's memory.

BTW: Expect some duplication of already retrieved messages.

HTH

Bruce
--
Bruce Clement

Home: http://www.clement.co.nz/
Twitter: http://twitter.com/Bruce_Clement
Directory: http://www.searchme.co.nz/

"Before attempting to create something new, it is vital to have a good
appreciation of everything that already exists in this field." Mikhail
Kalashnikov
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Bruce Clement
2011-06-15 12:13:20 UTC
Permalink
Also have a look at this

(from man fetchmail)

Disposal Options
-a | --all
(Keyword: fetchall) Retrieve both old (seen) and new messages
from the mailserver. The default is to fetch only messages the
server has not marked seen. Under POP3, this option also forces
the use of RETR rather than TOP. Note that POP2 retrieval
behaves as though --all is always on (see RETRIEVAL FAILURE
MODES below) and this option does not work with ETRN or ODMR.


Bruce

On Thu, Jun 16, 2011 at 12:06 AM, Bruce Clement
Post by Bruce Clement
Post by Rob Connolly
The mail is still on the old server. My question is... is there any way
to get fetchmail to pull over the mail it is missing? Every time I run
it now it just pulls over new messages since it was last run, presumably
because it thinks it has already dealt with the other (missing)
messages.
I had to do this once, but long ago & I've forgotten the details.
I have some recollection that the ~/.fetchids (file recording last message
UIDs seen per host) was involved. I either edited or deleted it.
I can't remember the rest, but perhaps it will be enough to prompt someone
else's memory.
BTW: Expect some duplication of already retrieved messages.
HTH
Bruce
--
Bruce Clement
Home: http://www.clement.co.nz/
Twitter: http://twitter.com/Bruce_Clement
Directory: http://www.searchme.co.nz/
"Before attempting to create something new, it is vital to have a good
appreciation of everything that already exists in this field." Mikhail
Kalashnikov
--
Bruce Clement

Home: http://www.clement.co.nz/
Twitter: http://twitter.com/Bruce_Clement
Directory: http://www.searchme.co.nz/

"Before attempting to create something new, it is vital to have a good
appreciation of everything that already exists in this field." Mikhail
Kalashnikov
_______________________________________________
NZLUG mailing list ***@linux.net.nz
http://www.linux.net.nz/cgi-bin/mailman/listinfo/nzlug
Loading...