Attachment name problem

I have a mail-in application database that will receive a mail-in document from the notes mailbox, the email may contain an attachment.

Now, the problem is that when I open mail-in document with an attachment with a customized form, after I edit and save the document, the attachment file name will become ATTXXXXX, with a prefix “ATT”. Even I just open the document in read mode, there is one more field “$FILE” found in the document properties.

Below is the three case of the $FILE field.

Case1: document properties of $FILE field catptured in a view.


Field Name: $FILE

Data Type: Attached Object

Data Length: 41 bytes

Seq Num: 1

Dup Item ID: 0

Field Flags: ATTACH SIGN SEAL SUMMARY

Object Type: File

Object ID: 00000342

Object Length: 62836

File Name: 1.jpg

Flags:

Host: MSDOS/OS2

Compression Type: NONE

Encoding Type: BASE64

File Attributes: RW PUBLIC

File Size: 62836

File Created: 2007/01/31 下午 06:38:04

File Modified: 2007/01/31 下午 06:38:04

Case2: field value of $FILE in document read mode, one more $FILE field found in the document.


Field Name: $FILE

Data Type: Attached Object

Data Length: 41 bytes

Seq Num: 1

Dup Item ID: 0

Field Flags: ATTACH SIGN SEAL SUMMARY

Object Type: File

Object ID: 00000342

Object Length: 62836

File Name: 1.jpg

Flags:

Host: 2304

Compression Type: NONE

Encoding Type: BASE64

File Attributes: RW PUBLIC

File Size: 62836

File Created: 2007/01/31 下午 06:38:04

File Modified: 2007/01/31 下午 06:38:04

AND

Field Name: $FILE

Data Type: Attached Object

Data Length: 44 bytes

Seq Num: 1

Dup Item ID: 0

Field Flags: ATTACH SIGN SEAL SUMMARY

Object Type: File

Object ID: 00000000

File Name: ATT8Z9UJ

Flags: MIME

Host: UNKNOWN

Compression Type: NONE

Encoding Type:

File Attributes: RW PUBLIC

File Size: 62836

File Created: 2007/01/31 下午 06:42:41

File Modified: 2007/01/31 下午 06:42:41

Case3: field value of $FILE after the document is edited and saved, the filename become “ATTxxxxx”


Field Name: $FILE

Data Type: Attached Object

Data Length: 44 bytes

Seq Num: 2

Dup Item ID: 0

Field Flags: ATTACH SIGN SEAL SUMMARY

Object Type: File

Object ID: 00000346

Object Length: 45918

File Name: ATTWWRPK

Flags:

Host: UNKNOWN

Compression Type: NONE

Encoding Type:

File Attributes: RW PUBLIC

File Size: 45918

File Created: 2007/01/31 下午 06:45:10

File Modified: 2007/01/31 下午 06:45:10

Actually, I have tried to remove all unnecessary notes item fields in the mail-in document, and rename the form name, but the problem still exist.

Anyone have idea on above problem, I just want to preserve the original file name instead of my last approach (Detach the attachment and attach it again)…Many thanks.

Subject: Attachment name problem

Best guess: has something to do how you send the mail Mime or Richtext - check your settings on all the involved Notes setups.

I am dong something similar in a DB and did not run into that issue…

PS: how you create the attachment in the first place - not clear in your post?

One thing I would do is to have a look into the DB with ScanEZ (free in read mode) from www.ytria.com and have a look what is really in the document. It help me a lot some time ago investigating a signature issue, which I could not see in the properties.

Servus

Robert