docs: public static MimeMessage newMimeMessage(InputStream inputStream) {
          try {
              return new MimeMessage(Session.getDefaultInstance(new Properties()), inputStream);
          } catch (MessagingException e) {
              throw new IllegalArgumentException("Can not generate mime message for input stream " + inputStream, e);
          }
      }