[Bug 281797] kmail2/akonadi handels maildir incorrect

2012-10-05 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=281797

Dr. Christoph Pospiech  changed:

   What|Removed |Added

 CC||pospi...@de.ibm.com

--- Comment #9 from Dr. Christoph Pospiech  ---
BTW, as a work around, I wrote a perl script that renames the mail file and
moves it from "new" to "cur", depending on the data stored in akonadi. To be on
the safe side, you have to stop kmail and akonadi, but restart mysql to let the
script run. Anyone interested please contact me. - Or should I place the script
as an attachment to this bug report ?

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 281797] kmail2/akonadi handels maildir incorrect

2012-10-05 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=281797

--- Comment #8 from Dr. Christoph Pospiech  ---
Comment on attachment 74363
  --> https://bugs.kde.org/attachment.cgi?id=74363
log file describing mail dir location and akonadi contents.

This log file shows that kmail2 (kmail 4.8.5 on Kubuntu 12.04.1) places a mail
in the "new" sub directory after a move from sent-mail to another local mail
folder. The mail was in the "cur" sub directory before. The akonadi data base
keeps the correct flags ( \SEEN). So - akonadi appears to be OK, but kmail2 is
broken.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 281797] kmail2/akonadi handels maildir incorrect

2012-10-05 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=281797

--- Comment #7 from Dr. Christoph Pospiech  ---
Created attachment 74363
  --> https://bugs.kde.org/attachment.cgi?id=74363&action=edit
log file describing mail dir location and akonadi contents.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 292622] moved mails reappearing in sent mail folder

2012-03-04 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=292622

Dr. Christoph Pospiech  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #9 from Dr. Christoph Pospiech  ---
Hi,

apparently, I solved the problem.

For some reason (yet unknown) the sub directories in local-mail got lost. I
could be that I myself deleted them early after migration. Then kmail2
apparently stores everything in cache as it cannnot store it in local-mail.

Moving a message from sent-mail elsewhere was not possible, als the folder
actually dod not exist. Perhaps that is why it reappeared in sent-mail.

I wrote a perl script with DBI::mysql API that extracts the local-mail
directory structure from the aconadi data base and recreates it. It also reads
the emails in akonadi cache (aka data field in parttable from database akonadi)
and moves the emails to their proper place in local-mail.

After running the script, I re-created the akonadi data base. kmail2 now runs
smoothly and sent-mails don't re-appear again. I just reran the steps outlined
in the error description.

Christoph Pospiech

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 290589] Opening a folder in kmail2 produces an error message

2012-03-04 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=290589

Dr. Christoph Pospiech  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Dr. Christoph Pospiech  ---
Hi,

apparently, I solved the problem.

For some reason (yet unknown) the sub directories in local-mail got lost. I
could be that I myself deleted them early after migration. Then kmail2
apparently stores everything in cache as it cannnot store it in local-mail.

As the the subdirectory is not there, kmail2 throws the error message as
reported. Since the emails are still in the cache of the data base (aka data
field in parttable from database akonadi), they can still be shown in kmail2.

I wrote a perl script with DBI::mysql API that extracts the local-mail
directory structure from the aconadi data base and recreates it. It also reads
the emails in akonadi cache (aka data field in parttable from database akonadi)
and moves the emails to their proper place in local-mail.

After running the script, I re-created the akonadi data base. kmail2 now runs
smoothly and the error message no longer shows up.

Christoph Pospiech

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 292622] moved mails reappearing in sent mail folder

2012-02-12 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=292622





--- Comment #8 from Dr. Christoph Pospiech   2012-02-12 
17:32:16 ---
Hi, it appears that my Local Folder structure is almost empty (just inbox,
trash, outbox, sent-mail and such, no stored mails). So my akonadi set up looks
corrupted. See https://bugs.kde.org/show_bug.cgi?id=290589 for details.

Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 290589] Opening a folder in kmail2 produces an error message

2012-02-12 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=290589





--- Comment #6 from Dr. Christoph Pospiech   2012-02-12 
17:28:22 ---
Hi,

I just posted the following to
http://forum.kde.org/viewtopic.php?f=215&t=99000&p=213395#p213395. As this
deals with fixing my corrupted akonadi data base, I am quoting this here for
convenience. Can anyone help me with the questions posted below ?
--- quote ---
Apparently, my only mail copy exists in the (akonadi ? nepomuk ?) data base,
which knows the folder the mail is stored in and uses a number that points to a
file name in ~/.local/share/akonadi/file_db_data/_r0. So I need to
recreate the local folder structure (which currently is an almost empty mail
dir) from there. My plan would be to recreate the folder structure in a place
where neither kmail2 nor akonadi knows about, then stop akonadi-server and
switch the "Local Folders" to the new place. Sounds like a plan ? Well, I guess
I still need some advice on how to precisely do this. For instance, can I
create a new account in kmail->Settings->Configure kmail->Accounts->Receiving
and point it to an existing mail dir structure (without kmail2 or akonadi
getting confused about it) ?

