Examples >

Read Emails

/*
 * Copyright (c) 2006-2018 North Concepts Inc.  All rights reserved.
 * Proprietary and Confidential.  Use is subject to license terms.
 *
 * http://northconcepts.com/data-pipeline/licensing/
 *
 */
package com.northconcepts.datapipeline.examples.cookbook;

import com.northconcepts.datapipeline.core.DataReader;
import com.northconcepts.datapipeline.core.DataWriter;
import com.northconcepts.datapipeline.core.StreamWriter;
import com.northconcepts.datapipeline.email.EmailReader;
import com.northconcepts.datapipeline.email.MailStore;
import com.northconcepts.datapipeline.job.Job;

public class ReadEmails {

    public static void main(String[] args) {
        DataReader reader = new EmailReader(MailStore.POP3, "pop3.example.com", "user", "password");
        DataWriter writer = new StreamWriter(System.out);
        
        Job.run(reader, writer);
    }

}
Mobile Analytics