LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-22-2005, 07:51 AM   #1
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Rep: Reputation: 30
duplicate messages in kmail...


Hi,

I'm using Kmail 1.9 with Kontact from KDE 3.5.

I have been having issues receiving duplicate email in Kmail. I am receiving my mail through a non-caching imap server and I have (or at least use to have) kmail set to retrieve messages every minute. The problem was that everytime it checks it pulls down every message in my mailbox again, leaving me with a second copy of every message. The next time it checks for mail it does it all over again giving me a third copy of every message. I checked my mail this morning and had 15346 "new" messages.

I've been trying to find a log for Kmail but all I see is .xsession-errors, which doesn't seem to give any information regarding mail.

Any ideas on where to start?

thanks,
-Me
 
Old 12-22-2005, 03:24 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
Okay, well I'm no email guru but I have a couple of ideas. It seems to me that Kmail isn't telling the mail server to delete the files when it downloads them. There is a setting for this. I'm using Kmail 1.7.1 on KDE 3.3.0 but this is pretty universal.

In Kmail select Settings | Configure Kmail. This will create a "Configure Kmail" window. Select the network settings. Click on the "Receiving" tab. You should see your mail account(s). If you have more than one then select the one that is giving you trouble. Click on the "Modify" button. A "Modify Account" window will appear. On the "General" tab you will see a list of buttons to select/deselect options. There is a button labeled "Leave fetched messages on the server". That box should be empty.

The other idea that I had was that you said you are using an imap email server. It is my understanding that imap means to leave the email on the server and pop3 means to delete the email from the server when it is passed to the pop3 client.

I thought that since nobody had responded it wouldn't hurt for me to share my thoughts.
 
Old 12-23-2005, 07:57 AM   #3
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Original Poster
Rep: Reputation: 30
thats for the reply. I will try that when I get back to work next week. For the time being I told kmail to to check mail automatically.


thanks again,
-Me
 
Old 12-23-2005, 05:29 PM   #4
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,162

Rep: Reputation: 504Reputation: 504Reputation: 504Reputation: 504Reputation: 504Reputation: 504
If you are running KMail in IMAP mode, KMail does not retrieve your mail. It just displays what is available on your IMAP server. It is impossible for KMail to retrieve and delete the e-mail just like in POP3. KMail gives you only a view on the server contents.

That points in the direction that not KMail is the problem, but your IMAP mail server, or rather the thingy that drops the mail in your mail server.

Given that you get duplicate mails, this smells like you have a fetchmail process running somewhere which POPs the mail from you provider, and then drops the fetched mail in your IMAP server's mail box. Fetchmail can "keep" or "delete" the emails when it pops. In your case I suspect it "keeps", but there might be something wrong with the UIDL file, that is the file where fetchmail tracks all signatures of all emails it fetched. If there is something wrong, it keeps fetching the same message over and over.

If you have some other mail server running like exim or sendmail, which gets the mail directly from the sender I am lost, don't know anything about it.

Again, this is only true if you run KMail in IMAP mode. If you use POP3 for mail retrieval in KMail itself it invalidates what I said.

jlinkels
 
Old 12-24-2005, 11:45 AM   #5
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Original Poster
Rep: Reputation: 30
I am only running client software on my linux machine (kmail). The server that I am retrieving mail form is an exchange 2003 server cluster.

With kmail's interval mail checking turned off Duplicate mail messages do not appear on my mac at home (running MS Entourage), nor in my XP box at work.

When interval mail checking is turned on in kmail the issue starts to arise, which leads me to beilieve that is is something with kmail specifically. Maybe kmail can't see that it previousely downloaded a copy of the message and does so again and again? I don't know.

I turned off kmail Thursday afternoon and have yet to receive another duplicate message.

Does kmail have a log location where it places download attempts and completions?

Thanks for the help.
 
Old 01-11-2006, 08:25 AM   #6
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Original Poster
Rep: Reputation: 30
[UPDATE]

This appears to be directly related to spam filtering in kmail.

I recently reinstalled my OS and kmail ran fine for weeks. Until...I turned spam filtering on in kmail. I turned bogo on first and dupliate messages started pouring in within 5 minutes. I removed bogo and did spamassassin (perl) instead. However, the same still occurs.

Is there a way to disable spam filtering without uninstalling entire packages from my system? (preferably a checkbox within kmail?) If not I guess I uninstall spamassassin.

thanks
 
Old 01-17-2006, 04:03 PM   #7
jsheffie
Member
 
Registered: Dec 2004
Location: Florida, USA
Distribution: Suse 10.0, OSX.4, Solaris 10
Posts: 163

Original Poster
Rep: Reputation: 30
I have removed all spam filtering software and it is continuing to do re-download messages.

I received an error today saying that kmail could not upload the message. No specific message was given however.

Any ideas?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How does KMail remove email messages? OAZ Linux - Newbie 4 09-20-2006 06:20 PM
Deleting duplicate messages essdeeay Linux - General 1 11-20-2005 07:58 AM
Transferring Kmail messages from Mandriva Kia ora Ubuntu 0 08-02-2005 05:39 AM
Kmail Duplicate Subject Error #88383 SteveSch Debian 4 02-24-2005 09:16 PM
Importing Mozilla messages into KMail Whosrodney Linux - Software 2 09-26-2003 06:08 PM


All times are GMT -5. The time now is 10:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration