/ Forums / Advansys Formativ / Creating Solutions with Formativ / Code for dragging an email into a folder / Reply To: Code for dragging an email into a folder

#7931
Support 3
Participant

GroupWise does not expose all methods on moving messages. See the Object API (http://developer.novell.com/documentation/gwobjapi/index.html?gwobjenu/data/h7ikbsqg.html) for the methods to move messages. The code below should move the selected message to cabinet folder.

  
  dim oMsg
  dim oSourceFolder

  set oMsg = client.clientstate.commandmessage

  ' Get the source folder
  set oSourceFolder = oMsg.EnclosingFolders.item(1)

  ' Move the message
  call oSourceFolder.messages.move(oMsg, groupwise.account.cabinet.messages)

  set oSourceFolder = nothing
  set oMsg = nothing

On a separate note, we have recently release Filing Assistant (http://advansyscorp.com/formativ_sol_filing_assistant.htm) solution to quickly locate folder and move selected messages.

Hope this helps.

Regards,
Advansys Support