Multipart Mime / File Adapter article
I was sure that there was an article/blog about packing multiple files into email format and send it out with the file adapter in XI.
I just can't find it anymore. Can someone post the link?
TIA -hs
I think You are talking about one of this,
Most Related:
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
Related:
https://media.sdn.sap.com/SDNTV/main.asp?mediaId=106
/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
-Nilkanth.
Similar Messages
-
Using wildcards (*) in sender file adapter - FTP type
Hi guys!
Dooes it work using wildcards in sender file adapter (FTP type(!) (filesystem obviously work))? I tried it and it failed. it works only for exact name..
I read some articles about FTP and the result is, that ftp work always only with 1 file, so I'm wondering, if this is possible.
Thanks for info!
OlianThanks for all replies..
I know of course, that * can be used, I use it in many scenarios too. But on a FileSystem. It is not working if the sender type is FTP.
*, ., *.dat, ... nothing like that works.. Just exact file name.
I am able to pick up file, if I specify it's exact name, so there should be no problem with permissions..
Please, I'd appreciate one reply with comfirmation: yes, we are using asterisk (*) , we access source files via FTP and they are processed.
Is there anybody with this experience, that it works?
Thank you!
Olian -
~Can't open "noname" MIME files in Gmail~
I've searched for this topic, but can't understand all the tech-speak! I'm in my 20s, so I'm not dumb, just not in the loop. Someone break this down for me in layman's terms.
I use Gmail for my primary email. Lately, I've been getting attachments from family members who use PCs. These attachments are always called "noname." When I hit "download," I get a message saying that it is a MIME message and asking what application I should open it with. I always get a bunch of nonsense no matter what I open it with! It looks like it's trying to be HTML, but opening it with Firefox doesn't work. Neither does opening it with the StuffIt Expander.
Even when I hit "View as text," it doesn't make any sense. I'll paste a copy below. Can someone please tell me what application to open up MIME files in?
This is only part of the message because it was too long to post. Here we go.... close your eyes!!
From: "Bumidang, Gloria" <**@*******.*>
To: "Sanchez, Thess" <*******@******>,
"'Saqui, Olivia'" <*******@******>,
Subject: FW: 90-10 PRINCIPLE
Date: Mon, 23 Mar 2009 12:05:21 -0400
Message-ID: <[email protected]>
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=NextPart_000_005F01C9AC67.828B5C70"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcmrZINq6Njpl4LQQYGF4PcxHt+WQQASvuNQAAK8fpA=
Content-Language: en-us
X-Originating-IP: [198.96.114.20]
X-OriginalArrivalTime: 23 Mar 2009 16:05:23.0052 (UTC) FILETIME=[2BF152C0:01C9ABD1]
X-Apparently-To: ****@****.com via 216.39.53.229; Mon, 23 Mar 2009 09:05:53 -0700
X-IronPort-AV: E=Sophos;i="4.38,408,1233550800"; d="pps'32?scan'32,208,217,32";a="7117813"
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
X-Antivirus: AVG for E-mail 7.5.557 [270.11.24/2018]
This is a multipart message in MIME format.
------=NextPart_001_006001C9AC67.828B5C70--
------=NextPart_001_006001C9AC67.828B5C70
Content-Type: text/html;
boundary="004_95B51F5CDB1B9B46A9E963EF35579D6025AFB8F116EXMB01regionp";
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>Message</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:inherit;
panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
pre
{margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:85.6pt 80.5pt 58.4pt 89.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-CA link=3Dblue vlink=3Dblue>
<span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Good morning, have a great day and =
a super
week. Stay safe and sound always.
<span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>
<font =
size=3D3
face=3D"Times New Roman">
<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>
From:</spa=
n><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
Yu, Lilibeth [mailto:[email protected]]
Sent: March 23, 2009 8:06 =
AM
Subject: FW: 90-10 =
PRINCIPLE
------=NextPart_000_005F01C9AC67.828B5C70
Content-Type: application/vnd.ms-powerpoint;
name="90-10 Principle.pps"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="90-10 Principle.pps"
0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAPgADAP7/CQAGAAAAAAAAAAAAAAAVAAAAdQoAAAAAAAAA
EAAAdwoAAAEAAAD+////AAAAAF4KAABfCgAAYAoAAGEKAABiCgAAYwoAAGQKAABlCgAAZgoAAGcK
AABoCgAAaQoAAGoKAABrCgAAbAoAAG0KAABuCgAAbwoAAHAKAABxCgAAdgoAAP//////////////
//////////////////////////////////////////////////////////////////////////+g
Rh3wZWAAANx5LbqFi2eVecK4MZKK5p3//9j/4AAQSkZJRgABAgEAYABgAAD/wAARCAMABAADASIA
AhEBAxEB/9sAhAAFAwMEAwMFBAQEBQUFBgcNCAcHBwcQCwwJDRMQFBMSEBISFRceGRUWHBYSEhoj
GhwfICEiIRQZJSckICceISEgAQUFBQcGBw8ICA8gFRIVFSAgICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICD/xAGiAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJ
CgsQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJ
ChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeI
iYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq
8fLz9PX29/j5+gEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoLEQACAQIEBAMEBwUEBAABAncA
AQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6
Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeo
qaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4Tl5ufo6ery8/T19vf4fr/2gAMAwEAAhED
EQA/APH6KKK5TmwooooAKKKKACiiigAooooAXI7Lijj6UuCx4FdR4RGHiLxpYzXml2cTQQts3y
yBA7Y6Lnr29qErmGIxNLDU3UrSUYrq9EcrmlHPFT3dnPp13NZ3cLQzwuY5I2HKsDgiq49qRpTnGc
VKLumFFFFMsKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAK
KKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAoo
ooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiii
gAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKA
CiiigAooooAKKKKACiiigAooooAKKKKAFzwBjpXp3wyNcPgXQZNIvtMlukSRpIHicKeeSrZ9/v
0rzEDceKAcLxQnbY4cwy/D5hQdDEK8X+hpeJtbm8S67eatPGsUt3KZCi9FHYfgMVm53NzSkE5Y0Y
zjHekdNGjChTjSpq0YpJLyWiG0UUUzUKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAoo
ooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiii
gAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKA
CiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAK
KKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAF7AYq5YaTf6izmysrm4EQzJ5
MTSbB6nA4qpkBQAa9pCvxK8LeFfCsunarcixuY5mlZjEzCYHGDlQeRjGPYURV2eXmMr4LCutQp
upJW0X/A1+48WIXPHSk6gn0rY8ZarZ634n1LUrC3MNrc3DSRpjBwT1I7E9fxrIYbeBSO3DVJVaMa
k48rcU2uza2+Q2iiimbhRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUU
UAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQ
AUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFAB
RRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFF
Message was edited by: TravelGirlTwoPointOh
<Edited by Moderator>TravelGirlTwoPointOh wrote:
I've searched for this topic, but can't understand all the tech-speak! I'm in my 20s, so I'm not dumb, just not in the loop. Someone break this down for me in layman's terms.
It sounds like gmail has serious problems with MIME data. That isn't something it should have trouble with. It has been solved for a long, long time now.
Even when I hit "View as text," it doesn't make any sense. I'll paste a copy below. Can someone please tell me what application to open up MIME files in?
Ordinarily, your e-mail program.
I have a program I used to sell years ago when people started sending MIME e-mail messages that AOL couldn't understand. Perhaps I should update it if all the world is switching to gmail and gmail doesn't handle MIME either. 1996 is here again.
Anyway, click here to download it.
Technically this is a shareware program and technically I could make money from it. But very few people need this program anymore and it should work just fine for you in "demo" mode. -
Receiver file adapter command line
hi,
i am just wondering how to use command line on receiver file adapter.
i am not clear how to use this.
please modify on the following command!
anyway, i have to call java application after put some files by receiver file adapter.
cmd.exe %Fjava ./javacalltest
it did not work..
please guide me.
Command Line
An operating system command specified here is executed before or after a file has been successfully processed. The default value is an empty character string (no command).
When the operating system command is called, the file name currently being processed can be specified with the following placeholders:
%f (file name)
%F (absolute file name including path)Hi Ogawa and Laurence,
Have look at :: /people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
1)Windows batch Commands::
http://labmice.techtarget.com/articles/batchcmds.htm
2)Linux:
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
Note:: First try using the comands on O.S if they work then only use them in Adapters.
Hope it will help.
regards
Piyush
Pl:reward some points if it is usefull. -
Sender File Adapter: No Messages
Hi,
I have configured a sender file adapter to read a flat file using file format conversion, in the file poler mode using NFS. I could confirm that the File is being read, and the adapter status from the Adapter framework (is:port/AdapterFramework) indicates the adapter is working fine (Green light, and last message processed at XXX........).
However, I did not find any messages from SXMB_MONI.
Further, I got inot the RWB, and found the following Audit log:
It indicates an error "Transmitting the message to endpoint http://kansbwul01:50000/sap/xi/engine/entry?action=execute using connection AFW failed, due to: Received HTTP response code 404.."
What is the problem, and how can I resolve it?
Thanks
Feroz
Success Channel CDWFileReader: Entire file content converted to XML format
Success Send text file "/tmp/XIDemo/3315-TL-20041126-0000IN.txt", size 164533, character encoding ISO8859-1 with QoS EO
Success Application attempting to send an XI message asynchronously using connection AFW.
Success Trying to put the message into the send queue.
Success Message successfully put into the queue.
Success The application sent the message asynchronously using connection AFW. Returning to application.
Success Confirmation mode test found. File will be resent next time
Success The message was successfully retrieved from the send queue.
Success The message status set to DLNG.
Error Transmitting the message to endpoint http://kansbwul01:50000/sap/xi/engine/entry?action=execute using connection AFW failed, due to: Received HTTP response code 404..
Success The asynchronous message was successfully scheduled to be delivered at Sun Jan 09 19:13:21 CST 2005.
Success The message status set to WAIT.Hi,
Further to my earlier post, the following is the message log from the message monitor. Any clues whats going wrong. Can I configure a File Sender->File Receiver scenario?
Where and how are the port settings and user credentials configured for the AFW.
-Feroz
Message ID f49f6d21-632c-11d9-805a-0003ba54d619
RefToMsg ID
Conversation ID
Sequence Number 0
Message Type Asynchronously Sent Message (SEND)
From Party
From Service Name: LB1_CDWFilePoler
To Party
To Service Name: LB1_CDWFileWriter
Action Namespace: http://erc.ge.com/cdw/poc Name: ReadFile
Connection Name AFW
Status Not Delivered
Profile XI
Transport HTTP
Delivery Semantics Exactly Once
Times Failed 4
Number of Retries 3
Sent / Received 01/10/2005 12:42:33
Transmitted / Delivered 01/10/2005 12:57:33
Next Delivery 01/10/2005 12:57:33
Persist Until 02/09/2005 12:42:33
Valid Until
Retry Interval 5 Minutes
Address http://kansbwul01:50000/sap/xi/engine/entry?action=execute
Credential SAPPasswordCredential(XIAFUSER):password=********:sapclient=100:saplang=
Transport Headers SOAPAction="http://sap.com/xi/XI/Message/30" Content-Type=Multipart/Related; boundary=SAP_63fa9d21-6337-11d9-8f3c-0003ba54d619_END; type="text/xml"; start="" HTTP=POST
Node ID 1485750 -
Sender File adapter Pooling interval & file Size issue
Hi ALL,
I have a file size of 400 MB to be picked to be the sender file adapter i am facing issue that the system is unable to even pick the file and place in the Q for Processing.
1)we have no mapping no content conversion ....only pick the file from one loaction and place it in 3 different locations with 3 different names ...can any one help me in solving this .. ? the best workable method to achive this .
2) this file is getting created once in a day .say 2 PM .so i can give the poll intravel to 24 hours ..but some times ..the file creation in server gets delayed ..but they cont wain for the next 24 hour to come for processing the file ..so my query is can we reduce the poll intravel for 2 PM till 3PM hour for some 3 times ..and once it reches 3PM it can poll as usual with a gap of 24 hour time ..
thanks
RKHi Rupash,
>>I have a file size of 400 MB to be picked to be the sender file adapter i am facing issue that the system is unable to even pick the file and place in the Q for Processing.
Never use File adapter for picking large file (maximum size which I have seen it to work successfully is 200 MB)
Instead go for Java proxies. Check this forum post for the discussion:
Java proxy to use XI as a file mover
Also if you want some more info on Java proxies refer these blogs and articles:
/people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/a068cf2f-0401-0010-2aa9-f5ae4b2096f9
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f272165e-0401-0010-b4a1-e7eb8903501d
>>this file is getting created once in a day .say 2 PM .so i can give the poll intravel to 24 hours ..but some times ..the file creation in server gets delayed .
You can do a availability time planning refer these links for more information:
Planning Availability Times
http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/content.htm
Controlling a Communication Channel Externally Locate the document in its SAP Library structure
http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/content.htm
Regards
Suraj -
File Conversion error in Receiver File Adapter
Hi ,
I am facing the below error in receiver file adapter .
Conversion initialization failed: java.lang.Exception: java.lang.NumberFormatException: For input string: "4|8|10|2|10|4|10|4|40|40|40|1|20|2|20|8|40|0|12|12|12|1|12|4|4|8|40|8|8|8|8|12|40|8|10|10|10|10|10|1|10"
Kindly suggest !
Regards,
HemanthikaHi,
Check it - File adapter is active ? try to Re-activate the same.
Also do CPACache Refresh.
Still problem, tyr out by restarting the Adapter Engine.
I guess you're just trying to send all the data in your file record to a <data> element as a whole. If so, this blog will help you:
Configuring Generic Sender File CC Adapter
Under certain operating system platforms, such as Solaris, the APIs used by the Java Runtime (JRE) are not Unicode-aware. Consequently, the JRE needs to be configured to correctly interpret the character set it receives from the operating system.
This is configured through the "file.encoding" system property as well as the "LANG" environment variable.
Make sure you set "file.encoding" to a character set (such as ISO-8859-1) that supports the special characters you would like to process. This system property can be configured by appending "-Dfile.encoding=<encoding>" to the Java VM parameters section of the SAP J2EE Config Tool.
Additionally, you need to set the "LANG" environment variable to a locale that supports more than 7 bits, such as "de.ISO8859-1". The encoding you specify in the LANG environment variable needs to match the encoding set via "file.encoding".
You can persistently configure the environment variable by setting it in the profile $HOME/.sapenv_$HOSTNAME.csh of the <sid>adm user: setenv LANG de.ISO8859-1
Refer this article
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10dd67dd-a42b-2a10-2785-91c40ee56c0b
See below link
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
Please refer this thread .
File Adapter Not Initialized Error
Cheers,
Regards,
Suryanarayana -
How to use File Adapter Receiver to write attachments
Hi,
i have a scenario, in which our own XInotes adapter sends an XIMessage from an IBM Lotus Notes database into XI. This XIMessage contains an XML document as application main document and several PDF files as additional attachments
On the receiver side, i must use a File Adapter to write both the XML documents and the PDF attachments into a directory.
The problem is i don't know how to use the file adapter receiver to write the attachments. In the Channel Monitoring, i can see that all PDF files are transferred to the file receiver. But the file adapter writes only the XML document into the directory.
I've also tried the AF_Modules/PayloadSwapBean, but it can only swap one PDF file into the application payload. And the file name must be hard coded in the module configuration as swap.KeyName.
Could anyone give me any ideas?
thanks a lot in advance
Xianghi,
receiver file adapters do not supprt attachments.
Only File Sender adapter is capable of handling attachments not the receiver.
http://help.sap.com/saphelp_nw2004s/helpdata/en/4b/a20c4cfea96b498b1e1af3f32f0670/frameset.htm
Configuring the sender FILE adapter
The sender file adapter is configured to pick the normal payload (file1.xml), which is specified in the File
access parameters, and the additional image file (file1.jpg) that is to be sent as an attachment is configured
under the Additional File(s) as shown in the screenshot below. The file type would still remain binary.
Since, by default, XI sends payload and attachments in XML format, we need to call two beans, namely the
MessageTransformBean and the PayloadSwapBean to help us is transforming the content to jpeg format
and also change the file extension.
The PayloadSwapBean module is used to replace the application payload of the XI message that holds the
data with another payload which is appended to the message as an attachment. In our case, the payload
would be file1.xml whereas the attachment would be file1.jpg
The swap module is denoted in our scenario with the module key swap. It has two parameters from the
MIME header.
regards,
pradeep. -
Java command line in File adapter
Hi all,
In my receiver file adapter (FTP), I want to use the option "Run operating system command after message processing". In the command I want to execute a java class. Can anybody have information about how to do that ?
My command line in the following : "java myPackage.MyClass %F". This command line works fine on my machine but I don't know how to do when on XI File Adapter (where to set the jar file, ...)
Thanks in advance,
LaurenceHi Laurence
XI Command Line Functions::
/people/michal.krawczyk2/blog/2007/02/08/xipi-command-line-sample-functions
1)Windows batch Commands::
http://labmice.techtarget.com/articles/batchcmds.htm
2)Linux:
/people/michal.krawczyk2/blog/2005/08/17/xi-operation-system-command--error-catching
regards
Piyush
Pl: reward points if it is helpful. -
How to use File Adapter in BPEL
Hi,
How to use File Adapter in BPEL. I am using Oracle SOA 10g. Any sample or best example in blog or elsewhere ?Hi,
Please check the below links for samples on how to use file adapter in BPEL (in 10g/11g usage is same) and let me know any further queries.
11g - http://blogs.oracle.com/theshortenspot/entry/soa_suite_integration_part_3_l
10g - http://erpschools.com/articles/bpel-file-adapter-tutorial -
Multipart mime in XI for attachments?
Hi,
I am not big on all the terminology, so please me nice
But in a discussion for B2B with a marketplace, the subject of recieving attachments came up and he asked if we could accept our attachments in Multipart mime. Now I know Binary and text of the attachment types, but I do not know how MIME format comes into play.
Any explanation or a simple, yes you can accept attachment in multipartr mime would be fine!
The adapter will be the HTTP adapter not an email adapter.
Kind Regards,
ChrisHi Chris,
The HTTP adapter does not support multipart messages, but you can use the SOAP sender adapter in no-soap mode instead.
When the SOAP adapter receives a multipart message, it creates an attachment for each part. The first part becomes the main payload, the other parts become attachments.
The problem is, that most adapters can not work with attachments, so you need SOAP or Mail receiver adapter, Java or ABAP proxy to handle the attachments in receiver direction.
Regards
Stefan -
Malformed mime file and Symantec AV SMTP Gateway
Hi
We are running 2 versions of JES at the moment, 2003Q4 and 2004Q2, both fully patched. We have just discovered that any messages with attachments that are directed through our AV ASPAM gateway from these systems are dropped with the following error.
Scan Status: 56 - Malformed MIME file
The AV product is Symantec AV for SMTP Gateways 3.1.2.35
On further examination of the AV logs it appears that e-mail from other institutions also running iMS
are also being dropped.
The response from Symantec is as follows
"This error indicates that the scanned email message did not conform to the Multipurpose Internet Mail Extensions (MIME) standards as set forth in RFC 2045 - RFC 2049. Strict adherence to this standard prevents incoming email with virus payloads encapsulated within malformed MIME headers and form."
See
http://service1.symantec.com/support/ent-gate.nsf/docid/2002112109330754?Open&src=w
I have also discovered that similar problems are being encountered by a user trying to send HTML messages via Sun Java Mail.
So, has anybody seen this beforeand know of a fix? It is a rather frustrating problem.
I can provide a copy of the full message text if required.
Many thanks in advance
BernardBernard,
We are using Symantec AV SMTP Gateway with Messaging Server 6.1 and are not experiencing the problems you mention, though we did see a few such issues with an older rev (we're currently using 4.0.0.59). Some of the fixes Symantec lists with ver 3.1.7 are:
# Some multipart MIME messages with nonstandard boundary markers incorrectly parsed
# Some multipart MIME messages with numerous plain text attachments not parsed correctly
# Some multipart MIME messages containing two terminating boundary markers for the primary (outer) boundary generate a false positive malformed mime error
You might consider upgrading your AV SMTP Gateway to see if this fixes the problem.
Regards,
Brian -
Trouble receiving multipart mime messages
I am encountering a problem which has me perplexed... I am attempting to create and send a simple multipart mime message through an smtp server which requires authentication. The thing is the mail gets delivered OK, but nothing appears in the body of the message nor are there any attachments. My code follows, wonder if anyone has any ideas... A full day of searching though Sun documentation, forums and internet surfing has not given me any help... sigh.. Thanks, Marc...
private void sendEmail(
String emailURL,
String notes) {
String to = emailURL;
String from = "[email protected]";
String smtpHost = "mail.myservername.com";
String user = "myId";
String password = "myPassword";
boolean debug = true;
// create some properties and get the default Session
Properties props = new Properties();
props.put("mail.smtp.host", smtpHost);
props.put("mail.smtp.auth", "true");
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
try {
// create a message
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress(from));
InternetAddress[] address = { new InternetAddress(to)};
msg.setRecipients(Message.RecipientType.TO, address);
msg.setSubject("Welcome to JavaMail");
msg.setSentDate(new Date());
// create and fill the first message part
MimeBodyPart mbp1 = new MimeBodyPart();
mbp1.setText(notes);
mbp1.addHeaderLine("Content-Type: text/plain; charset=\"iso-8859-1\"");
mbp1.addHeaderLine("Content-Transfer-Encoding: quoted-printable");
// create and fill the second message part
MimeBodyPart mbp2 = new MimeBodyPart();
// Use setText(text, charset), to show it off !
mbp2.setText("Eventually I plan to attach an image here");
mbp2.addHeaderLine("Content-Type: text/plain; charset=\"iso-8859-1\"");
mbp2.addHeaderLine("Content-Transfer-Encoding: quoted-printable");
// create the Multipart and its parts to it
MimeMultipart mp = new MimeMultipart("mixed");
mp.addBodyPart(mbp1);
mp.addBodyPart(mbp2);
// add the Multipart to the message
msg.setContent(mp);
msg.saveChanges();
// send the message
javax.mail.Transport transport = session.getTransport("smtp");
transport.connect(smtpHost, user, password);
transport.sendMessage(msg, address);
transport.close();
} catch (MessagingException mex) {
handleException(mex);
Exception ex = null;
if ((ex = mex.getNextException()) != null) {
handleException(ex);OH NEVER MIND!!!! What a NASTY NASTY NASTY trap! Shame on Sun and their design/implementation of JavaMail!!!! I didn't have the activation jar file installed on my server.... Gives no errors, no warnings, no exceptions are thrown! Absolutely no clue whatsoever that it is missing!!!
Marc.. -
FileName in Sender File Adapter Module
Hi Folks,
In my sender file adapter have written a module to read the picked file name. The protocol used is NFS.
Notice that the file name read in the module has the absolute path, including the directory path. E.g The file name xyz has to be picked from source directory
XIServer\Outbound. In the module when I retrieve the file name, it comes up as
XIServer\Outbound\xyz. Is this expected behaviour?
I was expecting just the file name<xyz> to be retrieved.
Thanks,
AnandHI,
Create an UDF and write this code.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key =
DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
in Adapter u will have Adapter specific parameters check the file name check box.
Using this UDF u will get the file name at target side.
Regards,
Phani. -
Getting Error while running a file adapter.
Hi all,
I am doing a small application where I need to read an image from a shared path and send the base64code of that image in response. For that I am using File Adapter and Read
operation. I have just hard coded the image name didnt give any wild card or expressions. I generated a service which is a proxy using the jca of that File Adapter. I added a stage
replacing the response body with the opaque element of the request body. When I run the proxy I am getting something like *"The invocation resulted in an error: "* in response
and in the stack trace I am getting *"Failed to set the value of context variable "body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body."* as the fault
reason I am unable to detect where exactly I am going wrong. Kindly help me in resolving this.
Thanks,
Phanindra.Not sure why you want to replace. Since the response of the proxy would remain to hold the request body by default.
If you have stored the opaque element in a variable ($var_opaque), then you can do the following.
XPath : .
In variable : body
Expression : $var_opaque
Check - "Replace node content"
Maybe you are looking for
-
How do I use Qt and OpenGL with Visual Studio
Hi! I mainly want to program in C++ and I want to use Qt and OpenGL with Visual Studio. I am currently revising C++ and later on i am going to start reading Qt and OpenGL. I have a background of Embedded firmware design(C and Assembly). The Visual St
-
(iPhone 4S) Downloaded iOS 7.1 last night and today can't find "pass lock" in my Settings - used to appear below Auto-Lock. "Restrictions" is now there, but it doesn't lock my device. Got answers?
-
Hello. We use SA-520 appliance as front-end firewall connected to sattelite with about 15-20 users behind. Remote management is enabled. Lately have found after device is up for 2-3 days and I'm trying to login remotely I get certificate warning and
-
How can I uninstall Quicktime completely?
I want to purge ALL files related to Quicktime so that I can try installing a fresh copy to see if that would get it to working again. See thread about it not working anymore since the latest "upgrade": http://discussions.apple.com/thread.jspa?thread
-
2 contact lists ( Groups )
I have a complicated problem On my i phone 5s. i have 2 contact lists ( Groups ) one under the name of I Cloud (750 contacts ) and the other under e-mail name( 650 contact ) some contacts are duplicated in both groups , the problem that i clouds only