Problem with mail in database

I have a mail in database with a form called memo. In this memo form I have added a number of fields along with the standard “To”,“From”,“Subject” and “Body” fields which a staff member will update.

When I receive an email into the database I have a mail in agent that sets the “form” field to memo.

My problem is that when I change one of the new additional fields I have placed at the bottom of this form and then save the document the original document without the changes stays in the view while a new copy of the document is created with the changes that have been made.

If I create the document without using the mail in function the document can be changed and saved without duplicates.

Any help is greatly appreciated.

Paul.

Subject: Problem with mail in database

If your in-email is internal, then it will already arrive with a formname of ‘memo’. I would try renaming the form to something else. Are you sure that your view is not showing two instances of the same document, and not actually two documents?

DAve

Subject: RE: Problem with mail in database

Dave.Thanks for the response. 2 copies of the document is stored. Everytime I edit the document the fields a new copy is created. I can go back through all the previous documents and see the history of changes.

I have removed the agent as like you said it was unnecessary.

Subject: RE: Problem with mail in database

Posting your code here may help, stuff like that is usually very obvious.Is this triggered on new mail arrival?

If I were you, I’d change my code to rename the form to something like

Set doc.Form = “newMemo”

Set doc.Otherfields = whatever

Call doc.Save(true, false)

Can’t think of why its saving 2 copies though, old and new. Put your code up so we can have a shufti.

Dave

Subject: RE: Problem with mail in database

Dave,The plot thickens.

I have been able to find the source of the problem. The users mailing the documents to this database have a stationary set up that sends a copy of what they mail to this database.

If a document is mailed as a normal memo it works fine. If mailing to the stationary using a stationary we come accross the dupication problem.

Unfortunately there will be a lot of these standard mails leaving so we will have to use stationary.

Paul

Subject: Problem with mail in database

Have you got some kind of Versioning set up on the Form properties in the Memo form in your mail-in database?

Emily.