Alan Holden said the following on 01/23/2011 08:47 PM:
> The attachments column of the result set is unchanged (a message with
> two attachments will simply contain "unknownfile,unknownfile" here),
> so that's a bug.
That may or may not be a bug depending on the message.  After looking at
the source, it looks at the at the "Content-Disposition" header for that
multipart that encapsulates that attachment in the mail.  In that
header, it looks for the name/value pair for that header for the value
of "filename=" to decipher the file name of the attachment.

I just tested CFPOP with attachments using OpenBD 1.4 and I see a file
name for attachments -- not "unknown".  Looking at the message directly
in plain text I see things like this:

--000e0cd20d9ab29964049a8f1559
Content-Type: image/png; name="ocfs_square.png"
Content-Disposition: attachment; filename="ocfs_square.png"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gjat7n9h0


What do your messages contain?  Do they have Content-Disposition header
with a filename hint?  Please share a snippet.  I see a "name" in the
Content-Type as well.  Maybe the sender (AOL) is not giving a hint for
the file name.  It is possible that they are sending files with the name
of "unknown" or not indicated as attachments but as *inline* multi-parts
(which OpenBD and it's use of javax.mail subsystem) translates as
"attachments".

The RFC 2183 says that the file name should be transmitted in the mail
part in the Content-Disposition (IIRC - had to look up the RFC number).
Possibly we should be looking at Content-Disposition (filename) then
fallback  to the less recognized Content-Type (name) and finally "unknown".

Also, RFC 2387 states that content-disposition should be used to
transmit the *suggested* file name -- not in the content-type.
http://www.ietf.org/rfc/rfc2387.txt

I'm curious what the mail messages are really sending to you.  Could you
share a sample?

Best,
.pjf

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to