Also, I can't recreate 19000 mails by hand, just using akonadiconsole->Browser
for inspecting and a bash, mkdir, cp and chmod for recreating. I have to write
a (C/C++) program or (perl ?) script for doing this. To this end I installed
libakonadi-dev and started to inspect the header files in
/usr/include/akonadi/private/ for an appropriate API that I could use. It seems
as these header files define the d-bus interface (and such). I rather need to
do SQL queries into the data base to retrieve the folder structure. Is
libnepomuk-perl the right thing to use ? Unfortunately,
/usr/lib/perl5/Nepomuk.pm is VERY short - only init() and normalize_classname()
- not the SQL querys I was looking for. Can anyone point me to some
documentation or get me started here ?

Thanks in advance !!
--- unquote ---
Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 292622] moved mails reappearing in sent mail folder

2012-02-08 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=292622





--- Comment #6 from Dr. Christoph Pospiech   2012-02-09 
07:28:24 ---
I just noted that kmail2 is currently not showing a mail in the sent-mail
folder, but there is a mail in
/home/cp/.local/share/.local-mail.directory/sent-mail/cur/ . Having seen that,
I sent another mail (subject test-mail, content test). kmail2 first showed 1
mail in sent-mail folder,
/home/cp/.local/share/.local-mail.directory/sent-mail/cur/ contained two files.
Then I opened the sent-mail folder and it still displayed only the new test
mail. Only after closing and restarting kmail, both mails were shown in kmail2.

Perhaps that sheds some light on how the mails reappear.

Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 292622] moved mails reappearing in sent mail folder

2012-02-07 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=292622





--- Comment #5 from Dr. Christoph Pospiech   2012-02-07 
17:06:56 ---
Hi I just posted a question about the correct akonadi configuration in
http://forum.kde.org/viewtopic.php?f=215&t=99000 . Could it be that this bug is
related with this question ?

Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 290589] Opening a folder in kmail2 produces an error message

2012-02-07 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=290589





--- Comment #4 from Dr. Christoph Pospiech   2012-02-07 
17:02:26 ---
Hi I just posted a question about the correct akonadi configuration in
http://forum.kde.org/viewtopic.php?f=215&t=99000 . Could it be that this bug is
related with this question ?

Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 292622] moved mails reappearing in sent mail folder

2012-01-30 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=292622


Dr. Christoph Pospiech  changed:

   What|Removed |Added

 CC||pospi...@de.ibm.com




--- Comment #2 from Dr. Christoph Pospiech   2012-01-30 
08:45:18 ---
Thanks for asking.

I don't use imap. Hence trash is local.

I move mails by dragging them with them mouse from the folder contents list
(kmail2 sub window in the top right) for sent-mail and dropping them onto one
folder in the kmail2 sub window in the lower left. When I do this, a window
pops up asking me whether to copy or to move and I click on "move". At this
moment I see the number of mails in the sent-mail basket decremented by one and
the number of mails in the target folder incremented by one - as expected. Only
after sending another mail, when doing this again, the moved mails reappear
when opening the sent-mail folder.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 292622] New: moved mails reappearing in sent mail folder

2012-01-27 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=292622

   Summary: moved mails reappearing in sent mail folder
   Product: kmail2
   Version: 1.99.0
  Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: folders
AssignedTo: kdepim-bugs@kde.org
ReportedBy: pospi...@de.ibm.com


Version:   1.99.0 (using KDE 4.7.4) 
OS:Linux

After sending a mail, I usually move it to a different folder. In particular, I
delete it from the sent-mail folder. After sending the next mail and opening
the sent-mail folder, the deleted mail reappears in the sent-mail folder. It is
a duplicate of the mail that was moved. Deleting the duplicate copy from the
sent mail folder appears to remove it permanently.

Reproducible: Sometimes

Steps to Reproduce:
1. send a mail
2. move mail from sent-mail to another folder
3. send another mail
4. close sent-mail folder (i.e. open another folder)
5. close kmail2, open it again
6. open sent-mail folder
Not quite sure whether steps 4.+5. are actually necessary,
but it helped me to reproduce the error more often.
Step 6 is necessary, the mail count in sent-mail is increasing 
when opening the sent-mail folder, i.e. the mails only reappear
when you look at them (reminds me faintly of Schroedingers cat...).

Actual Results:  
Mails that had been moved to another folder (and deleted from sent-mail)
reappear in the folder and have to be deleted a second time.

Expected Results:  
Mails that are moved away should stay out of the folder.

