Mail Changing Attachment Names
Does anyone find that their Mac Mail changes attachment names into something like ??Q?documentname?=? so you are unable to open them unless you rename and save?
I think I have narrowed it down to only happening with attachments that have a long(ish!) filename. It only happens when a Mac computer recieves. Doesn't matter if a Mac or Windows machine sends the mail.
Any help appreciated as 50% of my attachments are coming through in this format. V frustrating!
Are you sure your RECEIVING email client isn't doing the conversion?
Thank you for the help.
It wasn't actually the email client at the other end, but rather a third-party photo app on my iPad - Photogene.
I had been sending the screenshot as an email attachment from within Photogene. It seems that this app was converting it to the JPEG format. When I simply chose the image from the Camera Roll - directly in the Mail app - the PNG format was kept.
Thanks again.
Similar Messages
-
Change attachment name using mail adapter
Hi All,
I have a problem changing the attachment name in my scenario. I use Mail scenario to send a pdf Attachment from R/3 to email address. Everything working fine except the attachment name that becoming untitled.pdf and untitled.txt.
Communication Channel setting :
message protocol : xipayload
transport protocol : smtp
checked use mail package
checked keep attachment
I have use MessageTransformBean in my receiver adapter, but no luck. It was produce an error.
anyone have an idea to solve my problem?
thx,
RobbyHi,
You need to go to the Module tab of the Mail adapter receiver communcation channel and give the parameter as Transform.contentDisposition and its value as attachment ( since you needed the output to be sent as an attachment) and give the name of the attachment as you required.
Please see the help page : [http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm] for more details and more options of the parameters.
Regards,
Kalpana. -
Sender mail adapter - attachment name
Hi there
We have configured a sender email adapter to receive text/csv attachments and save them to a file system. What we are having a problem with is reading the attachment name. So we are using Dynamis Configuration to create the file name using the subject line - Which is not ideal. Ideally we would like to use the same name as the origianl attachment but haven't found any way of doing that. We even tried using Content-type in the Variable Header (XHeaderName1) suing variable transport binding but it doesn't show up in the Dynamic Config part of the SOAP message.
Is there any way of reading the name of the file attachment? We are on PI release 7.0.
Any help would be appreciated.
Cheers
SalilHi Vitor
There are 2 scenarios that I can think of -
1. You are saving the email attachment as a file. In that case use step 3 in the earlier reply to get the attachment name and save the file witht that name.
2. You are sending the XML straight to a receiver using HTTP, IDOC, JDBC etc. in which case you would need the attachment name much earlier that step 3. For that I guess you would have to write another adapter module on the sender mail adapter(at Position 3 where position1 = payloadswap bean, 2 = custom module to get the attachment name) and add an xml tag to your incoming message. These adapter modules are really powerful and are like user exits in ABAP. In that case you would have to change the Data Type in the Integration repository to reflect that extra tag. Here is some code from a module we wrote to totally change the structure of the xml coming in. The key thing to remember is this module is that you can read the whole message byte by byte. There might be smarter ways of doing it (like using the SAP XML parser factory class) but since I'm not a Java programmer I stuck to the basics. Here's the code( you could also look at the example given in sap help where they remove (or add I'm not sure) CR(carriage return) from CRLF (CR Line feed).
Created on Aug 8, 2007
To change the template for this generated file go to
Window>Preferences>Java>Code Generation>Code and Comments
package jdbcPackage;
import javax.ejb.CreateException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;
import com.sap.aii.af.mp.module.*;
import com.sap.aii.af.ra.ms.api.*;
@author Salil.Mehta Soltius NZ Ltd
To change the template for this generated type comment go to
Window>Preferences>Java>Code Generation>Code and Comments
public class jdbcClass implements SessionBean, Module {
private SessionContext myContext;
public void ejbRemove() {
public void ejbActivate() {
public void ejbPassivate() {
public void setSessionContext(SessionContext context) {
myContext = context;
public void ejbCreate() throws CreateException {
public ModuleData process(
ModuleContext moduleContext,
ModuleData inputModuleData)
throws ModuleException {
// put your code here
try {
Message msg = (Message) inputModuleData.getPrincipalData();
XMLPayload payload = msg.getDocument();
String payEnc = payload.getEncoding();
byte[] payByte = payload.getContent();
byte[] payByteOut = new byte[payByte.length];
byte[] payByteTemp = new byte[payByte.length];
int i;
int j;
int actualCount = 0;
char xmlTagFound = ' ';
char endXmlTagFound = ' ';
char tagFound = ' ';
System.arraycopy(payByte, 0, payByteTemp, 0, payByte.length);
// Step 1 - Conversions
// convert "< to <" and "> to >"
// convert " to "
// This will remove any carriage returns and line feeds
// and the <XML* and </XML* tags plus the <row> and </row> tags
for (i = 0; i < payByte.length; i++) {
// convert < to < and > to >
if (payByteTemp<i> == '&') {
if (payByteTemp[i + 1] == 'l') {
if (payByteTemp[i + 2] == 't') {
if (payByteTemp[i + 3] == ';') {
payByteTemp<i> = '<';
payByteTemp[i + 1] = '\n';
payByteTemp[i + 2] = '\n';
payByteTemp[i + 3] = '\n';
if (payByteTemp<i> == '&') {
if (payByteTemp[i + 1] == 'g') {
if (payByteTemp[i + 2] == 't') {
if (payByteTemp[i + 3] == ';') {
payByteTemp<i> = '>';
payByteTemp[i + 1] = '\n';
payByteTemp[i + 2] = '\n';
payByteTemp[i + 3] = '\n';
if (payByteTemp<i> == '&') {
if (payByteTemp[i + 1] == 'q') {
if (payByteTemp[i + 2] == 'u') {
if (payByteTemp[i + 3] == 'o') {
if (payByteTemp[i + 4] == 't') {
if (payByteTemp[i + 5] == ';') {
payByteTemp<i> = '"';
payByteTemp[i + 1] = '\n';
payByteTemp[i + 2] = '\n';
payByteTemp[i + 3] = '\n';
payByteTemp[i + 4] = '\n';
payByteTemp[i + 5] = '\n';
// This will take in the initial xml declaration from the Byte array
// And we also don't want the stuff after the xml declaration till
// we reach the first <row> tag
if (xmlTagFound == ' ') {
if (payByteTemp<i> == '>') {
xmlTagFound = 'X';
payByteOut[actualCount++] = payByteTemp<i>;
if (xmlTagFound == 'X') {
payByteOut[actualCount++] = '\r';
continue;
if (xmlTagFound == 'X') {
if (payByteTemp<i> == '<') {
if (payByteTemp[i + 1] == 'r') {
if (payByteTemp[i + 2] == 'o') {
if (payByteTemp[i + 3] == 'w') {
if (payByteTemp[i + 4] == '>') {
xmlTagFound = 'Y';
} else {
continue;
} else {
continue;
} else {
continue;
} else {
continue;
} else {
continue;
// Carriage return and line feed
if ((payByteTemp<i> == '\r') || (payByteTemp<i> == '\n')) {
continue;
// <XML_*> tag
if (payByteTemp<i> == '<') {
if (payByteTemp[i + 1] == 'X') {
if (payByteTemp[i + 2] == 'M') {
if (payByteTemp[i + 3] == 'L') {
tagFound = 'X';
endXmlTagFound = ' ';
continue;
// </XML_*> tag
if (payByteTemp<i> == '<') {
if (payByteTemp[i + 1] == '/') {
if (payByteTemp[i + 2] == 'X') {
if (payByteTemp[i + 3] == 'M') {
if (payByteTemp[i + 4] == 'L') {
tagFound = 'X';
endXmlTagFound = 'X';
continue;
// <row> tag
if (payByteTemp<i> == '<') {
if (payByteTemp[i + 1] == 'r') {
if (payByteTemp[i + 2] == 'o') {
if (payByteTemp[i + 3] == 'w') {
if (payByteTemp[i + 4] == '>') {
tagFound = 'X';
continue;
// </row> tag
if (payByteTemp<i> == '<') {
if (payByteTemp[i + 1] == '/') {
if (payByteTemp[i + 2] == 'r') {
if (payByteTemp[i + 3] == 'o') {
if (payByteTemp[i + 4] == 'w') {
if (payByteTemp[i + 5] == '>') {
tagFound = 'X';
continue;
if ((payByteTemp<i> == '>') && (tagFound == 'X')) {
tagFound = ' ';
continue;
if (tagFound == ' ') {
if (endXmlTagFound == 'X') {
continue;
payByteOut[actualCount++] = payByteTemp<i>;
byte[] payByteExp = new byte[actualCount];
System.arraycopy(payByteOut, 0, payByteExp, 0, actualCount);
payload.setContent(payByteExp);
msg.setDocument(payload);
inputModuleData.setPrincipalData(msg);
} catch (Exception e) {
ModuleException me = new ModuleException(e);
throw me;
return inputModuleData; -
Receiver mail with attachment name by default
Hello all,
I have a scenario IDOC -> PI -> MAIL.
In my output mail, i want,for example and by default, that my attachment's name is "document1.xml".
I've checked the case 'keep attachments' in my CC receiver mail and tried to use the Payloadswapbean to change the name of the attachment but it isn't working !
Is it the appropriate module that i use ? Or should i use something else ?
Thanks for your help,
JP
Edited by: Jean-Philippe PAIN on May 27, 2010 1:57 PMIn my output mail, i want,for example and by default, that my attachment's name is "document1.xml".
Check the third example shown in this blog: /people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
Applicable for Message Protocol = XIPAYLOAD without Mail Package
Regards,
Abhishek. -
Problem in Mail Receiver attachment name
Hi all.
we are doing a interface from file to Mail (Excel file as a attachment).
we have written the adapter module to convert the XML from PI to Excel.. which is working fine.
For the attachment name i was hardcoding the attachment name using
localejbs/AF_Modules/MessageTransformBean
and Transform.ContentDescription as Testing.xls.
The scenario works fine.
But i want the attachment name to be dynamically set like xyzddmmyyyy.xls.
I am not using any Mail package.
I want to set the attachment name dynamically. so i follwed the blog
http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414700)ID0922321550DB00664514007823519662End?blog=/pub/wlg/3202
i am getting the filename from the xmlpayload and setting it using
xp.setName(filename);
xp.setContentType("application/vnd.ms-excel");
xp.setContent(by);
but the problem is that now i am not getting the excel file instead a untitled.bin file which have the Contents.
in module configuration i have
localejbs/XMLToExcelConversion LocalEnterpriseBean 0
sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean LocalEnterpriseBean 1
Can you please throw some light on this problem..
Thanks in advance
Babu.Try this:
xp.setContentType("application/vnd.ms-excel; filename=\""filename"\"); -
Mail changes attachement suffix
Hello...I want to send some pictures with mail. The pictures are .JPG.
WÍf I attach these JPG pictures and choose a size change in MAIL (right bottom line) the resized pictures are saved as .JPEG.
Some of my customers cannot use this JPEG and I don't want to change the ending by hand.
JPEG is a format but NO suffix!!!! Why does mail do this. It was not in 10.5!
Does anybody know how to change this??
Thanks n advance!
Best regards
HadyHi Hady & welcome to the forums...
The pictures are .JPG.
SL apparently has issues with aliases and older/existing jpgs for some reason - not sure if that is related to your issue, however, but you might see if the same thing happens when you create, attach & send a brand spanking new whatever.jpg instead of working with an existing image from a previous install.
Good luck in any case. -
Mail changes attachment filename
Mail.app has a bug or disability to properly interpret the filename of received attachments if the filename contains accented characters.
for example
the original filename: xxxxx xxxxxx xxxxáxxxxüxxxxx_xxxxxxxx xxáxáx.pptx
when received in email: k=5Fxxxxxxxxx_xx=E1z=E1k.pptx?=
it does not matter what email client is used to send the attachment, it can be any version of Outlook or OS X's Mail, the problem is with Mail.app on recipient side.
Also it happens to users of 10.6.8 trough to 10.9.1
What is strange, that this behavior of changing filenames is not consequent:
in the past before I realized it's a bug, I was usually asking the sender to resend the email as I thought the mail was damaged.
The sender did nothing else, but resending the email from her/his 'Sent Items' folder, so no change has been made to filename
or content of the email itself > and strangely the second time the attachment is displayed correctly with proper accented characters,
no extra letters at the beginning or after the extension.
I also tried to reproduce this bug, sometimes successfully, but as I wrote this bug is not consistent.
What worries me that apple knows about this bug for years, but does nothing to fix it - it still exists,
and non-English users suffer from this.
https://discussions.apple.com/message/6808962#6808962
https://discussions.apple.com/thread/1409364?start=60&tstart=0
https://discussions.apple.com/message/7195409#7195409
Of course I filled a BUG report, and the purpose of this post is to ask other OS X users to fill a BUG report too and make some pressure
on apple to fix it for once and for all.
for non developers a link to bug report: http://www.apple.com/feedback/macosx.html
for developers: https://bugreport.apple.com/
A kindly ask the moderator not to close this Discussion until apple delivers a permanent fix.
Asking the sender not to use accented characters in filenames is not a solution it's a workaround that nobody will use,
as it puts everyone in an inconvenient position when exchanging files with clients.
Thank you.Also have this frequently.
What's more maddening, files within the same message, with the only accented character being the same in each file, and many other files with (different) accented characters, one file gets corrupted, the other one doesn't.
As in Mail.app:
The same message appears fine in iOS. -
Mail changes my name to some odd contact or calendar group
For some strange reason Mail is showing my name as "Holidays in the United States" over the last week or so - prior to that it was "Gateway Tenants Action." The "Holidays ..." name is one of my calendar groups and the "Gateway ..." name is one of my Contract groups. I don't have the slightest idea why this is happening and I cannot find any relation between these names and myself in any part of the Contacts program. I had thought this was a bug in Mavericks but it is happening in Yosemite too. Any suggestions????????
[iOS 10.10, Mail 9.0, Contacts 9.0 on a Mac Mini [late 2012].This was driving me nuts too! Mine has been saying "Holiday In The United States" for several weeks.
Here's what I did and seems to be solved for now:
In Mail, click on the "Holiday In The United States" label (should have a little down arrow), so you get the dropdown menu.
Select "Remove from Previous Recipients List"
Close and re-open Mail
After doing this, I'm now just seeing my email address. Hope this helps! -
Mail makes new name for attachment
When I send an word (or pdf) attachement to somebody, Mail changes the name. When it is a word document the name changes from "xxxx.doc" into "xxxx.dococ" and a pdf-file from "yyyy.pdf" into "yyyy.pdfdf". The recipient can not read the document. Does anybody knows what to do?
Same problem... make me feel really unprofessional for my custommer...
Here is what is written in the help file of the Mail Attachments Iconizer :
File name extensions are corrupted.
This is a bug in certain versions of Mac OS X unrelated to Mail Attachments Iconizer. When there are non-ASCII characters (e.g. ä, é or ®)™ in the file name Mail often corrupts the file name extension (e.g. .pdf, .jpg or .doc) which is often necessary to determine the file type.
Workaround: The bug seems to be fixed in the recent Mac OS X updates (as of version 10.5.4). Additionaly it is more safe in general to only use ASCII characters in attachment file names. (ASCII characters include unaccented letters of the Latin alphabet, digits, basic punctuation and spaces.)
I removed the "é" in the file name and it has worked... hope I don't get the problem again... and hopefully the bug will be corrected in further version... (I have Mac OS X 10.5.5 and still have the bug...) -
Email attachment name in sender mail adapter to the receiver file adapter
HI ,
Ths is regarding email to file scenario. I am trying to create file (in rceiver file adapter) with the same name as the email attachment that i read from mail sender adapter. I want ro use adapter module for this. I could find from blogs that there is module - GetAttachmentName - available that i can use for this in sender mail adapter.
Can you please let me know what whetehr i neeed to mention any module key and parameters for this.
I assume , i need to do following steps :Please confirm.
1. i can use this module - after payload swap module and before standard mail adapter module in sender mail adapter
2. select ASMA option in advanced tab in sender mail adapter
3. In receiver file adapter select ASMA option in advanced tab in sender mail adapter
4. Also select file name option in ASMA in sender mail adapter
Thanks,
VamsiHi Vamsi,
your scenario is also described here: Re: sender mail adapter - attachment name
If you use the Module getAttachmentName, which is described here,
http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0GetAttachmentName
your scenario should work as you described it.
You just need to make sure that the Attachment Name that you read in the first place, is mapped to the Filename Attribute of the
Fileadapter (http://sap.com/xi/XI/System/File/FileName).
regards,
Daniel -
Mail change address book!
hello, excuse me for my BAD english...
I have big problem with my address book:
i have a imac 27" and macbook air with snow leopard and 1 iphone 3gs.
i have, also mobile me and I sync with mobile me address book, calendar and more...!
It is very very good for me BUT I have a problem.
Sometimes some contact CHANGE name!
I have do many tests and I have see THAT IT'S MAIL program that CHANGE some contact name when I send an e-mail at this contact!!
for example: I have 200 contact. 5 of this have an e-mail. the other only number...
I send an e-mail with Mail program from my imac to one of this contact...for example John Mcdonald...
immediatly MAIL change the name of John Mcdonald in my address book. (and mobileme change the name on my iphone and on my macbook air...!) the name often change to John mc donald john mcdonald (repeat two times...) or john john mcdonald...or, for other contact change to CAPITAL (JOHN MCDONALD).
so, in my test on this BUG I have connected this problem to adressees precedence on MAIl program...If I empty this "adressees precedence" I don't have the problem...but I need to empty every day...2-3 times a day...!
I hope You can help me...!
I hope apple can resolve this BUG: WHY MAIL program CAN modify MY ADDRESS BOOK??! MY ADDRESS BOOK is MINE!
do you have this problem?how do you manage a business contact in order to overide the problems before said related to the union mail/address book?
There is no problem with Mail and Address book regarding this except the fact that the OP is trying to conflate a perfectly normal behavior into something abnormal. This is not a bug, no matter what anyone else may think. It may be inconvenient to the thinking of some people, but it's not a bug.
Address Book is meant for keeping contact information of individuals, with their given first and last names. It is not for keeping information in any fashion you like. Failing to adhere to the design of the program will yield unexpected or unwanted results. It's not a free-form database, nor was it ever intended to be, so people need to stop trying to use it as such.
I seem to manage my contacts quite well without problems by simply entering their given names, along with their company name (where applicable) in the Company field, and their email address(es). I've never had a problem yet.
There is a way to completely disable this behavior, but it would also have the effect of forcing you to completely type the full email address(es) of your recipients each time you send an email. -
Me32K - Need to change the mail subject line, attachment name
Hi,
can u please throw light on the below three points which needs to be achieved.
1. Subject line of the mail needs to be modified from standard to "PO# XXXXXXXXXX".
2. Attachment name should be updated from stanadrd to "PO_XXXXXXXXXX".
3. Also by default mail will be delivered to the default id, but it should be delivered to multiple mail ids maintained in the vendor master.
I should achieve the above by user exits or by Zprogram copying from th standard.
Please advise me.
Thanks a lot.
Regards,
Kirancheck in Tcode: NACE, what is the current driver program and form against your document type.
and then change accordingly -
Change the attachment name while sending PO as mail..
Hi,
I’m able to send PO Form through mail using NACE, configuration for output type.
But my Attachment name is always showing as ‘Print Data‘.
My requirement is to change the attachment name as below.
Program: SAPFM06P
Script: Z_SD_PORDER
Please help on this issue.
Thanks in advance.
Regards,
KumarI didn't find any field with PACKING_LIST in program 'SAPFM06P'.
If we create the copy of 'SAPFM06P' kindly let me know where I need to change the same..
in form entry_neu using ent_retco ent_screen.
the below is the code.
* INCLUDE FM06PE02 *
form entry_neu using ent_retco ent_screen.
data: l_druvo like t166k-druvo,
l_nast like nast,
l_from_memory,
l_doc type meein_purchase_doc_print.
clear ent_retco.
if nast-aende eq space.
l_druvo = '1'.
else.
l_druvo = '2'.
endif.
call function 'ME_READ_PO_FOR_PRINTING'
exporting
ix_nast = nast
ix_screen = ent_screen
importing
ex_retco = ent_retco
ex_nast = l_nast
doc = l_doc
changing
cx_druvo = l_druvo
cx_from_memory = l_from_memory.
check ent_retco eq 0.
call function 'ME_PRINT_PO'
exporting
ix_nast = l_nast
ix_druvo = l_druvo
doc = l_doc
ix_screen = ent_screen
ix_from_memory = l_from_memory
ix_toa_dara = toa_dara
ix_arc_params = arc_params
ix_fonam = tnapr-fonam "HW 214570
importing
ex_retco = ent_retco.
endform.
Kindly give the clear view. -
Change e-mail attachment name dynamic in Broadcaster
Hi,
I want to send an e-mail to multiple recipient by the setting "e-mail bursting" in broadcaster. Each e-mail has an attachment (pdf-document).
Is it possible, to change the name of the attachment dynamic, when sending the mail to the different recipients (example:
recipient 1: recipient1.pdf,
recipient 2: recipient2.pdf,
and so on)
I tried a solution with text variables, but it didn't work.
Regards,
Tim JaschikHi,
thanks for your fast answer. But my problem is to change the attachment name of the e-mail, not to schedule the e-mail.
So, is there no possibility to control the process which creates the attachment name?
Regards,
Tim -
E-mail Attachment Name Changes
I have a following problem with mail attachments: When I drag the attachment from my mail window onto my desktop, the attachment name changes to "unknown". So for example, "cat.jpg" would become "unknown.jpg". To make this a bit more complicated, the problem is a bit random and from this it follows that sometimes the file keeps the original and correct file name and sometimes it changes it. Also, this problem occurs only when I drag the attachment (which normally is image) from email window, but if I pull the attachment from above the message window, where it has a little arrow and it shows all the attachment icons, this problem does not happen. I am running Tiger and Mail 2.1. It would we really great if you could take a sec to answer this if you have any idea at all what this problem might to be. Thanks!
Best, RaunoHi Rauno, and a warm welcome to the forums!
Hmmm, since it's random, might try this...
Quit Mail, then In your home folder, try moving this +folder & file+ to the Desktop then reboot...
First, Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, then move these files to the Desktop.
/Users/YourUserName/Library/Caches/Mail
Move to the Desktop...
/Users/YourUserName/Library/Mail/Envelope Index
You can always move them back if it doesn't help.
Maybe you are looking for
-
Hi All, We have to talk to OSB11g proxy service which is created as Any Soap service (url: http://myosb.firmname.com:7001/osb-ws) I have java client applications which need to consume this proxy service built on top of OSB by providing the necessary
-
Add-ins that are being set to Inactive
This pertains to Outlook 2013 in this particular case, but may apply to other 2013 products. It's not just one add-in, but we have seen a few add-ins that go from a happy, Active add-in to a sad, unused Inactive add-in. If I have a user who's add-in
-
Creating PDF's from VISIO diagrams
Hi, We are storing the VISIO documents in a network folder, we want to give users a TCODE in SAP to view these VISIO documents based on some criteria. To do so we want to convert it into PDF so that they can't Edit it accidentally. Appreciate your Id
-
I do some video editing on my Mac Pro using Final Cut Pro. I've recently been trying to import video of personal DVDs and I've noticed the quality of the DVDs is dark and choppy. Just to be specific: I'm talking about simply popping in a DVD and play
-
My Page on the OSX Server with non-iphone
Hi, When I try to connect to an 'My Page' on the OSX server (10.6) with a non-iphone phone I don't get an login screen so I can't access my calender by phone. The phone I tried is from a minor brand called Nokia, I think they just sold just a couple