[imp] viewing attachments inline

Andrew Morgan morgan at orst.edu
Thu Mar 13 14:03:26 PST 2003


So I've been testing the new IMP 3.2.1.  I noticed that you can now view
image attachments inline, which is a great feature.  However, it doesn't
work on my system...

To view the image, IMP builds an image link like "/download/?xxx".  So for
a message with 2 image attachments, my browser fetchs the html for the
page, plus those two image links.  But, this makes IMP connect multiple
times to the imap server because it doesn't re-use the imap stream it has
opened in the message.php file.

Unfortunately, my imap server (UW-IMAP 2002b) doesn't like that:

Mar 13 13:32:17 ucs imapd[404218]: Authenticated user=morgan host=webmail2.onid.orst.edu [128.193.4.124]
Mar 13 13:32:18 ucs imapd[404218]: Logout user=morgan host=webmail2.onid.orst.edu [128.193.4.124]
Mar 13 13:32:19 ucs imapd[405647]: Authenticated user=morgan host=webmail2.onid.orst.edu [128.193.4.124]
Mar 13 13:32:20 ucs imapd[405982]: Authenticated user=morgan host=webmail2.onid.orst.edu [128.193.4.124]
Mar 13 13:32:20 ucs imapd[405647]: Killed (lost mailbox lock) user=morgan host=webmail2.onid.orst.edu [128.193.4.124]
Mar 13 13:32:22 ucs imapd[405982]: Logout user=morgan host=webmail2.onid.orst.edu [128.193.4.124]

I'm not sure myself if there is an easy solution for this in IMP, aside
from caching the imap stream and re-using it.  The only other idea that
occurs to me is using a mailbox format that support concurrent access from
multiple processes, such that connecting a second time does not kill the
first process.

Any other thoughts?

	Andy



More information about the imp mailing list