LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-02-2008, 11:14 AM   #1
JosipBroz
Member
 
Registered: Nov 2008
Location: Ljubljana
Distribution: OpenSuSE
Posts: 56

Rep: Reputation: 18
Kmail maildir folder "new" permanently empty?!


Hi, everybuddy!
Can anybody tell me where does Kmail keep new pop3 mails? The problem surfaced when I was trying to configure Conky to scan Kmail's folders for new mails and notify me -- with no success whatsoever. After much cussing and gnashing of teeth I discovered old Conky wasn't to blame after all! It scanned the correct folders alright, fact is -- they actually were empty, although Kmail itself was showing new mails in the inbox. Isn't the ~/.kde/share/apps/kmail/mail/inbox/new the right location (in KDE3.x) where I should be looking for new pop3 mails? Or does Kmail just bundle all mail into the "cur" folder, relying on its internal indexes to distinguish new mails from old ones? Would anyone be kind enough as to check their ...inbox/new folder just to confirm it's always empty indeed?
Any input dearly appreciated.

Last edited by JosipBroz; 12-02-2008 at 11:18 AM.
 
Old 12-03-2008, 04:45 AM   #2
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
man maildir will give you a good description of how the whole system works.
 
Old 12-03-2008, 07:32 PM   #3
JosipBroz
Member
 
Registered: Nov 2008
Location: Ljubljana
Distribution: OpenSuSE
Posts: 56

Original Poster
Rep: Reputation: 18
Hey, thanx for the reply. Unfortunately, after reading man maildir (and lots more) I am none the wiser. Maildir not being exactly a standard, every developer apparently implements it a bit differently. Oh, the delights of open standards! Bakunin and Kropotkin would have loved them!
 
Old 12-03-2008, 07:41 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
The short answer is mail should either be in new or under cur but not having a capital S after the final comma (if there's a comma at all), but ignoring ",S=xxxx"

have a look in your cur directory an see what the file names before and after reading.

The key part from that man page is
Code:
       Look for new messages in the new subdirectory. Rename new/filename, as cur/filename:2,info. Here,
       info represents the state of the message, and it consists of zero or more boolean flags chosen from
       the following: "D" - this is a 'draft' message, "R" - this message has been replied to, "S" - this
       message has been viewed (seen), "T" - this message has been marked to be deleted (trashed), but is
       not yet removed (messages are removed from maildirs simply by deleting their file), "F" - this
       message has been marked by the user, for some purpose. These flags must be stored in alphabetical
       order. New messages contain only the :2, suffix, with no flags, indicating that the messages were not
       seen, replied, marked, or deleted.
I've noticed some clients manage to add other crud with the basic flags - lowercase "e" for example.
 
Old 12-08-2008, 01:01 PM   #5
JosipBroz
Member
 
Registered: Nov 2008
Location: Ljubljana
Distribution: OpenSuSE
Posts: 56

Original Poster
Rep: Reputation: 18
I've tried to follow your indications. I could finally see some method in Kmail's file naming. In several days of observing its folders, though, I've yet to see it use the "new" folder. Either it never gets used or the files get moved to the cur folder immediately. Apparently, Conky is not too good at following that. Maybe it doesn't even read file suffixes, it just counts the number of files in the folder(s).
Oh well, I guess I'll manage without Conky notifying me of incoming mail...
Cheerz!
 
Old 03-08-2011, 03:58 AM   #6
cgr
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Kmail maildir folders

If your Kmail folders in their default location appear to be empty, it may be because they've been put somewhere else.
(This won't apply to you on a new install of course, this is just for people Googling).
Check ~/.kde/share/config/kmailrc for a line in the [General] section that says folders=<address on your system>
 
  


Reply

Tags
empty, kmail, location, maildir, pop3


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 might I restore kmail folders/mail/settings from a "badly" saved "home"? deh6 Linux - Software 5 03-08-2008 09:25 PM
Kmail "jumps to folder", list of mail not available! albrtijo Linux - Laptop and Netbook 0 03-04-2007 12:41 PM
kmail "could not remove folder" errors GoBillsBN Linux - Software 1 08-03-2005 07:58 PM
Gentoo VNC, empty dialog box !! "Question" window is empty ! TheHushedCaskeT Linux - Software 0 02-01-2005 10:14 PM
my "home" folder is empty linuxnoub Linux - Newbie 3 10-28-2003 08:40 AM


All times are GMT -5. The time now is 10:29 AM.

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