[imp] cosmetic issue with encrypted messages

Michael M Slusarz slusarz at bigworm.colorado.edu
Mon Dec 16 02:42:28 PST 2002


Quoting Jan Schneider <jan@horde.org>:

| If I get an encrypted message (getting the passphrase popup window) the
| message view shows "There was no text in this message part." under the
| usual "this is an enrypted message" text.

See if my recent changes fixed this - I can't reproduce it right now.

The MIME shuffling that has been going on (and is hopefully finished now) 
was rewriting of certain code to allow us to go in and add, delete, and 
alter embedded MIME Parts by MIME ID.  For example, if I have a 
MIME_Message object, it was not possible before to say fetch me 
part '3.2.1' - actually, it was but the old way of doing it was really 
hackish; essentially, it just kept recursively going through parts and 
hoped to hit it eventually.  The new code is "smart" in that it will take 
the shortest route possible.

Mainly this was done to get the stripping code to work - before these 
changes there wasn't really an easy way of altering a specific MIME Part 
and then having the output from MIME_Part::toString() be a valid mail 
message.  It looks a lot better now.

Two things still need to be fixed:
1. Message/rfc822 parts can not be stripped - I think this is a 
MIME_Contents:: issue.
2. Once you strip a single attachment, when the page is reloaded, all the 
stripping links point to the just deleted imap ID.  If you leave the 
message page and come back, everything works fine.

i'll work on these tomorrow.

michael

______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder


More information about the imp mailing list