[Bug 169092] text entered in external editor not passed to composer window

Brian Foster brian.foster at innova-card.com
Fri Jan 9 11:15:20 GMT 2009


http://bugs.kde.org/show_bug.cgi?id=169092


Brian Foster brian foster innova-card com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |brian.foster at innova-card.com




--- Comment #3 from Brian Foster <brian foster innova-card com>  2009-01-09 12:15:15 ---
I can also confirm this happens with Kmail 1.10.3 (Kubuntu 8.10).
In addition, there is a significant clew as to what is happening.

First, instead of CREATING a new e-mail, REPLYING to an existing
e-mail helps to show the problem.  The thing to notice when the
vim(1) starts up is  (i) The file is empty (it doesn't contain
the text of the message being replied to or your signature);
and  (ii) `vim' reports the file is "[New]".

Playing with strace(1) seems to confirm Kmail is creating the file
with what looks like plausible contents.  It then launches the editor,
and then seems to immediately *DELETE* the file (unlink(2)), whilst
the editor is still starting up.  That is, this mysterious unlink
is racing the editor, and usually wining; i.e., the file is unlinked
before the editor opens it.

By using a very simple bash(1) shell script similar to:

   #!/bin/bash
   date >>$1

 as my "external editor" I have *sometimes* been able to win the
race; that is, the date appears in the composer window.  But not
always, sometimes Kmail wins, and the date doesn't appear.


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list