Messaging/Email: Add Convert_ToEml
This commit is contained in:
parent
1f5e52db7b
commit
1833d07397
@ -391,14 +391,18 @@ Public Class Email2
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Private Function MaybeConvert_MsgToEml(pEmailFileName As String) As String
|
||||
Dim oInfo As New FileInfo(pEmailFileName)
|
||||
Public Function Convert_ToEml(pFilePath As String) As String
|
||||
Return MaybeConvert_MsgToEml(pFilePath)
|
||||
End Function
|
||||
|
||||
Private Function MaybeConvert_MsgToEml(pEmailFilePath As String) As String
|
||||
Dim oInfo As New FileInfo(pEmailFilePath)
|
||||
|
||||
If oInfo.Extension.ToUpper = ".EML" Then
|
||||
Return pEmailFileName
|
||||
Return pEmailFilePath
|
||||
|
||||
ElseIf oInfo.Extension.ToUpper = ".MSG" Then
|
||||
Return DoConvertMsgToEmlFile(pEmailFileName)
|
||||
Return DoConvertMsgToEmlFile(pEmailFilePath)
|
||||
|
||||
Else
|
||||
Return Nothing
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user