[kdepim-users] New message script for KMail

Ingo Klöcker kloecker at kde.org
Mon Mar 24 20:54:15 GMT 2008


On Saturday 23 February 2008, John Kennedy wrote:
> Hello all,
> I want to write a script that will scour my kmail folders for new
> messages and read out the Subject: header using festival (Festival
> will read out "Folder <Inbox> has new message <Subject>"). This way I
> can hear about new email when I am away from my computer while
> working from home.
> I have found where kmail stores the messages but have yet to find out
> how new messages are listed. I have looked at the Status: and
> X-Status: headers and see no difference between a read and unread
> message. I also noticed that after a while there is a bit appended to
> the file name of each message but that appears not to happen for some
> time after the message is read. For scripting purposes, what is the
> best way to see if an email has been read?

The status flags (read/unread, important, etc.) are not stored in the 
messages, but in a binary index file. I don't think there's an easy way 
to find new/unread messages just by looking at the files.

Would adding a filter passing all incoming messages to a script be an 
acceptable solution?


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdepim-users/attachments/20080324/dc01a0e3/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM users mailing list
kdepim-users at kde.org
https://mail.kde.org/mailman/listinfo/kdepim-users


More information about the kdepim-users mailing list