Can't read Messages with Content-Type multipart/mixed
For many years I have used „QuickMail Pro“, as my favorite Mail-Client. Now I had switch to Apple Mail. I hoped, to be more compatible to other „modern“ Mail-Clients. So could it be, that Apple Mail can not read Messages from Type <multipart/mixed>? I only see the Header-Information and instead of the Message-Text there is only an Error-Message:
<Diese E-Mail kann aufgrund ihrer Formatierung nicht angezeigt werden. Bitten Sie den Absender, Ihnen die E-Mail erneut in einem anderen Format bzw. mit einem anderen E-Mail-Programm zu senden.
multipart/mixed>
Did anyone know a simple Way, to read this Messages.
My old QuickMail has no Problem with this Type.
Hi Ruchi,
You need to use Java Mapping or UDF to create Multipart/Mime
Check this excellent blog by stefan.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
Also check this thread for your solution
http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095
Similar Messages
-
How to Read a Message with Content Type multipart/alternative
Hi ,
I need to write a POP3 Client to read email message ..but some times the messages comes with content type multipart/alternative
how to parse it and read only one of the content :
for example :
This is a multi-part message in MIME format.
------=_NextPart_000_12C25_01C6B64F.09226B00
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Assignment to workgroup Name 1 : L2 SD Service Delivery Apps Spt
Open CI Search Code : HPSD
Description : tesat
General Information :
Is the workgroup owner Aware of the addition to Workgroup : Yes
Workgroup to be added :
L2 SD Service Delivery Apps Spt
------=_NextPart_000_12C25_01C6B64F.09226B00
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<br><P>Assignment to workgroup Name 1 : L2 SD Service Delivery Apps =
Spt</P>
<P>Open CI Search Code : HPSD</P>
<P>Description : tesat</P>
<P>General Information :</P>
<P>Is the workgroup owner Aware of the addition to Workgroup : Yes</P>
<P>Workgroup to be added :</P>
<P>L2 SD Service Delivery Apps Spt</P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
<P> </P>
------=_NextPart_000_12C25_01C6B64F.09226B00--
The Same message is in text as well as HTML so not sure how to read it .
currently my program is as follows
for (int i = 0; i < found.length; i++) {
Message m = found;
// Get some headers
Date date = m.getSentDate();
Address [] from = m.getFrom();
String subj = m.getSubject();
String mimeType = m.getContentType();
System.out.println(date + "\t" + from[0] + "\t" +
subj + "\t" + mimeType);
Object o = m.getContent();
if (o instanceof String) {
System.out.println("**This is a String Message**");
System.out.println((String)o);
} else if (o instanceof Multipart) {
System.out.print("**This is a Multipart Message. ");
Multipart mp = (Multipart)o;
int count3 = mp.getCount();
System.out.println("It has " + count3 +
" BodyParts in it**");
for (int j = 0; j < count3; j++) {
// Part are numbered starting at 0
BodyPart b = mp.getBodyPart(j);
String mimeType2 = b.getContentType();
System.out.println( "BodyPart " + (j + 1) +
" is of MimeType " + mimeType);
Object o2 = b.getContent();
if (o2 instanceof String) {
System.out.println("**This is a String BodyPart**");
System.out.println((String)o2);
} else if (o2 instanceof Multipart) {
System.out.print(
"**This BodyPart is a nested Multipart. ");
Multipart mp2 = (Multipart)o2;
int count2 = mp2.getCount();
System.out.println("It has " + count2 +
"further BodyParts in it**");
} else if (o2 instanceof InputStream) {
System.out.println(
"**This is an InputStream BodyPart**");
} //End of for
} else if (o instanceof InputStream) {
System.out.println("***********************************This is an InputStream message**");
InputStream is = (InputStream)o;
/* if(m.getContentType().equalsIgnoreCase("multipart/alternative")) {
MimeMultipart mp = new MimeMultipart();
// Assumes character content (not binary images)
} else {*/
BufferedReader reader
=new BufferedReader(new InputStreamReader(is));
String thisLine=reader.readLine();
while (thisLine!=null) {
System.out.println(thisLine);
thisLine=reader.readLine();
So when the Content TYpe is multipart/alternative it goes into InputStream message .
any help and ideas to handel such situations ?
Thanks
San
Message was edited by:
sanrosh_95Try reposting that with tags (replace the {'s with ['s).
Long story short, I think the FAQ and examples would go a long way towards explaining this, but you basically can check the content type, or check if the content contains parts, and parse each part separately. -
E-Mail recevier with Content-Type: multipart/mixed
Hi All,
I am working on proxy to Mail scenario, wherein Pi is receiving data from SAP over proxy, creating a csv of the data and sending it to recipient as the email with the attachment.
The User is saying that he wants the email content type as Multipart MIME format. I have searched on SDN and web, but couldnu2019t find how to implement in PI.Please provide your inputs.
Thanks in advance,
RuchiHi Ruchi,
You need to use Java Mapping or UDF to create Multipart/Mime
Check this excellent blog by stefan.
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
Also check this thread for your solution
http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095 -
Unable to read email content of type multipart/mixed....
Hi i have written following code to read text content form the multipart email content type,
but when i say
if (content instanceof Multipart){
System.out.println("############ Content Type is Multipart ############ ");
messagePart = ((Multipart) content).getBodyPart(0);
}the flow is not going into the if condition,
bellow is the detailed code and the output in the console, you can check with the SOPs
Part messagePart = message;
content = messagePart.getContent();
System.out.println("############ : " + content);
System.out.println("############ START MESSAGE BODY ############");
System.out.println(content);
System.out.println("############ END MESSAGE BODY ############");
if (content instanceof Multipart){
System.out.println("############ Content Type is Multipart ############ ");
messagePart = ((Multipart) content).getBodyPart(0);
String contentType = messagePart.getContentType();
System.out.println("############ CONTENT TYPE : " + contentType);
System.out.println("############ CONTENT TYPE : " + contentType);
if (contentType.startsWith("text/plain")) {
System.out.println("############ Content Type is text/plain ############");
InputStream is = messagePart.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(is));
String thisLine = reader.readLine();
while (thisLine != null) {
actualMsg = actualMsg + thisLine + ".";
thisLine = reader.readLine();
System.out.println("############ SMS CONTENT :" + actualMsg);
System.out.println("/**********************Passing to E2SConverter********************/");
And the output for the same
Stack Trace*** Check for new mails on Mail Server for Processing ***
########## Unread Msg Count : 1
########## FROM : [email protected]
########## SUBJECT : RE: SMS-5000-9969413222-S1221654991804 [T20080917000CS010Z246]
**************** Checking Subject Line ****************
******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER *******
############ : javax.mail.internet.MimeMultipart@1a2760f
############ START MESSAGE BODY ############
javax.mail.internet.MimeMultipart@1a2760f
############ END MESSAGE BODY ############
############ CONTENT TYPE : multipart/mixed; boundary=22902610.1221655198503.JavaMail.javamailuser.localhost
############ SMS CONTENT :
/**********************Passing to E2SConverter********************/
Please help me for the same.. its bit urgent...
Thanks And Regards,
Amie...Yes,
It's going into the if if block, but its giving me ClassCastException
System.out.println("******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER ******* ");
Part messagePart = message;
content = messagePart.getContent();
System.out.println("############ : " + content);
System.out.println("############ START MESSAGE BODY ############");
System.out.println(content);
System.out.println("############ END MESSAGE BODY ############");
if (messagePart.isMimeType("multipart/*")) {
System.out.println("############ Content Type is Multipart ############ ");
messagePart = ((Multipart) content).getBodyPart(0); //GIVES EXCEPTION : ClassCastException at this line...
String contentType = messagePart.getContentType();
System.out.println("############ CONTENT TYPE : " + contentType);
See the Stack Trace..TAconnVect.size()25
*** Check for new mails on Mail Server for Processing ***
########## Unread Msg Count : 2
########## FROM : [email protected]
########## SUBJECT : SMS-5000-9969413222-S1221713640885 [T200809180003S070]
########## FROM : [email protected]
########## SUBJECT : SMS-5000-9969413222-S1221713740897 [T200809180004S070]
**************** Checking Subject Line ****************
******* GO AHEAD IS TRUE : EMAIL TO SMS CONVERTER *******
############ : javax.mail.internet.MimeMultipart@1f7be7b
############ START MESSAGE BODY ############
javax.mail.internet.MimeMultipart@1f7be7b
############ END MESSAGE BODY ############
############ Content Type is Multipart ############
java.lang.ClassCastException: javax.mail.internet.MimeMultipart
at com.interactcrm.SMSConverterClass.PollEmail.CheckEmails(PollEmail.java:327)
at com.interactcrm.SMSConverterClass.PollEmail.run(PollEmail.java:98)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
- INFO : readMessage Checking for new messages in inbound table of ta database
TAconnVect.size()25
TAconnVect.size()25
and Bellow is the internet header of the mail which i am trying to read.Received: from grameenphone.com ([10.10.29.153]) by neptune.grameenphone.com with Microsoft SMTPSVC(6.0.3790.3959);
Thu, 18 Sep 2008 10:55:52 +0600
Date: Thu, 18 Sep 2008 04:55:52 GMT
From: [email protected]
Subject: =?us-ascii?B?U01TLTUwMDAtOTk2OTQxMzIyMi1TMTIyMTcxMzc0MDg5NyBbVDIwMDgwOTE4MDAwNFMwNzBd?=
To: [email protected]
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="20238918.1221131600666.JavaMail.SYSTEM.ipcc-test3"
Return-Path: [email protected]
Message-ID: <[email protected]>
X-OriginalArrivalTime: 18 Sep 2008 04:55:52.0114 (UTC) FILETIME=[D35D2120:01C9194A]
Edited by: Amie on Sep 18, 2008 10:29 AM
Edited by: Amie on Sep 18, 2008 10:36 AM -
Batch uploading to a document library with content types
Hi,
I have a document library with two content types. Now I need to upload documents to this document library. However, if I have large number of files, then uploading through web UI is a pain as metadata will not be attached. How should I automate it from
my computer using powershell without relying on Administrator to run the powershell script. Or is there any other way to do it without using powershell? or can powershell be run remotely from an end user computer?
Note I am using SharePoint 2010.Hi,
According to your post, my understanding is that you want to butch upload files to document library with content types.
There are two good tools in CodePlex which can batch upload files with content types, you can have a look at them.
DocMetaMan : Bulk document Upload and MetaData (Taxonomy) Setter
SharePoint Multiple File Upload Script
There are some third-party tools which can achieve the same scenario, you can refer to it.
http://sharepoint.stackexchange.com/questions/74694/uploading-multiple-files-with-metadata
Thanks,
Jason
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Jason Guo
TechNet Community Support -
Even though the actual E-mail message has the content type as multipart/Voice as shown below the getContentType() is shown as
the following.
getContentType()
TEXT/PLAIN; charset=us-ascii
THE ACTUAL MESSAGE :
# cat 2.msgReturn-path: <[email protected]>
Received: from localhost.localdomain ([192.18.74.46])
by millerite.red.iplanet.com
(Sun Java(tm) System Messaging Server 7.0-99.01 64bit (built Aug 12 2008))
with ESMTP id <[email protected]> for
[email protected]; Mon, 15 Sep 2008 15:42:28 -0700 (PDT)
Original-recipient: rfc822;user51
Date-warning: Date header was inserted by millerite.red.iplanet.com
Date: Mon, 15 Sep 2008 15:42:28 -0700 (PDT)
Message-id: <[email protected]>
From: [email protected]
To: [email protected]
Content-type: Multipart/voice
X-Message-Type: Multipart/voice
Subject: Test Mail
START
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
JAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVA
=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
ENDMon Sep 15 17:50:43 PDT 2008
DEBUG: JavaMail version 1.4.1
DEBUG: not loading file: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.providers
DEBUG: java.io.FileNotFoundException: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.providers (No such file or directory)
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.providers
DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
DEBUG: Tables of loaded providers
DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
DEBUG: !anyLoaded
DEBUG: not loading resource: /META-INF/javamail.address.map
DEBUG: not loading file: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.address.map
DEBUG: java.io.FileNotFoundException: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.address.map (No such file or directory)DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
DEBUG: mail.imap.fetchsize: 16384
* OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH ESORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ENABLE CONTEXT=SEARCH CONTEXT=SORT WITHIN SASL-IR SEARCH_RES XSENDER X-NETSCAPE XSERVERINFO X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP X-ANNOTATEMORE XUM1 STARTTLS AUTH=DIGEST-MD5 AUTH=PLAIN AUTH=CRAM-MD5] millerite.red.iplanet.com IMAP4 service (Sun Java(tm) System Messaging Server 7.0-99.01 64bit (built Aug 12 2008))
IMAP DEBUG: AUTH: DIGEST-MD5
IMAP DEBUG: AUTH: PLAIN
IMAP DEBUG: AUTH: CRAM-MD5
A0 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH ESORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ENABLE CONTEXT=SEARCH CONTEXT=SORT WITHIN SASL-IR SEARCH_RES XSENDER X-NETSCAPE XSERVERINFO X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP X-ANNOTATEMORE XUM1 STARTTLS AUTH=DIGEST-MD5 AUTH=PLAIN AUTH=CRAM-MD5
A0 OK Completed
IMAP DEBUG: AUTH: DIGEST-MD5
IMAP DEBUG: AUTH: PLAIN
IMAP DEBUG: AUTH: CRAM-MD5
DEBUG: protocolConnect login, host=millerite.red.iplanet.com, user=user51, password=<non-null>
A1 AUTHENTICATE PLAIN
+
dXNlcjUxAHVzZXI1MQB1c2VyNTE=
A1 OK User logged in
A2 CAPABILITY
* CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH ESORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ENABLE CONTEXT=SEARCH CONTEXT=SORT WITHIN SASL-IR SEARCH_RES XSENDER X-NETSCAPE XSERVERINFO X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP X-ANNOTATEMORE XUM1 STARTTLS
A2 OK Completed
A3 LIST "" INBOX
* LIST (\NoInferiors) "/" INBOX
A3 OK Completed
Sep 15, 2008 5:50:47 PM com.sun.comms.iss.indexapi.parser.EmailParser bootstrapEvent
INFO: [ Begin: Mon Sep 15 17:50:47 PDT 2008 ] Processing User - user51 On Host - millerite.red.iplanet.com
DEBUG: connection available -- size: 1
A4 EXAMINE INBOX
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk)
* OK [PERMANENTFLAGS ()]
* 5 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1217896692]
* OK [UIDNEXT 7]
A4 OK [READ-ONLY] Completed
A5 FETCH 1 (BODYSTRUCTURE)
* 1 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
A5 OK Completed
A6 FETCH 1 (UID)
* 1 FETCH (UID 2)
A6 OK Completed
A7 FETCH 1 (ENVELOPE INTERNALDATE RFC822.SIZE)
* 1 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
A7 OK Completed
A8 FETCH 1 (FLAGS)
* 1 FETCH (FLAGS (\Seen NonJunk))
A8 OK Completed
A9 CLOSE
A9 OK Completed
DEBUG: added an Authenticated connection -- size: 1
A10 LIST "" INBOX
* LIST (\NoInferiors) "/" INBOX
A10 OK Completed
DEBUG: connection available -- size: 1
A11 EXAMINE INBOX
* FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk)
* OK [PERMANENTFLAGS ()]
* 5 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1217896692]
* OK [UIDNEXT 7]
A11 OK [READ-ONLY] Completed
A12 FETCH 2:5 (BODYSTRUCTURE)
* 2 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
* 3 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
* 4 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
* 5 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
A12 OK Completed
A13 FETCH 2 (ENVELOPE INTERNALDATE RFC822.SIZE)
* 2 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
A13 OK Completed
A14 FETCH 2 (UID)
* 2 FETCH (UID 3)
A14 OK Completed
A15 FETCH 2 (FLAGS)
* 2 FETCH (FLAGS (\Seen NonJunk))
A15 OK Completed
A16 FETCH 3 (ENVELOPE INTERNALDATE RFC822.SIZE)
* 3 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
A16 OK Completed
A17 FETCH 3 (UID)
* 3 FETCH (UID 4)
A17 OK Completed
A18 FETCH 3 (FLAGS)
* 3 FETCH (FLAGS (\Seen NonJunk))
A18 OK Completed
A19 FETCH 4 (ENVELOPE INTERNALDATE RFC822.SIZE)
* 4 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
A19 OK Completed
A20 FETCH 4 (UID)
* 4 FETCH (UID 5)
A20 OK Completed
A21 FETCH 4 (FLAGS)
* 4 FETCH (FLAGS (\Seen NonJunk))
A21 OK Completed
A22 FETCH 5 (ENVELOPE INTERNALDATE RFC822.SIZE)
* 5 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:29 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
A22 OK Completed
A23 FETCH 5 (UID)
* 5 FETCH (UID 6)
A23 OK Completed
A24 FETCH 5 (FLAGS)
* 5 FETCH (FLAGS (\Seen))
A24 OK Completed
A25 CLOSE
A25 OK Completed
DEBUG: added an Authenticated connection -- size: 1
A26 LIST "" INBOX
* LIST (\NoInferiors) "/" INBOX
A26 OK Completed
IMAP DEBUG: IMAPProtocol noop
A27 NOOP
A27 OK Completed
A28 LOGOUT
* BYE LOGOUT received
A28 OK Completed
DEBUG: IMAPStore connection dead
DEBUG: IMAPStore cleanup, force false
DEBUG: IMAPStore cleanup done
Mon Sep 15 17:50:47 PDT 2008Edited by: SpaceShuttle on Sep 15, 2008 5:59 PM
Edited by: SpaceShuttle on Sep 15, 2008 6:00 PM -
Match Content-Type: multipart/alternative;
Hello,
we´re doing a 30 Day trial and we´re trying to migrate functions out of our Surfcontrol EF to 2 Ironport C-150.
add_txt_footer:
[Sender is stadthalle.com] and
["Content-Type: multipart/alternative;" is not in Header] and
["aw:, re:, fwd:, wg:" is not in Subject] and
["7999979" is not in Body] and
[Message < 50kBytes] then add txtfooter
add_html_footer:
[Sender is stadthalle.com] and
["Content-Type: multipart/alternative;" is in Header] and
["aw:, re:, fwd:, wg:" is not in Subject] and
["7999979" is not in Body] and
[Message < 50kBytes] then add htmlfooter
- how can we do that?
Current situation:
add_txt_footer: if (mail-from == "stadthalle.com$") AND (header("Content-Type:") != "multipart/alternative;") AND (body-size < 50000) { add-footer("txtfooter"); }
allways matches, so RTF and HTML Mails dont get the html footer
</PRE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<font face="Trebuchet MS"><strong>MASTERS OF DIRT:</strong>
<br>
21. + 22. Februar 2009 / Wiener Stadthalle
<br>
INFO: <a href="http://www.stadthalle.com">http://www.stadthalle.com</a> 01 / 79 999 79 </font>
</body>
</html>
<PRE>
any suggestion welcome!
KlemensHi Klemens,
I made some slight modifications to your posted filter, and tried out my versions on an IronPort, which good results.
There are other options you will probably want to add, such as including the name of the outgoing listener to keep messages from being "double-footered".
This is covered in a Knowledge Base article already: http://tinyurl.com/5gaj24
I created the following as message filters from the CLI.
addtxtfooter:
if(mail-from == "example.com$") AND (header("Content-Type") != "multipart/alternative") AND (body-size < 50000)
add-footer("txtfooter");
addhtmlfooter:
if(mail-from == "example.com$") AND (header("Content-Type") == "multipart/alternative") AND (body-size < 50000)
add-footer("htmlfooter");
Hope that helps.
-whardison -
Unable to add Content-Type=multipart/related; type="text/xml";
hi all
am trying to add the following to my soap message that include attachment
but its not working
Content-Type=multipart/related; type="text/xml";
boundary="----=_Part_0_14732323.1039686671216";
Content-Length=4259;
can any body help plzzzzzzzzHello again,
My solution works and does not work. Content type is ok, but strange characters appear to the end of the attachment data.
Like this
...</E1EDS01></IDOC></ORDERS01>H úãž6×½ ã½5Õ×¼ÛgžÛNÝ}þ[ëMu201E
Where did these come from? I tested in a way that I changed the ContentType back to application/xml and attachment is fine again.
Regards,
Pekka -
I have a Macbook Air. I have MS office installed and work in Excel often with no issues. But When I download an excel spread sheet from a Ford web site I seem to be getting code and not the work sheet.
Example-
MIME-Version: 1.0
X-Document-Type: Workbook
Content-Type: multipart/related; boundary="====Boundary===="
--====Boundary====
Content-Location: file:///C:/HOLD.XHT
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<meta name="Excel Workbook Frameset">
<xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>BTB</x:Name>
<x:WorksheetSource HRef="./IBIT0001.xht"/>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>GSM</x:Name>
<x:WorksheetSource HRef="./IBIT0002.xht"/>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>RODetail</x:Name>
<x:WorksheetSource HRef="./IBIT0003.xht"/>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
</HEAD>
</HTML>
--====Boundary====
Content-Location: file:///C:/IBIT0001.xht
Content-Transfer-Encoding: 8bit
Content-Type: text/html; charset="utf-8"
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<HEAD>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<style>
<!--table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
@page
{margin:1.0in .75in 1.0in .75in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-page-orientation:landscape;}
tr
{mso-height-source:auto;}
col
{mso-width-source:auto;}
br
{mso-data-placement:same-cell;}
.style21
{color:blue;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:underline;
text-underline-style:single;
font-family:Arial;Try search/ask in the forum devoted entirely to Excel issues:
http://answers.microsoft.com/en-us/mac/forum/macexcel -
Can we Read/Display the content of Word/PDF file in Flex 3/4 ?
Hello All,
Can we read/display the content of Word/PDF file in Flex 3 or Flex 4?. I have one word file containing Arabic and English content with some settings like Bold, Color, Align etc. I want to display the content of this word file as it is in the flex web application.
Awaiting for prompt reply.
Thanks and Regardsthank you for your immediate reply, but,
sorry, this does not work.
With this code:
<cfpdf action = "read" source = "dok_1.pdf" name =
"mypdf">
<cfdump var="#mypdf#"/>
I get this result:
Everything, but no text of the document.
PDFDocument
Application name of application
Author bimbam Verlag GmbH
CenterWindowOnScreen [empty string]
ChangingDocument Allowed
Commenting Allowed
ContentExtraction Allowed
CopyContent Allowed
Created D:20080710
DocumentAssembly Allowed
Encryption No Security
FilePath [empty string]
FillingForm Allowed
FitToWindow [empty string]
HideMenubar [empty string]
HideToolbar [empty string]
HideWindowUI [empty string]
Keywords [empty string]
Language [empty string]
Modified [empty string]
PageLayout SinglePage
Printing Allowed
Producer [empty string]
Properties [empty string]
Secure Allowed
ShowDocumentsOption [empty string]
ShowWindowsOption [empty string]
Signing Allowed
Subject [empty string]
Title Rheinische Angler-Zeitschrift
TotalPages 1
Trapped [empty string]
Version 1.3
Maybe i do not understand the cfpdf tag the right way.
What i want is a kind of pdf-to-text conversion.
Do I have to use the processddx action? I do not think so.
But there is a property DocumentText .. ? -
How can I read pdf with ebook reader on JounE touch
How can I read pdf with ebook reader and where could I put the pdf in Journe
Hi there
You said that you want to read pdf with ebook reader .
For me ,i usually read the pdf files using another pdf reader which supports to read the pdf files directly.
And i am now just using their free trial.
You can also have a try.
+Message was edited: Advert has been removed+ -
Error message: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidd
Hi All,
My scenario is Proxy to File
So in-order to test the scenario i am sending the Data from RWB using TestMessage
i have given the sender and receiver details.
and the payload i am passing is
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MT_QAStatusReport xmlns:ns0="http://XXXX.com/xi/SARERP/IF0100_QAStatusReport/100">
<RECORD_STRCUTURE>
<RECORD>
<INSP_LOT>New for EU</INSP_LOT>
<MATNR>00000500418</MATNR>
<SHORT_TEXT> caps SE</SHORT_TEXT>
<PLANT>0082</PLANT>
<BATCH>59756</BATCH>
<VENDOR_BATCH>59756</VENDOR_BATCH>
<INQUAL_INSP>1940</INQUAL_INSP>
<SSQUAL_INSP>0</SSQUAL_INSP>
<VENDOR/>
<DATELOT_CREA>7/20/2011</DATELOT_CREA>
<DAYS_QA>26</DAYS_QA>
<COMMENTS>Pending Import Testing</COMMENTS>
</RECORD>
</RECORD_STRCUTURE>
</ns0:MT_QAStatusReport>
the error i am facing is
Error while sending message: invalid content type for SOAP: TEXT/HTML; HTTP 403 Forbidden
can any one suggest me how to solve the isssue
Thanks&Regards
SaiI had received similar error , request you to also check following,
1. while sending the message from IE placed in RWB, just check the URL in the Test Message tab, its possible that this PI is installed just now and its settings are not done correctly. In this ask the owner or the BASIS to change it to correct URL.
for example it should look something like - http://sdndevdpi001:50100/sap/xi/engine?type=entry -
I can't send messages with mail 6.0 of mountain lion, because I can't desactivate the option SSL (Secure sockets Layers); it is locked
Hi, i am having the same problem. this is what i have noticed.
I have 2 x imac's and 2 x macbook air's
i upgraded the 2 macbook air's and 1 of the imac's to Mountain Lion, all these have problems acessing sites that require you to login .
the one remaining imac is still running lion and works perfect.
i am using a dlink router with DD-WRT firmware, i tested teathering from my iphone and i can log into websites fine using the newly upgraded mac's.
It's not a wireless issue as my imac is using an ethernet connection.
is there a compatibility issue with some routers. -
Please help! I can't send messages with my IPod 5!
I can't send messages with my iPod 5th gen. If anyone can help thank you!!!
I just realized I don't have Lion, but I still have this problem with my email.
-
Can't send message with photo.
Does this relate in any way to the three other threads you have going?
Maybe you are looking for
-
WM interface to external system
Have anybody ever configured WM interface to external system (t-code OMKY)? I have a question here and hope you can help: What's the naming rule when define Logical System, RFC destination, Port and Partner Profile? Should all be defined under one na
-
Encapsulation vs. performance
We are creating a J2EE application with an O-R mapper to solve the persistence problems. We plan to create Java objects which encapsulate certain aspects by creating a service interface. These services use persistent objects backed by some database t
-
ENABLE SRM WORKFLOW FOR EXTERNAL PURCHASE REQUISITIONS
Hi, Iu2019m creating a shopping cart using an external approver. We require external requisition to be completed by the purchasibg manager. The changes were implemented as outlined in the document http://www.sdn.sap.com/irj/scn/index?rid=/library/uu
-
Comm: sed Tainted: Errors
I just installed some cannibalized ram and I'm getting errors like this. Could this be related? Apr 9 09:30:25 myhost kernel: FS-Cache: Loaded Apr 9 09:30:25 myhost kernel: FS-Cache: Netfs 'nfs' registered for caching Apr 9 09:30:25 myhost kernel: I
-
Writing items into listbox using win32com.client api in Python
Hi I'm trying to add/remove an item into the listbox control of labview using the VI methods provided by pywin32 api for python.. I have tried the setControlValue method to add an item, but to no avail (vi.setControlValue('Listbox',<name of item>)).