Edit C:\Users\Administrator\Desktop\Back\galaxie - Copy\cti\C3T\fr\c3t\mail\MailUtil.class
Êþº¾ 2Ý ! "# $ "% "& '( ) *+ ,- ./0 .1 2 .3 4565789: '; +< +=> +? ©@5ABCBD E = ?5F5GHI ;J :K L M N ' O PQ RS T UVW RXYZ +L +N5[ \] ^ _`a bcdef ghij ]J k ßl ßm no ßp qr s tu tv w tx yz{| m} m~ m? m???? ???? ß????? ?? ?v ?u? ?? ?? ?? R? m?? R?? ?? ?? ?? ? ?¡¢£ ?¤¥¦ § ¨© ª« ¬ ® ¡?5A¯ °± ²³ ´µ ¶ ·¸ ¹º»¼½¶½· ©¾ ©¿ ê¶À Á Âà ?Ä êŠƽÅÇ ßÈ ÉÊËÌÍ Î Ï Ð ÑÒÓ KÔ ÉJ ?Õ yÖ ×ؽÙÚÛ Ü ßݽ¹ mÞß à½á yâ ã äå æçèé Ýêëì5íî.ï ðñ ò Ñó ßôõ êö '÷ø ùú ûü ûýþ ò ÿ ÿ ' ÿ ÿ ò? ß Ñ R : +, R InnerClasses MessageAsHtmlPage logger Lorg/apache/log4j/Logger; DEFAULT_TIMEOUT Ljava/lang/String; ConstantValue MAIL_POP3_TIMEOUT MAIL_POP3_CONNECTIONTIMEOUT MAIL_SMTP_TIMEOUT MAIL_SMTP_CONNECTIONTIMEOUT <init> ()V Code LineNumberTable LocalVariableTable this Lfr/c3t/mail/MailUtil; createMimeMessage ?(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/io/File; from to Ljava/util/List; cc bcc subject body attachedFiles LocalVariableTypeTable $Ljava/util/List<Ljava/lang/String;>; Ljava/util/List<Ljava/io/File;>; Exceptions Signature Ò(Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;)Ljava/io/File; ?(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/lang/String;)Ljava/io/File; dispositionNotification ä(Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;Ljava/lang/String;)Ljava/io/File; ?(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/io/File;)Ljava/io/File; destinationFile Ljava/io/File; à(Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;Ljava/io/File;)Ljava/io/File; ¦(Ljava/lang/String;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/io/File;Ljava/lang/String;)Ljava/io/File; StackMapTableëë ò(Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/util/List<Ljava/lang/String;>;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;Ljava/io/File;Ljava/lang/String;)Ljava/io/File; ?(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;)Ljava/io/File; Ljavax/mail/Address; [Ljavax/mail/Address; §(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;)Ljava/io/File; ¬(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;[Ljavax/mail/Address;)Ljava/io/File; ¼(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;[Ljavax/mail/Address;)Ljava/io/File; ¥(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/io/File;)Ljava/io/File; µ(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;Ljava/io/File;)Ljava/io/File; º(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/io/File;[Ljavax/mail/Address;)Ljava/io/File; Ê(Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;Ljava/io/File;[Ljavax/mail/Address;)Ljava/io/File; saveMimeMessage Æ(Ljavax/mail/internet/MimeMessage;Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/io/File;)Ljava/io/File; mimeMessage !Ljavax/mail/internet/MimeMessage; Ö(Ljavax/mail/internet/MimeMessage;Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;Ljava/io/File;)Ljava/io/File; Û(Ljavax/mail/internet/MimeMessage;Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List;Ljava/io/File;[Ljavax/mail/Address;)Ljava/io/File; notificationAddress mimeBodyPart "Ljavax/mail/internet/MimeBodyPart; i$ Ljava/util/Iterator; multipart Ljavax/mail/Multipart; messageBodyPart relatedParts bodyContainsHtml Z file e Ljavax/mail/MessagingException; Ljava/io/IOException; 4Ljava/util/List<Ljavax/mail/internet/MimeBodyPart;>;¯I¸;VY ë(Ljavax/mail/internet/MimeMessage;Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;[Ljavax/mail/Address;Ljava/lang/String;Ljava/lang/String;Ljava/util/List<Ljava/io/File;>;Ljava/io/File;[Ljavax/mail/Address;)Ljava/io/File; attachFiles )(Ljavax/mail/Multipart;Ljava/util/List;)V parts 9(Ljavax/mail/Multipart;Ljava/util/List<Ljava/io/File;>;)V toBodyParts "(Ljava/util/List;)Ljava/util/List; V(Ljava/util/List<Ljava/io/File;>;)Ljava/util/List<Ljavax/mail/internet/MimeBodyPart;>; sendMail '(Ljava/lang/String;Ljava/lang/String;)I filePath smtpServer #(Ljava/io/File;Ljava/lang/String;)I emailFile G(Ljava/io/File;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I properties Ljava/util/Properties; session Ljavax/mail/Session; message port I index transport Ljavax/mail/Transport; Ljava/io/FileNotFoundException; userName password fileInputStream Ljava/io/FileInputStream;j{ getEmails H(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/List; popServer X(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/List<Ljava/io/File;>; I(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/List; i messages [Ljavax/mail/Message; Ljava/lang/Exception; useSSL store Ljavax/mail/Store; folder Ljavax/mail/Folder; downloaded!"?¢ Y(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/util/List<Ljava/io/File;>; getMessageFromFile ((Ljava/lang/String;)Ljavax/mail/Message; $(Ljava/io/File;)Ljavax/mail/Message; $(Ljava/net/URL;)Ljavax/mail/Message; url Ljava/net/URL; +(Ljava/io/InputStream;)Ljavax/mail/Message; inputStream Ljava/io/InputStream; addressToString ((Ljavax/mail/Address;)Ljava/lang/String; address addressListToString $(Ljava/util/List;)Ljava/lang/String; it stringBuilder Ljava/lang/StringBuilder; addresses +Ljava/util/Iterator<+Ljavax/mail/Address;>; 'Ljava/util/List<+Ljavax/mail/Address;>;| ;(Ljava/util/List<+Ljavax/mail/Address;>;)Ljava/lang/String; addressesToString )([Ljavax/mail/Address;)Ljava/lang/String; addAttachedFiles 4(Ljavax/mail/internet/MimeMessage;Ljava/util/List;)I D(Ljavax/mail/internet/MimeMessage;Ljava/util/List<Ljava/io/File;>;)I getBody %(Ljavax/mail/Part;Z)Ljavax/mail/Part; j bodyMultiPart bodyPart Ljavax/mail/BodyPart; count Ljavax/mail/Part; preferHtmlõ getBodyAsString )(Ljavax/mail/Message;Z)Ljava/lang/String; Ljavax/mail/Message;#$ isHtml (Ljavax/mail/Part;)Z part getAttachedFiles #(Ljavax/mail/Part;)Ljava/util/List; fileName 7(Ljavax/mail/Part;)Ljava/util/List<Ljava/lang/String;>; getAttachedFile 3(Ljavax/mail/Part;Ljava/lang/String;)Ljava/io/File; currentFileName saveMessage 2(Ljavax/mail/Message;Ljava/io/File;)Ljava/io/File; fileOutputStream Ljava/io/FileOutputStream;Ô decodeFileName &(Ljava/lang/String;)Ljava/lang/String; isAttachment disposition saveAttachedFile A(Ljavax/mail/Part;Ljava/lang/String;Ljava/io/File;)Ljava/io/File; contentType directory suffix tempFile displayAttachedFile %(Ljava/awt/Component;Ljava/io/File;)V Ljava/net/MalformedURLException; component Ljava/awt/Component; attachedFileè createInternetAddresses 8(Ljava/util/List;)[Ljavax/mail/internet/InternetAddress; internetAddresses 7Ljava/util/List<Ljavax/mail/internet/InternetAddress;>; L(Ljava/util/List<Ljava/lang/String;>;)[Ljavax/mail/internet/InternetAddress; mimeMessageToHtml K(Ljavax/mail/internet/MimeMessage;)Lfr/c3t/mail/MailUtil$MessageAsHtmlPage; parentPart parent #Ljavax/mail/internet/MimeMultipart; cid pattern Ljava/util/regex/Pattern; matcher Ljava/util/regex/Matcher; stringBuffer Ljava/lang/StringBuffer; bodyFile filesDirectory relatedPart8%&þ createRelated 6(Ljava/lang/String;Ljava/util/List;)Ljava/lang/String; id Z(Ljava/lang/String;Ljava/util/List<Ljavax/mail/internet/MimeBodyPart;>;)Ljava/lang/String; <clinit> SourceFile MailUtil.java &= #javax/mail/internet/InternetAddress'òó&M()&O java/io/FileQV javax/mail/internet/MimeMessage java/util/Properties*+,-./123452627' java/util/Date89:¿ Disposition-Notification-To;< Return-Receipt-To=>? java/util/LinkedList@? AâtuBC>D !javax/mail/internet/MimeMultipart mixed related javax/mail/internet/MimeBodyPart text/htmlEF ISO-8859-1G<HIJKLDMNEOPQRS javax/activation/DataHandler javax/activation/FileDataSourceTUVWXYZ'pq Email has no content ?![\]^ ÜÝ javax/mail/MessagingException cannot create mime message ?!\_ java/io/IOException cannot save mime message ?!`abcdw{w} mail.smtp.starttls.enable trueef mail.smtp.ssl.trust * mail.smtp.connectiontimeout 60000ghi mail.smtp.timeout java/io/FileInputStreamjklmnopqmrst smtpsuvwvxyz{|}~ java/io/FileNotFoundException java/lang/StringBuilder cannot find file ???? ?!:Y cannot send message to , user ?? mail.pop3.connectiontimeout mail.pop3.timeout pop.gmail.com?? mail.pop3.ssl.enable mail.pop3.starttls.enable mail.pop3.ssl.trust pop3s?? pop3! INBOX??"?????D?? email(s) received on pop ?] javax/mail/Flags????#???D~? java/lang/Exception cannot close folder ?!~ cannot close store ?! cannot get emails on pop ¨ª¨® cannot get file ?? cannot open stream to ?+ !cannot parse message in stream ?!?Y javax/mail/Address±² , ???´µ multipart/*?? N javax/mail/Multipart¡Y 'cannot add attached files to message ?! cannot get message content ?! multipart/alternative$¢Q£¤ text/plainÃÄãÓ cannot get body ?! cannot get mime type ?!¥Yáâ cannot get attached files ?!¦aåÚ cannot get attached file from email ?! email .tmp§¨© ªD«¬ cannot create file java/io/FileOutputStream®¯~¯°±â²Y attachment inlineåæ³l?´ attached§µ¶?·¸¹º»¼½¾¿À java/net/MalformedURLException java/util/ArrayList? java/lang/String invalid email address : Á &[Ljavax/mail/internet/InternetAddress; .htmlÃÄ _filesÅÆÇÈ javax/mail/BodyPartÉÊÉË multipart/relatedÒÓ (?i)src=\s*"cid:([^"]*)"%ÌÍÿÎ java/lang/StringBuffer&ÏDÐn < >£Ñ src=" "ÒÓ unknownÔÕ 1(?i)<meta\s*http-equiv\s*=\s*"*content-type[^>]*>Öi×Å &fr/c3t/mail/MailUtil$MessageAsHtmlPageØ src=\s*"([^"]+)" java/net/URL malformed url in message ?!Ù_ src="cid:fileÚ Content-ID <file src="" fr/c3t/mail/MailUtilÛÜ java/lang/Object fr/c3t/mail/MailUtil$1 java/util/List java/util/Iterator javax/mail/Session javax/mail/Transport java/lang/Throwable javax/mail/Store javax/mail/Folder javax/mail/Message javax/mail/Part java/util/regex/Pattern java/util/regex/Matcher (Ljava/lang/String;)V parse :(Ljava/lang/String;)[Ljavax/mail/internet/InternetAddress; getInstance ,(Ljava/util/Properties;)Ljavax/mail/Session; (Ljavax/mail/Session;)V setFrom (Ljavax/mail/Address;)V javax/mail/Message$RecipientType RecipientType TO "Ljavax/mail/Message$RecipientType; setRecipients :(Ljavax/mail/Message$RecipientType;[Ljavax/mail/Address;)V CC BCC setSubject setSentDate (Ljava/util/Date;)V toString setHeader '(Ljava/lang/String;Ljava/lang/String;)V fr/c3t/util/Strings isEmpty (Ljava/lang/String;)Z containsHtml toHtmlPage addAll (Ljava/util/Collection;)Z ()Z setContent '(Ljava/lang/Object;Ljava/lang/String;)V setText addBodyPart (Ljavax/mail/BodyPart;)V iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; (Ljavax/mail/Multipart;)V size ()I get (I)Ljava/lang/Object; (Ljava/io/File;)V (Ljavax/activation/DataSource;)V setDataHandler !(Ljavax/activation/DataHandler;)V getName ()Ljava/lang/String; setFileName org/apache/log4j/Logger error (Ljava/lang/Object;)V saveChanges *(Ljava/lang/Object;Ljava/lang/Throwable;)V add (Ljava/lang/Object;)Z java/util/Collections emptyList ()Ljava/util/List; put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java/lang/System getProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ,(Ljavax/mail/Session;Ljava/io/InputStream;)V indexOf (I)I substring (I)Ljava/lang/String; java/lang/Integer parseInt (Ljava/lang/String;)I (II)Ljava/lang/String; getTransport ()Ljavax/mail/Transport; *(Ljava/lang/String;)Ljavax/mail/Transport; connect 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V :(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;)V getAllRecipients ()[Ljavax/mail/Address; sendMessage ,(Ljavax/mail/Message;[Ljavax/mail/Address;)V fr/c3t/io/StreamUtil close (Ljava/io/InputStream;)V append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; startsWith getStore &(Ljava/lang/String;)Ljavax/mail/Store; getFolder '(Ljava/lang/String;)Ljavax/mail/Folder; open (I)V getMessages ()[Ljavax/mail/Message; isDebugEnabled (I)Ljava/lang/StringBuilder; debug javax/mail/Flags$Flag Flag DELETED Ljavax/mail/Flags$Flag; (Ljavax/mail/Flags$Flag;)V setFlags (Ljavax/mail/Flags;Z)V isOpen (Z)V openStream ()Ljava/io/InputStream; getDefaultInstance toUnicodeString java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; isMimeType getContent getContentType getCount getBodyPart (I)Ljavax/mail/BodyPart; getFileName equals createTempFile 4(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File; deleteOnExit isFile fr/c3t/io/FileUtil replaceWithNewFile (Ljava/io/File;)Z writeTo (Ljava/io/OutputStream;)V javax/mail/internet/MimeUtility decodeWord getDisposition lastIndexOf (C)Ljava/lang/StringBuilder; B(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File; getInputStream copy .(Ljava/io/InputStream;Ljava/io/OutputStream;)V toURI ()Ljava/net/URI; java/net/URI toURL ()Ljava/net/URL; fr/c3t/swing/SwingUtil showDocument %(Ljava/awt/Component;Ljava/net/URL;)V toArray (([Ljava/lang/Object;)[Ljava/lang/Object; getParentFile ()Ljava/io/File; #(Ljava/io/File;Ljava/lang/String;)V mkdirs valueOf &(Ljava/lang/Object;)Ljava/lang/String; getParent ()Ljavax/mail/Multipart; ()Ljavax/mail/Part; compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher; find group )(Ljava/lang/String;)Ljavax/mail/BodyPart; appendReplacement E(Ljava/lang/StringBuffer;Ljava/lang/String;)Ljava/util/regex/Matcher; appendTail 2(Ljava/lang/StringBuffer;)Ljava/lang/StringBuffer; replaceAll save I(Ljava/lang/String;Ljava/io/File;Ljava/io/File;Lfr/c3t/mail/MailUtil$1;)V warn (Ljava/net/URL;)V getLogger ,(Ljava/lang/Class;)Lorg/apache/log4j/Logger; ! Z y x \ Y ) ! 3 *· ± "