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