[Kde-pim] Checking for valid folder names in Akonadi

Tobias Koenig tokoe at kde.org
Fri May 28 05:16:08 BST 2010


On Thu, May 27, 2010 at 10:44:23PM +0200, Thomas McGuire wrote:
> Hi, 
Hej,

> So in slotCreateCollection() of the standard action manager we should check 
> this and show a nice error dialog if the folder name is invalid. Same when 
> changing the folder name with the folder properties dialog. The question is: 
> How? A valid file name is resource-specific, especially in the IMAP case, the 
> folder seperator can apparently be server-specific, KMail 1 had methods like 
> delimiterForFolder() for this.
Exactly, it's the task of the resource to handle this inside ResourceBase::collectionCreated()
and ResourceBase::collectionChanged(). We just have to handle the return
values of all the Jobs correctly and finally find a way to propagate back errors
inside the resource to the server and user. That's the right way to fix it.

Adding such a check on client side will former or later cause other issues, we
had situations like that several times already... :(

Ciao,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20100528/28a7b9ef/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list