@@ -107,24 +107,24 @@ public static EmailPopulatingBuilder mimeMessageToEmailBuilder(@NotNull final Mi
107107 /**
108108 * Delegates to {@link #outlookMsgToEmail(String, Pkcs12Config)}.
109109 *
110- * @param msgFile The content of an Outlook (.msg) message from which to create the {@link Email}.
110+ * @param msgData The content of an Outlook (.msg) message from which to create the {@link Email}.
111111 */
112112 @ SuppressWarnings ("unused" )
113113 @ NotNull
114- public static Email outlookMsgToEmail (@ NotNull final String msgFile ) {
115- return outlookMsgToEmail (msgFile , null );
114+ public static Email outlookMsgToEmail (@ NotNull final String msgData ) {
115+ return outlookMsgToEmail (msgData , null );
116116 }
117117
118118 /**
119- * @param msgFile The content of an Outlook (.msg) message from which to create the {@link Email}.
119+ * @param msgData The content of an Outlook (.msg) message from which to create the {@link Email}.
120120 * @param pkcs12Config Private key store for decrypting S/MIME encrypted attachments
121121 * (only needed when the message is encrypted rather than just signed).
122122 */
123123 @ SuppressWarnings ("deprecation" )
124124 @ NotNull
125- public static Email outlookMsgToEmail (@ NotNull final String msgFile , @ Nullable final Pkcs12Config pkcs12Config ) {
126- checkNonEmptyArgument (msgFile , "msgFile" );
127- EmailFromOutlookMessage result = ModuleLoader .loadOutlookModule ().outlookMsgToEmailBuilder (msgFile , new EmailStartingBuilderImpl ());
125+ public static Email outlookMsgToEmail (@ NotNull final String msgData , @ Nullable final Pkcs12Config pkcs12Config ) {
126+ checkNonEmptyArgument (msgData , "msgFile" );
127+ EmailFromOutlookMessage result = ModuleLoader .loadOutlookModule ().outlookMsgToEmailBuilder (msgData , new EmailStartingBuilderImpl ());
128128 return decryptAttachments (result .getEmailBuilder (), result .getOutlookMessage (), pkcs12Config )
129129 .buildEmail ();
130130 }
@@ -372,9 +372,9 @@ public static MimeMessage outlookMsgToMimeMessage(@NotNull final String msgFile)
372372 * @return Result of {@link #outlookMsgToEmail(String, Pkcs12Config)} and {@link #emailToMimeMessage(Email)}.
373373 */
374374 @ NotNull
375- public static MimeMessage outlookMsgToMimeMessage (@ NotNull final String msgFile , @ Nullable final Pkcs12Config pkcs12Config ) {
376- checkNonEmptyArgument (msgFile , "outlookMsgData" );
377- return emailToMimeMessage (outlookMsgToEmail (msgFile , pkcs12Config ));
375+ public static MimeMessage outlookMsgToMimeMessage (@ NotNull final String msgData , @ Nullable final Pkcs12Config pkcs12Config ) {
376+ checkNonEmptyArgument (msgData , "outlookMsgData" );
377+ return emailToMimeMessage (outlookMsgToEmail (msgData , pkcs12Config ));
378378 }
379379
380380 /**
@@ -535,9 +535,9 @@ public static String outlookMsgToEML(@NotNull final String msgFile) {
535535 * @return Result of {@link #outlookMsgToEmail(String, Pkcs12Config)} and {@link #emailToEML(Email)}
536536 */
537537 @ NotNull
538- public static String outlookMsgToEML (@ NotNull final String msgFile , @ Nullable final Pkcs12Config pkcs12Config ) {
539- checkNonEmptyArgument (msgFile , "outlookMsgData" );
540- return emailToEML (outlookMsgToEmail (msgFile , pkcs12Config ));
538+ public static String outlookMsgToEML (@ NotNull final String msgData , @ Nullable final Pkcs12Config pkcs12Config ) {
539+ checkNonEmptyArgument (msgData , "outlookMsgData" );
540+ return emailToEML (outlookMsgToEmail (msgData , pkcs12Config ));
541541 }
542542
543543 /**
0 commit comments