OS: Linux (i686) release 3.0.0-15-generic
Compiler: gcc

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 290589] Opening a folder in kmail2 produces an error message

2012-01-15 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=290589


Dr. Christoph Pospiech  changed:

   What|Removed |Added

 CC||pospi...@de.ibm.com




--- Comment #3 from Dr. Christoph Pospiech   2012-01-15 
09:21:56 ---
One more thing - I just happened to do an aconadictl stop/start on the command
line, and now aconadi is sprouting additional messages on the screen. I then
reproduced the error as described above, and this is what aconadi is reporting
about it.

AkonadiAgentServer(4724) MaildirResource::maildirForCollection: Got incomplete
ancestor chain: Collection ID: 43remote ID: "" 
   name: "BGP" 
   url: KUrl("akonadi:?collection=43") 
   parent: 39 "" 
   resource: "akonadi_maildir_resource_22" 
   rights: QFlags(0x1|0x2|0x4|0x8|0x10|0x20) 
   contents mime type: ("message/rfc822", "inode/directory") 
CachePolicy:  
   inherit: true 
   interval: -1 
   timeout: 1 
   sync on demand: true 
   local parts: ("ENVELOPE") 
CollectionStatistics: 
   count: -1 
   unread count: -1 
   size: -1 

Hope that helps !

Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 290589] Opening a folder in kmail2 produces an error message

2012-01-13 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=290589





--- Comment #2 from Dr. Christoph Pospiech   2012-01-13 
11:39:41 ---
Created an attachment (id=67779)
 --> (http://bugs.kde.org/attachment.cgi?id=67779)
Screen shot of the kmail message

As requested here is the screen shot of the message produced by kmail2.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 290589] New: Opening a folder in kmail2 produces an error message

2012-01-04 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=290589

   Summary: Opening a folder in kmail2 produces an error message
   Product: kmail2
   Version: 4.7
  Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
  Severity: normal
  Priority: NOR
 Component: folders
AssignedTo: kdepim-bugs@kde.org
ReportedBy: pospi...@de.ibm.com


Version:   4.7 (using KDE 4.7.3) 
OS:Linux

Opening a mail folder produces the error message
Local Folders: Maildir " for collection" is invalid
The folder, however, opens normally. 

Reproducible: Always

Steps to Reproduce:
Open kmail, click on a mail folder. There are a few folders which do not
produce the error message.

Actual Results:  
Opening a mail folder produces the error message
Local Folders: Maildir " for collection" is invalid
The folder, however, opens normally. 

Expected Results:  
No error message.

OS: Linux (i686) release 3.0.0-14-generic
Compiler: gcc

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 287394] KMail2 with fetchmail/postfix-fed mbox resource: can't get rid of "changed by another program" alerts

2011-12-31 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=287394


Dr. Christoph Pospiech  changed:

   What|Removed |Added

 CC||pospi...@de.ibm.com




--- Comment #1 from Dr. Christoph Pospiech   2011-12-31 
20:54:03 ---
Hi,

I had the same problem and just found a very simple solution (you may call it a
work around).
Prerequisites - I am using postfix and procmail for mail delivery. Actually, I
have a fetchmail type client that funnels incoming mail through procmail.
HOWTO implement - 
step1 * If not already done, add the line 
mailbox_command = /usr/bin/procmail
to /etc/postfix/main.cf and restart postfix.
step2 * If ~/.procmailrc doesn't exist, create this file with the following
contents.
LOGFILE=
VERBOSE=yes

:0 :
/.local/share/Linux-mail/
!!! And don't forget the '/' after 'Linux-mail' !!!
step3 * send a test mail to your account, procmail will create new, cur and tmp
sub directories in /.local/share/Linux-mail/ as needed.
step4 * Open kmail2, Settings->Konfigure kmail->Accounts->receiving and add
a new akonadi resource of type maildir, pointing to 
/.local/share/Linux-mail
step5 * wait some time for akonadi and kmail2 to recognize this new resource.
You will find your new mail right there - and NO more "changed by another
program" alerts.

Have fun ! Christoph Pospiech

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Bug 33754] Searching email by date

2011-12-29 Thread Dr . Christoph Pospiech
https://bugs.kde.org/show_bug.cgi?id=33754


Dr. Christoph Pospiech  changed:

   What|Removed |Added

 CC||pospi...@de.ibm.com




--- Comment #22 from Dr. Christoph Pospiech   2011-12-29 
18:51:02 ---
I just noted that on kmail2 the search option "Age in days is less or equal to
90 days" didn't have any effect on the search result. Even if given as the only
search parameter, Mails were found dating from 2009 (hence > 90 days).

Now that everything is held in a data base, which should ease and speed up
queries, I strongly vote for a working query for a date range.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs