[Akonadi] [Bug 325699] Akonadi stores absolute path to maildir resource maildir in database, making it difficult to create a test setup

Martin Steigerwald bugzilla_noreply at kde.org
Sun Jan 8 11:50:07 GMT 2017


https://bugs.kde.org/show_bug.cgi?id=325699

Martin Steigerwald <Martin at Lichtvoll.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
           Platform|unspecified                 |Debian unstable
            Version|4.10                        |5.2.3
         Resolution|UNMAINTAINED                |---

--- Comment #9 from Martin Steigerwald <Martin at Lichtvoll.de> ---
Thank you Denis for taking care to close old bugs. However this one still
happens. As this is still quite concise I do not see much sense in opening
another one about the same issue.

I tested it by starting KMail 5.2.3 with empty home directory. This is what I
get:

martin2 at merkaba ~/.local/share/akonadi/socket-merkaba
 % mysql --socket mysql.socket 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 60
Server version: 10.0.28-MariaDB-3 Debian buildd-unstable

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use akonadi;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
MariaDB [akonadi]> select id, remoteId from collectiontable;
+----+-------------------------------------------------------+
| id | remoteId                                              |
+----+-------------------------------------------------------+
|  1 | NULL                                                  |
|  2 | akonadi_birthdays_resource                            |
|  3 | /home/martin2/.local/share/contacts/                  |
|  5 | /home/martin2/.local/share/akonadi_maildir_resource_0 |
|  6 | outbox                                                |
|  7 | sent-mail                                             |
|  8 | /home/martin2/.local/share/apps/korganizer/std.ics    |
| 10 | /home/martin2/.local/share/notes/                     |
| 11 | inbox                                                 |
| 12 | drafts                                                |
| 13 | trash                                                 |
| 14 | templates                                             |
| 15 | Test                                                  |
| 16 | Test2                                                 |
+----+-------------------------------------------------------+
14 rows in set (0.00 sec)

MariaDB [akonadi]>

 % ls -l akonadi_maildir_resource_0
insgesamt 0
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 drafts
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 inbox
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 outbox
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 sent-mail
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 templates
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 Test
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 Test2
drwxr-xr-x 1 martin2 martin2 18 Jan  8 12:33 trash

while ~/.local/share/local-mail appears to be empty, except cur, new and tmp
directories.

So while there is a change as it uses the name of the maildir resource and not
"local-mail" anymore, it still has that reference to an absolute path instead
of using something relative to $HOME or the suitable XDG directory.

At least it seems to store an absolute path just once for each resource and not
once for every folder or item as I verified with PimItemTable.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list