Authors field is not working with a mail-in into a teamroom

Mailing a document into the teamroom is basically working fine. The only problem is that the “From” field, which is defined as field type “authors” in the form “memo” is not working correctly. If the person whose name is in this field tries to open the document (with authors access to the database), he/she is not allowed to edit it.When the document has just been mailed in, the field has the flags “SUMMARY NAMES”. After somebody with editor rights has opened it and saved it, the flags are “SUMMARY READ/WRITE-ACCESS NAMES”, i.e. now it’s working correctly as authors field.

Has anybody an idea why the field looses the READ/WRITE-ACCESS flag during mail-in??

Subject: Authors field is not working with a mail-in into a teamroom

The FROM field is overrided by your server as the mail is going out - so you cannot “spoof” some other name.

If you have changed the field type to Authors in your mail database design, this is probably being lost when the server updates the From value.

Subject: RE: Authors field is not working with a mail-in into a teamroom

@Graham: I’m using the ExtR6Mail template of 6.5.3 without changes and as far as I can see, the from field is of type authors (computed when composed). But you are right in that it looses this flag once the server sends the mail. Thanks for the info.

Subject: Authors field is not working with a mail-in into a teamroom

The field isn’t losing the authors flag when it’s mailed in - from is only a names field in mail. You’ll need to have an agent modify the field when the message is received.

Subject: Or just add another Computed Authors field to the form in the source db that computed to the From field.

If that doesn’t mess up the source db, of course.

Subject: RE: Authors field is not working with a mail-in into a teamroom

Hi Peter, as posted to Grahams response, you are right that it arrives as a names field.

I have, however, not to much experience in programming agents, so my trials failed miserably (I tried to use uidoc.refresh and uidoc.save to recalculate the fields, which resulted in “Document Command not available” ).

So, if you could give me an example (or tell where to find it) it would be highly appreciated.

Subject: RE: Authors field is not working with a mail-in into a teamroom

create a lotusscript agent in the database set to run after new mail has arrived, and do something like this:

dim session as new notessession

dim dc as notesdocumentcollection

dim doc as notesdocument

dim db as notesdatabase

dim ni as notesitem

set db = session.currentdatabase

set dc = db.unprocessedocuments

set doc = dc.getfirstdocument

while not (doc is nothing)

set ni = doc.getfirstitem(“from”)

ni.isauthors = true

call doc.save(true,false)

call session.updateprocesseddoc(doc)

set doc = dc.getnextdocument(doc)

wend

Subject: Thanks, that worked great!