Package org.jasen.interfaces

Examples of org.jasen.interfaces.JasenMessage


     * @param ignored A list of plugin names which will be ignored during the scan.  May be null
     * @return The results of the scan as a JasenScanResult
     * @throws JasenException
     */
    public JasenScanResult scan(MimeMessage mm, float threshold, String[] ignored) throws JasenException {
        JasenMessage message = null;

        // Parse the message
        try
        {
            message = mimeParser.parse(mm);
View Full Code Here


    }

    private int train(File[] files, int type) throws InstantiationException, IllegalAccessException {

        int count = 0;
        JasenMessage message = null;
        MimeMessage mm = null;
        String[] tokens = null;
        ParserData data = null;

        int counter = 1;
View Full Code Here

            FileOutputStream fout = new FileOutputStream (output);
            FileInputStream fin = null;

            StandardMimeMessageParser parser = null;

            JasenMessage jm = null;

            PrintWriter writer = new PrintWriter (fout);

            for (int i = 0; i < files.length; i++)
            {

                if (files[i].isFile ())
                {
                    try
                    {
                        writer.println ("*************************************************");
                        writer.println ("File " + (i + 1) + ": " + files[i].getName ());
                        writer.println ("*************************************************");

                        fin = new FileInputStream(files[i]);

                        mail = new SMTPMessage (null, fin);

                        parser = new StandardMimeMessageParser();
                        jm = parser.parse(mail);

                        writer.println ("HTML: " + jm.getHtmlPart());

                        EmailTokenizer et = new EmailTokenizer ();
                        et.setIgnoreHeaders (true);

                        long time = System.currentTimeMillis ();
View Full Code Here

TOP

Related Classes of org.jasen.interfaces.JasenMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.