// package org.noreply.fancydress.directory; import java.io.*; import org.noreply.fancydress.directory.parser.*; import org.noreply.fancydress.directory.*; import org.noreply.fancydress.type3.*; import org.noreply.fancydress.misc.*; import org.noreply.fancydress.type3.routing.*; import org.noreply.fancydress.type3.mmtp.*; public class Main { static public void main(String argv[]) { /* Start the parser */ try { DirectoryParser parser = new DirectoryParser(new DirectoryLexer(new FileReader(argv[0]))); DirectoryMessage dm = (DirectoryMessage)parser.parse().value; Directory dir = new Directory(dm, false); PathSpec path = new PathSpec(dir,"*4,~1", false); RoutingSMTP destination = new RoutingSMTP("peter@palfrader.org"); String body = "FROM:Peter\n" + "SUBJECT:test fancydress\n" + "\n" + "blubb\n"; Message message = new Message(path, destination, body); message.send(); } catch (Exception e) { e.printStackTrace(); } } }