Click to See Complete Forum and Search --> : kmail data storage


spx2
11-19-2007, 06:01 AM
hi,

I would like to make some filters using perl
for all my email,or for some part of my email.
I'd like to know if possible what API does Kmail provide
for accessing the emails , preferably not in a raw format.
Does it have a "file system" of its own ?
thank you

JohnT
11-19-2007, 07:52 AM
KMail stores its mail using the mbox format, one of the most widely used mailbox formats on unix systems. Mbox mailboxes store messages in one file, identifying where messages start and end with a From line (do not mix this up with the From: header that contains the message's sender). For many unix mail programs, all you must do is move your mailboxes to ~/Mail (or make Mail a symbolic link to the folder containing your mailboxes), make sure they are writeable by your user,

For Perl mbox manipulation
http://quark.humbug.org.au/publications/perl/perlmailbox.html
http://perl.overmeer.net/mailbox/html/Mail::Box-Cookbook/index.html
http://perl.overmeer.net/mailbox/html/index.html

spx2
11-19-2007, 08:14 AM
thank you :)