fetchmail and yahoo problem
![](https://seccdn.libravatar.org/avatar/be3cbf09c757a5d72b4bf0aaf1345896.jpg?s=120&d=mm&r=g)
Hi, I've been using fetchmail for while now and did not have any problems till now. I installed new version of 9.0 (upgraded from 8.0) and started using Postfix instead of sendmail. I configured my MTA in yast and everything was working fine till yesterday. Problem: While downloading mail from yahoo, the mail is not deleted, and just keeps downloading, so I get multiple copies of the SAME message. After while I end up with a lot of copies of the repeated messages in my local inbox and the mail in yahoo is still not deleted. Did anyone had/has this problem? And how do I fix it? Thanks for any input, Wojtek __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
![](https://seccdn.libravatar.org/avatar/235069ec40fbac54c9d92c8a57c2a547.jpg?s=120&d=mm&r=g)
* Wojtek Malinski
Problem: While downloading mail from yahoo, the mail is not deleted, and just keeps downloading, so I get multiple copies of the SAME message. After while I end up with a lot of copies of the repeated messages in my local inbox and the mail in yahoo is still not deleted.
Are you running fetchmail as user or does the system start it automagickally? If the system, it uses /etc/fetchmailrc, not ~/.fetchmailrc. The differences between the two rc files is more than likely the problem. Look for parameters -a or --all, -k or --keep, -K or --nokeep and -F or --flush. man fetchmail will explain. Please post your findings. gud luk, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
![](https://seccdn.libravatar.org/avatar/be3cbf09c757a5d72b4bf0aaf1345896.jpg?s=120&d=mm&r=g)
I have my local copy of ~/.fetchmailrc. I do not
know (have to check when I get home) whether the
/etc/fetchmailrc is used.
How can I tell whether /etc/fetchmailrc is used?
And if so is there a setting in Yast (or somwhere
else)
that I can turn it off?
Thanks for your help,
Wojtek
--- Patrick Shanahan
* Wojtek Malinski
[01-22-04 13:02]: Problem: While downloading mail from yahoo, the mail is not
deleted, and just
keeps downloading, so I get multiple copies of the SAME message. After while I end up with a lot of copies of the repeated messages in my local inbox and the mail in yahoo is still not deleted.
Are you running fetchmail as user or does the system start it automagickally? If the system, it uses /etc/fetchmailrc, not ~/.fetchmailrc. The differences between the two rc files is more than likely the problem. Look for parameters -a or --all, -k or --keep, -K or --nokeep and -F or --flush. man fetchmail will explain.
Please post your findings.
gud luk, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The Thursday 2004-01-22 at 11:01 -0800, Wojtek Malinski wrote:
I have my local copy of ~/.fetchmailrc. I do not know (have to check when I get home) whether the /etc/fetchmailrc is used.
How can I tell whether /etc/fetchmailrc is used?
If it exists, it will be used - not instead of, but both of them: one by the system (script /etc/ppp/poll.tcpip) and another by you.
And if so is there a setting in Yast (or somwhere else) that I can turn it off?
Yast would create it if on Yast you defined mailboxes to be fetched. Undefine them - or simply delete the file. There is another possibility: there is a problem while downloading mail from yahoo, the connection to the server goes down, and mail is not deleted from the server. Depending on many things, including your configuration, mail could be downloaded again. To detect this, look at the mail log - it maybe necessary to call fetchmail with the -v parameter (verbose). -- Cheers, Carlos Robinson
![](https://seccdn.libravatar.org/avatar/be3cbf09c757a5d72b4bf0aaf1345896.jpg?s=120&d=mm&r=g)
OK. I check /etc/fetchmailrc and removed all the
entries. Now I only have ~/.fetchmailrc and
start it locally. my ~/.fetchmailrc for yahoo
looks following:
set postmaster "wojtek"
set bouncemail
set no spambounce
set properties ""
poll pop.mail.yahoo.com with proto POP3
user 'wmalinski' there with password 'mypasswd'
is 'wojtek' here options fetchall
when I run fetchmail from fechmailconf I got
following for one of my mails:
#*****************************.**********************************.*****************************.*************************.*********fetchmail:
SMTP>. (EOM)
fetchmail: SMTP< 250 Ok: queued as 5C965187B5
flushed
fetchmail: POP3> DELE 375
fetchmail: POP3< +OK message 375 marked deleted
fetchmail: POP3> RETR 376
fetchmail: POP3< +OK 6776 octets
reading message wmalinski@pop.vip.sc5.yahoo.com:376 of
968 (6774 octets)
fetchmail: SMTP> MAIL FROM:
The Thursday 2004-01-22 at 11:01 -0800, Wojtek Malinski wrote:
I have my local copy of ~/.fetchmailrc. I do not know (have to check when I get home) whether the /etc/fetchmailrc is used.
How can I tell whether /etc/fetchmailrc is used?
If it exists, it will be used - not instead of, but both of them: one by the system (script /etc/ppp/poll.tcpip) and another by you.
And if so is there a setting in Yast (or somwhere else) that I can turn it off?
Yast would create it if on Yast you defined mailboxes to be fetched. Undefine them - or simply delete the file.
There is another possibility: there is a problem while downloading mail from yahoo, the connection to the server goes down, and mail is not deleted from the server. Depending on many things, including your configuration, mail could be downloaded again. To detect this, look at the mail log - it maybe necessary to call fetchmail with the -v parameter (verbose).
-- Cheers, Carlos Robinson
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
![](https://seccdn.libravatar.org/avatar/eb54421a24c930c6704b99a96231407c.jpg?s=120&d=mm&r=g)
Wojtek Malinski (wmalinski@yahoo.com) [040123 08:39]:
OK. I check /etc/fetchmailrc and removed all the entries. Now I only have ~/.fetchmailrc and start it locally. my ~/.fetchmailrc for yahoo looks following: set postmaster "wojtek" set bouncemail set no spambounce set properties ""
yet the mails are still not deleated from the yahoo server!!!
If anyone has any idea what should I try next please help.
You want to use the paramater "fetchall" which should delete off the server. For example: poll server.com with proto <protocol>: user "user" there with password "password" is user here no idle fetchall;
--- "Carlos E. R."
wrote: The Thursday 2004-01-22 at 11:01 -0800, Wojtek Malinski wrote:
I have my local copy of ~/.fetchmailrc. I do not know (have to check when I get home) whether the /etc/fetchmailrc is used.
How can I tell whether /etc/fetchmailrc is used?
If it exists, it will be used - not instead of, but both of them: one by the system (script /etc/ppp/poll.tcpip) and another by you.
And if so is there a setting in Yast (or somwhere else) that I can turn it off?
Yast would create it if on Yast you defined mailboxes to be fetched. Undefine them - or simply delete the file.
There is another possibility: there is a problem while downloading mail from yahoo, the connection to the server goes down, and mail is not deleted from the server. Depending on many things, including your configuration, mail could be downloaded again. To detect this, look at the mail log - it maybe necessary to call fetchmail with the -v parameter (verbose).
-- Cheers, Carlos Robinson
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- "I think there's an innocence about the midwest that walks hand in hand with a kind of mental illness..." Linford Detweiler 1993 -------------------------------------------------- Leah R. M. Cunningham | (heinous)@freenode #suse www.heinous.org | Linux geek, et al. -------------------------------------------------- 9640 4388 74FA 4EB2 770B 0479 D361 B255 F229 9827
![](https://seccdn.libravatar.org/avatar/be3cbf09c757a5d72b4bf0aaf1345896.jpg?s=120&d=mm&r=g)
Hi, I DO HAVE parameter fetchall in my script: poll pop.mail.yahoo.com with proto POP3 user 'wmalinski' there with password 'mypasswd' is 'wojtek' here options fetchall So is there anything else I need to check? Thanks for any input, Wojtek
You want to use the paramater "fetchall" which should delete off the server. For example:
poll server.com with proto <protocol>: user "user" there with password "password" is user here no idle fetchall;
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
![](https://seccdn.libravatar.org/avatar/eb54421a24c930c6704b99a96231407c.jpg?s=120&d=mm&r=g)
Wojtek Malinski (wmalinski@yahoo.com) [040123 12:42]:
Hi,
I DO HAVE parameter fetchall in my script: poll pop.mail.yahoo.com with proto POP3 user 'wmalinski' there with password 'mypasswd' is 'wojtek' here options fetchall
So is there anything else I need to check? Thanks for any input,
Oops, sorry, I missed that. I never put the "options" word in mine, I don't think it's required, but other than that, I can't think of anything. That seems to work in my case.
You want to use the paramater "fetchall" which should delete off the server. For example:
poll server.com with proto <protocol>: user "user" there with password "password" is user here no idle fetchall;
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-- "I think there's an innocence about the midwest that walks hand in hand with a kind of mental illness..." Linford Detweiler 1993 -------------------------------------------------- Leah R. M. Cunningham | (heinous)@freenode #suse www.heinous.org | Linux geek, et al. -------------------------------------------------- 9640 4388 74FA 4EB2 770B 0479 D361 B255 F229 9827
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The Friday 2004-01-23 at 12:25 -0800, Leah Cunningham wrote:
You want to use the paramater "fetchall" which should delete off the server. For example:
No, that option makes fetchmail try to get any mail still on the server, even if it has been retrieved previously. That option has to be used, but is part of his problem. Read my other mail on this thread were I explain this fully. -- Cheers, Carlos Robinson
![](https://seccdn.libravatar.org/avatar/5a94d2f8a5845d5f1c1ea1556fc0cb72.jpg?s=120&d=mm&r=g)
On 01/24/2004 12:39 AM, Wojtek Malinski wrote:
OK. I check /etc/fetchmailrc and removed all the entries. Now I only have ~/.fetchmailrc and start it locally. my ~/.fetchmailrc for yahoo looks following: set postmaster "wojtek" set bouncemail set no spambounce set properties "" poll pop.mail.yahoo.com with proto POP3 user 'wmalinski' there with password 'mypasswd' is 'wojtek' here options fetchall
when I run fetchmail from fechmailconf I got following for one of my mails:
#*****************************.**********************************.*****************************.*************************.*********fetchmail:
fetchmail: POP3> DELE 375 fetchmail: POP3< +OK message 375 marked deleted
It looks like the yahoo server is the one with the problem, not your system. Does it delete if you pop it with your mail client? Maybe try reporting it to the yahoo postmaster. -- Joe Morris New Tribes Mission Email Address: Joe_Morris@ntm.org Web Address: http://www.mydestiny.net/~joe_morris Registered Linux user 231871 God said, I AM that I AM. I say, by the grace of God, I am what I am.
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The Saturday 2004-01-24 at 08:55 +0800, Joe Morris (NTM) wrote:
fetchmail: POP3> DELE 375 fetchmail: POP3< +OK message 375 marked deleted
It looks like the yahoo server is the one with the problem, not your system. Does it delete if you pop it with your mail client? Maybe try reporting it to the yahoo postmaster.
No, real deletion is not made till the conection is properly closed with the QUIT command. If the conection goes down before that, nothing will be deleted. This is correct behaviour. See my other mail for a longer explanation. -- Cheers, Carlos Robinson
![](https://seccdn.libravatar.org/avatar/861b5545c111d2257fa12e533e723110.jpg?s=120&d=mm&r=g)
The Friday 2004-01-23 at 08:39 -0800, Wojtek Malinski wrote:
OK. I check /etc/fetchmailrc and removed all the entries. Now I only have ~/.fetchmailrc and start it locally. my ~/.fetchmailrc for yahoo looks following: set postmaster "wojtek" set bouncemail set no spambounce set properties ""
I use also "set syslog", so that logs go to /var/log/mail
poll pop.mail.yahoo.com with proto POP3 user 'wmalinski' there with password 'mypasswd' is 'wojtek' here options fetchall
Ah. If there are problems during the download and it gets interrupted, everything will get downloaded again (fetchall).
when I run fetchmail from fechmailconf I got following for one of my mails:
From fetchmailconf? Why not call fetchmail -v directly?
#*****************************.**********************************.*****************************.*************************.*********fetchmail: SMTP>. (EOM) fetchmail: SMTP< 250 Ok: queued as 5C965187B5 flushed fetchmail: POP3> DELE 375 fetchmail: POP3< +OK message 375 marked deleted
Notice that: marked deleted. Not deleted, but marked - this is correct.
yet the mails are still not deleated from the yahoo server!!!
Right. There is nothing wrong so far... but. What happens is that if there is a network problem of any sort and the process is interrupted before this part of the sequence, that you have not pasted: |fetchmail[8262]: POP3> QUIT |fetchmail[8262]: POP3< +OK POP3 server closing connection |fetchmail[8262]: 6.2.1 querying pop.tiscali.es (protocol POP3) at Tue Jan | 20 03:04:29 2004: poll completed Ok. What I saying...? Ah, that if the command "QUIT" is not sent to the server, nothing gets actually deleted! And that is the correct procedure, it is defined so for POP3 protocol. So... what can you do? 0) Use IMAP instead - possibly not possible :-p 1) Reduce risks. Use this configuration instead: |poll pop.mail.yahoo.com with proto POP3 | user 'wmalinski' there with password 'mypasswd' is 'wojtek' here options fetchlimit 75 andfetchall This will make fetchmail close the connection after just 75 mails were downloaded (you can increase the number if your download is fast), and will leave the rest till next round. If you started the program in daemon mode, it will poll again at the predetermined time; for example: fetchmail -v --limit 200000 --daemon 300 That will poll every 300 seconds, and will leave on the server any email bigger than 200000 bytes - the last limit is something I need to do, you might not. 2) Don't use 'fetchall' Risky, but useful sometimes. In any case, put a limit per poll, as stated above. I found some times that fetchmail balks at a bad header, aborts the download, and will fetch every thing the next time. If that is the case, remove the "fetchall" from the config, and try again. After you empty the server, put again "fetchall": the problems is that some mails would remain on the server (even if they were downloaded), and fill up your remote account, which is limited. 3) If the problem is, as I said above, an email that is stuck because of a wrong header, log in to the mail server using the web account, and delete that single message that is stuck - after reading it - or download it using Mozilla, for example. Mozilla uses mbox format, so that mail got that way can be moved elsewhere on your system later.
If anyone has any idea what should I try next please help.
I think those are enough ideas for a night ;-) -- Cheers, Carlos Robinson
![](https://seccdn.libravatar.org/avatar/235069ec40fbac54c9d92c8a57c2a547.jpg?s=120&d=mm&r=g)
* Wojtek Malinski
I have my local copy of ~/.fetchmailrc. I do not know (have to check when I get home) whether the /etc/fetchmailrc is used.
How can I tell whether /etc/fetchmailrc is used? And if so is there a setting in Yast (or somwhere else) that I can turn it off?
Please do not top-post and trim your quotes. Thanks. You should be able to tell from the differences between the two fetchmailrc files. But you can open the 'run-level editor' from yast2 and tell fetchmail not to run. Notice, this pre-supposes that you mean to run fetchmail as user, not root. You need first to determine what the situation is before deciding what action to take. Report your findings when you can and I (or someone else) will help you. gud luk, -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
participants (5)
-
Carlos E. R.
-
Joe Morris (NTM)
-
Leah Cunningham
-
Patrick Shanahan
-
Wojtek Malinski