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_95
Try 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.
Similar Messages
-
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 -
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 -
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 -
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 -
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 -
How I tie the formula with conditions type?
Hi,
Than create the formula with tcode O3I7:
1) how I tie the formula with conditions type?
2) how I tie the conditions type with the formula with Calculation Schema?
help me, please.
thanks
Edited by: celeste ziantoni on Feb 5, 2008 6:45 PMHello,
Pricing formula is created using transaction VOFM. It is tied to the condition types in Pricing Procedure definition in Alternate Calculation Type column. For Pricing procedure, the menu path is SPRO->Materials Management->Purchasing->Conditions->Define Price Determination Process->Define Calculation Schema.
Thanks,
Venu -
How do I process messages with status = "Holding"
Hi,
How do I process messages with status = "Holding" from the RWB-Message Monitoring - Adapter Engine?
I did a quick scan for records with errors in the same queue (ConversationID), but could not find any.
I tried to cancel the one with the smallest sequential number, but I got the error - "Unable to cancel 1 of 1 messages; update the status"
Please help.
Thanks
SudheerHi,
"Holding comes into play when ur scenario is having multiple inbound interfaces and you checked "Maintained order at runtime"in interface determination in ID. Suppose message will hit first inbound interface once it is successful then it will hit second inbound interface. If first inbound interface fails then most of the message will be in "Holding" status depends upon XI AF queues ID.
I did a quick scan for records with errors in the same queue (ConversationID), but could not find any.
You will not find bcoz of AE archiving settings.
Try to check the with business guys, whether they need the order of processing. If not the case try to Uncheck the box "Maintain Order at runtime".
Regards,
Rao.Mallikarjuna -
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 -
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 -
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 -
How to send a message with javamail api
Hi, anybody can tell me how i do to send a message with javamail?
Thanks.
Daniele.[rossifumi80],
Here's a simple JavaMail application SendMessage.java that will connect a SMTP host and send a mail message out:
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class SendMessage {
public static void main (String args[]) throws Exception {
String host = args[0];
String from = args[1];
String to = args[2];
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", host);
// Get session
Session session = Session.getDefaultInstance(props, null);
// Define message
MimeMessage message = new MimeMessage(session);
// Set the from address
message.setFrom(new InternetAddress(from));
// Set the to address
message.addRecipient(Message.RecipientType.TO,
new InternetAddress(to));
// Set the subject
message.setSubject("Hello JavaMail");
// Set the content
message.setText("Welcome to JavaMail");
// Send message
Transport.send(message);
}HTH.
Allen Lai
Developer Technical Support
SUN Microsystems
http://www.sun.com/developers/support/ -
How to read an IDoc with an ABAP program?
Hi experts!
I am new to SAP and I need to read an IDoc with an ABAP program... how to do it?
Maybe it is possible to read an IDoc into inner table...?
Hellpful answers and advices will be rawarded.
Regards,
Mindaugas.hi
I understand your issue, to pickup an IDOC flat file & post it to R/3 (with or without mapping).
There is no straight forward solution but there are some ways (Normal way of Working as of now ?!!!) provided in the "How to"
check this link
https://websmp101.sap-ag.de/nw-howtoguides
and look for this guide
How To Convert Between IDoc XML and Flat Files in XI.30
Probably you need to automate this using some programs,
- Create an ALE port of type File
using transaction WE21 on your
Integration Engine.
- Run report RSEINB00 on your
Integration Engine. The report will
upload the file, filter the IDoc header
data, perform the conversion to IDoc
XML and put the data into the
pipeline of the Integration Server.
Therefore it is crucial, that the IDoc
control record data is populated
correctly and corresponds to the
adapter-specific identifiers of your
sender service. Once the message
is put successfully into the pipeline
of the Integration Server, the file is
deleted.
Hope this fixes your issue
regards
ravish
<b>plz dont forget to reward points if helpful</b> -
How to read mq message through jms
Hi
can anyone tell me how we can read an mq message through jms transport or by using jms adapter.
Thanks in advance.A JMS program will be written typically to lookup administered objects ( namely connection factory and destination) from a jndi tree and use these to connect to the jms provider and read/write message to the destination. So administrators of the JMS provider usually create these objects and bind it to a jndi , which then can be used by the jms applications by doing a lookup from the jndi tree.
Websphere MQ is a messaging provider which provides a native MQ API in many languages including Java for applications to talk to it. This is a IBM proprietary API and is not same as JMS. Later when JMS became more interoperable and the standard for java based messaging applications, IBM introduces the MQ JMS API which is a wrapper around the native MQ API, so that now java clients can talk to MQ using the JMS API. Since jms applications need to lookup the administered objects, IBM came up with the utility called JMSAdmin which allows MQJMS administers to create and bind JMS administered objects. The utility is flexible that it allows the objects to be binded to different type of JNDI trees - file based, ldap based etc. But the most widely used and robust one is the file based.
So as part of configuration the first thing is to create the queue and queue manager objects by the MQ Administrator.
A MQ JMS administrator will then create the JMS wrapper objects using the JMSAdmin utility and bind it to the file based jndi tree ( a file called .bindings)
Now we need the application running in weblogic server ( the JMS Adapter ) to lookup these objects from the file based jndi tree. So for this we create a foreign jms server. A foreign jms server allows to create local jndi links (in weblogic's server jndi tree) for objects in a remote jndi provider (the .bindings file).
Finally the application will look up the local jndi name from the local jndi which will automatically resolve to the remote provider and use it.
The steps in the IBM developer work link folliows this sequence.
Hope this helps. -
Hi Team,
I need to access Java web service which is simple service and accepts and returns XML over HTTP. No credentials are needed to access the service. We need to pass following two HTTP headers (Content-Type and Authorization) along with XML request message:
<GetStatus> message is being constructed in the orchestration and URI is constant to access.
Which adapter shall I use to get the response back? I tried using WCF-WSHttp with Security Mode = Transport, and different options of client credential types but every time, error returned stating:
System.Net.WebException:
The HTTP request is unauthorized with client authentication scheme 'Basic'. The
authentication header received from the server was 'Basic realm='.
Authentication failed for principal Basic. Message payload is of type:
String
In Fiddler, request looks line following
POST <https://URL/GetServiceReopnse HTTP/1.1
Content-Type: application/xml
Authorization: Basic cmVmU3RhdHN2Y19kgeRfsdfs=
Host: <Server name>
<GetStatus XMLNS="http://server.com/.....">
<OrgId>232323</OrgId>
<HubId>3232342323</HubId>
</GetStatus>
MMK-007First, you should not use the HTTP Adapter because it's been deprecated and replaced by WCF.
Start with the WCF-Custom Adapter and select the customBinding.
You should start with the textMessageEncoder and httpTransport and go from there.
Maybe you are looking for
-
XML report with excel as output in oracle HRMS
Hi All, I need to develop an xml report with output in excel sheet. The ouput should contain fulltime employee details in one tab and partime employee details in another tab. Is this possible.Plz guide as to how to achive this. Any reference document
-
How do you automate the point size of page numbers in a generated index?
In Framemaker 10 I have a generated index for a book. The indexed items are in point size 10 but the generated page numbers come out in 12 pt. Can I automate the page number size to be 10 pt? I have tried defining a character tag IndexPage Numbers an
-
Oracle8i Lite 4.0 gives OIBKND32.DLL page fault
I tried installing Oracle 8i Lite 4.0 on Windows98 and I get "ORAINST caused an invalid page fault in module OIBKND32.DLL at 015f:00bead01" and installation fails at a very early stage. Any ideas how I can get it to install? null
-
Error when executing jar from command window PLZ HELP URGENT
Hello I have a project which calls a webservice, I am using Jdeveloper 10.1.3.4 I deployed the project in a jar file and included all the necessary libraries in it, but when executing the jar from command window I am getting the exceptions below the
-
Gaining authorization code for Adobe Pro 8
Hi, Does anyone know what i can do please? I am trying to install this software on my new machine as the old machine it was installed on died. I entered the serial number and activation code on the automated phone and got told that the producing of a