#23: GSoC with KDE Now- 2

Hey ! I’m making KDE Now, an application for the Plasma Desktop. It would help the user see important stuff from his email, on a plasmoid. It’s similar to what Google Now does on Android. To know more, click here


Just an update on what I’ve planned for the coming weeks. Also, I don’t think I’ll be able to do anything else for the next two weeks, since my final semester exams start from 18th of this month, and last till 28th. So, this blog post seems to be the last one for this month.

About two weeks remain, until formal coding period begins. And my fingers are itching for it.

I got in touch with VDG, and Andy will be giving me mockups. I’m really really thankful to him for it. I don’t know how much my mockups would have sucked, had I made them. Hahaha

My proposal had some changes in between. Originally, I had proposed to use Akonadi for fetching the emails. After submitting the proposal, my mentor got in touch with me and said it would be better to use KImap library. What this means for me, is that I’m gonna have to implement an Imap client (not so trivial), but where’s the fun, if it were easy ;). KImap makes this task easier. Unfortunately, I won’t have any time, to write some test applications for getting familiar with it’s API. I think, I’ll just have to dive in.

Vishesh had written an early prototype for KDE Now. So, to start with, I’ll be working on his code. He had used KImap to fetch emails. However, it did not update the email cache. That’s what I’ll be doing first. I’ll store UID of the last fetched email in a file. And when I get the notification that a new email has arrived, I’ll fetch new emails based on the UID’s larger than the one I stored in the file. This should work, since in IMAP, UID’s are incremental in nature.

I also went through D-Bus concepts. I’ll be using it to tell the plasmoid, that “Hey, I have new mails. Check !”.

<< Off Topic >>

I download free cover music from Youtube, using youtube-dl. I was bored while I was studying for my semesters yesterday. So I wrote this script yesterday to download songs from youtube. It’s really a no brainer,  not a big deal, but have a look and let me know if there are some bugs. It can be found here.

See you later

Thanks for reading !


3 thoughts on “#23: GSoC with KDE Now- 2

  1. Nice update. I was wondering about why KImap is better for this than Akonadi though. It seems like this would be a good fit for Akonadi, from what I know of it, so I was hoping you could explain what the main benefits (and drawbacks) of using KImap are.


    1. Thank you. As for Akonadi, those were my plans initially. But having the whole Akonadi PIM, for getting emails just seems like an overkill. Using the library will provide me with just the things I need, with added flexibility. This also removes a huge dependency for a much smaller one. Obvious drawback of KImap is the client implementation which “may” be error prone when you compare it to Akonadi which has been developed for years.


  2. That sounds fair for getting just emails, but wouldn’t the additional possibilities of Akonadi also be useful to something like KDE Now? I would actually think that calendar information would be more relevant to you than emails, and contact information could be used for cards about events you attend together with others. So it feels like KDE Now could be expanded more easily in the future with Akonadi already providing additional types of data, from multiple accounts even.

    But in all fairness, I don’t know how big or difficult Akonadi is to use or how easily all these things can be done with KImap as well. I just worried that the smaller dependency and additional flexibility that you get now might cause problems in the future. Thanks for your explanation and I’ll be looking forward to seeing what you make.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s