OpenNTF.org - MailScan

My Links (Not logged in)
User Name Password
Hosted by Prominic.NET

   Project: MailScan (Managed by Hans-Georg Franke)
Actions:


Response
Subjectadditional information on inline MIME attachments
Created 06/06/2005 08:35 AM by Christian Brandlehner.
Modified<none> by <none>.
Body

I opened a PMR with IBM and got the following information:


- @attachment(0) does not display attachment with or without attachment
Tried to create a workaround using other means of detecting attachment with LotusScript and @-formulas. All of my attempts failed however there is the possibility to use C-API to achive a full detection:

We do offer mime handling functions for this very reason, not in LotusScript or @Formula language but in the C API toolkit the preferred method of processing this type of content eg :

We offer a flag :

OPEN_RAW_MIME_PART - If set, leave TYPE_MIME_PART items in native format. Otherwise, convert to TYPE_COMPOSITE. This flag can be used with functions that take DWORD OPEN_xxx(note) flags, such as NSFNoteOpenExt. This allows AntiVirus vendors the ability to extract the MIME stream before any client processing takes place.

In addition its possible to parse items manually :

#include <mimeods.h>
Symbolic Values :
MIME_PART_HAS_BOUNDARY - Mime part has boundary.
MIME_PART_HAS_HEADERS - Mime part has headers.
MIME_PART_BODY_IN_DBOBJECT - Mime part has body in database object.
MIME_PART_SHARED_DBOBJECT - Mime part has shared database object. Used only with MIME_PART_BODY_IN_DBOBJECT.
MIME_PART_SKIP_FOR_CONVERSION - Skip for conversion.

Definition :
typedef struct {
WORD wVersion; /* MIME_PART Version */
DWORD dwFlags;
BYTE cPartType; /* Type of MIME_PART body */
BYTE cSpare;
WORD wByteCount; /* Bytes of variable length part data NOT including data in DB object*/
WORD wBoundaryLen; /* Length of the boundary string */
WORD wHeadersLen; /* Length of the headers */
WORD wSpare;
DWORD dwSpare; /* Followed by the actual part data */
} MIME_PART;



Feedback

Hide details for inline attachments beeing ignored ( on 06/05/2005 03:13:50 AM )inline attachments beeing ignored ( on 06/05/2005 03:13:50 AM )
. . additional information on inli... (Christian Brand... on 06/06/2005 08:35:44 AM )
Check out other projects
Switch to project: