Fix LastName mapping and bug where forwarding was enabled without forwarding address in hMailServer5

This commit is contained in:
JoeDavis 2015-01-30 13:37:22 -06:00
parent 7277dbf947
commit a0fe5fdc21

View file

@ -377,7 +377,7 @@ Public Class hMailServer5
objAccount.Password = mailbox.Password
objAccount.MaxSize = mailbox.MaxMailboxSize
objAccount.PersonFirstName = mailbox.FirstName
objAccount.PersonLastName = mailbox.FirstName
objAccount.PersonLastName = mailbox.LastName
objAccount.SignatureEnabled = mailbox.SignatureEnabled
objAccount.SignaturePlainText = mailbox.Signature
objAccount.SignatureHTML = mailbox.SignatureHTML
@ -397,10 +397,13 @@ Public Class hMailServer5
'set forwarding address
If mailbox.ForwardingEnabled Then
If Not String.IsNullOrEmpty(mailbox.ForwardingAddresses(0)) Then
'Log.WriteInfo("forwarding enabled on creation of email account")
objAccount.ForwardAddress = mailbox.ForwardingAddresses(0)
objAccount.ForwardEnabled = True
objAccount.ForwardKeepOriginal = mailbox.RetainLocalCopy
End If
End If
objAccount.Save()