ok, revamping this old one.
did some tests..
fetchmail stores the ids of fetched emails in /var/lock/fetchmail/.fetchids file (/var/lock/fetcmail is defined in /etc/startmail file as FETCHMAILHOME)
setting an account as follow
FM-Ghost=YES
FM-KeepOption=YES
works as desired, but if I reboot the server, the .fetchids file is deleted and recreated on the frist run, so that all the mail are fetched again.
tried editing /etc/fetchmail file using the -i flag, i.e from
/usr/bin/fetchmail -l75000000 -d0 --verbose --syslog --fetchmailrc - <<
to
/usr/bin/fetchmail -l75000000 -d0 --verbose --syslog -i /mynewpath/.fetchids --fetchmailrc - <<
where mynewpath is something like (example) /var/lib/fetchmail, with qmailr:qmail owner
moved .fetchids to the new location, tried running startmail.. everything is ok
then rebooted the server and checked the file is still here
so, here are my questions:
- I dind't find where the file is deleted.. is it something related to /var/lock?
- am I missing anything?
Will write everything on bugzilla too
TIA