title: Notes Agent Full Text Index mail database on a remote server not working
body: <p>I would like to Full Text Index a mail database on a remote domino server over an notes agent.
  Unfortunately I get the following error message:</p>
  
  <blockquote>
    <p>Error 4080 - Could not FT index database
    [<em>NameOfDominoServer</em>!!<em>FolderName</em>\<em>DatabaseName.nsf</em>]</p>
  </blockquote>
  
  <p>My code is:</p>
  
  <pre><code>' build db connection
  Dim maildb As New NotesDatabase( "", "" )
  Dim cprofile As NotesDocument
  
  Call maildb.Open(varMailServer, varMailFile)
  
  ' check if maildb is ft indexed
  If Not(maildb.Isftindexed) Then
      Call maildb.CreateFTIndex(FT_INDEX_CASE_SENS+FT_INDEX_ATT+FT_INDEX_ENCRYPTED_FIELDS, True)
      db.Ftindexfrequency = 4
  End If 
  </code></pre>
  
  <p>What am I doing wrong or what do I have to take care about, that im able to FT index a database from a remote domino server?</p>
  
  <p>When the mail database is on the same domino server, as the agent is located, the FT Index is working very well.</p>