code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
package org.teremail.mailbox; /** * Data object for a folder that is stored in the database. * * @author Michael Barker * */ public class FolderDO { private final String id; private Path path; private MailboxDO mailbox; private String name; private final int version; public FolderDO(Str...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/mailbox/FolderDO.java
Java
lgpl
1,148
package org.teremail.mailbox; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.google.inject.BindingAnnotation; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.PARAME...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/mailbox/Physical.java
Java
lgpl
377
package org.teremail.mailbox; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import com.google.inject.BindingAnnotation; @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.PARAME...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/mailbox/Logical.java
Java
lgpl
376
package org.teremail; import java.util.Arrays; import java.util.List; import org.teremail.mailbox.DBMailboxDAO; import org.teremail.mailbox.DBMessageDAO; import org.teremail.schema.Table; import org.teremail.store.paged.DBBlobFactory; public class Schema { public final static List<Table> ALL_TABLES = Arrays.asL...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/Schema.java
Java
lgpl
560
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/util/DotUnstuffingCopier.java
Java
lgpl
6,718
package org.teremail.util; import java.util.HashMap; import java.util.Map; /** * Simple cache for items that need to be stored in a thread local object. * Useful for things like date formats that aren't thread safe. * * @author Michael Barker * * @param <K> The key into the cache * @param <V> The value to be ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/util/ThreadLocalCache.java
Java
lgpl
757
package org.teremail.util; import java.io.ByteArrayOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.nio.charset.Charset; public class IO { public final static Charset US_ASCII = Charset.forName("US-ASCII"); pub...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/util/IO.java
Java
lgpl
1,791
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/util/Copier.java
Java
lgpl
2,014
package org.teremail.util; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; /** * Utility class for handling formatting of various objects, including dates, * numbers etc. * * @author Michael Barker * */ public class Formats { private static ThreadLocalCache<...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/util/Formats.java
Java
lgpl
1,367
package org.teremail.util; import java.sql.Connection; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DB { public final static void close(Connection cn) { if (cn != null) { try { cn.close(); } catch (SQLException e)...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/util/DB.java
Java
lgpl
1,113
package org.teremail.util; import java.io.IOException; public class PrematureEOFException extends IOException { private static final long serialVersionUID = 1L; public PrematureEOFException(String message) { super(message); } }
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/util/PrematureEOFException.java
Java
lgpl
253
package org.teremail; import java.io.FileNotFoundException; import java.io.IOException; import com.google.inject.Injector; public class Grapher { public static void createGraph(Injector i) throws FileNotFoundException, IOException { // Injector injector = Guice.createInjector(new GrapherModul...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/Grapher.java
Java
lgpl
582
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., and individual contributors as * indicated by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/StreamCloseListener.java
Java
lgpl
1,305
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., and individual contributors as * indicated by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/StreamCloseEvent.java
Java
lgpl
1,399
package org.teremail.store.paged; public interface BlobFactory { Blob createBlob(); Blob getBlob(String id); void init(); }
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/BlobFactory.java
Java
lgpl
146
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/PagedStore.java
Java
lgpl
5,253
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/MemoryBlob.java
Java
lgpl
3,211
package org.teremail.store.paged; import static org.teremail.schema.DBTypes.INT4; import static org.teremail.schema.DBTypes.INT8; import static org.teremail.schema.DBTypes.VARCHAR; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util....
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/DBBlobFactory.java
Java
lgpl
7,843
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/PagedOutputStream.java
Java
lgpl
4,115
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/PagedInputStream.java
Java
lgpl
4,957
package org.teremail.store.paged; public interface Blob { public abstract void addPage(byte[] bs); public abstract byte[] getPage(int i); public abstract int getPageSize(); public abstract long getLength(); public abstract byte[] getLastPage(); public abstract void replaceLastPage(byte[] ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/Blob.java
Java
lgpl
409
package org.teremail.store.paged; import java.util.ArrayList; import java.util.List; import java.util.concurrent.ConcurrentHashMap; public class MemoryBlobFactory implements BlobFactory { private static final int PAGE_SIZE = 1024; ConcurrentHashMap<String,List<byte[]>> blobs = new ConcurrentHashMap<...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/paged/MemoryBlobFactory.java
Java
lgpl
976
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/StoreClerk.java
Java
lgpl
1,606
package org.teremail.store; import java.util.Iterator; public class Strings { /** * Joins a collection using a delimiter. * * @param os * @param d * @return */ public static String join(Iterable<? extends Object> os, String d) { StringBuilder sb = new StringBuilder(); ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/Strings.java
Java
lgpl
1,086
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., and individual contributors as * indicated by the @authors tag. See the copyright.txt in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or modify it * ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/ObjectUtil.java
Java
lgpl
1,985
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/WrappedInputStream.java
Java
lgpl
4,048
/* * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your option) any later version. * * This software is distributed in the hope that it will be u...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/jdbc3/JDBC3Store.java
Java
lgpl
4,595
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/jdbc3/SQLConfig.java
Java
lgpl
1,602
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/jdbc3/DBCloseListener.java
Java
lgpl
1,637
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/Store.java
Java
lgpl
1,632
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/StoreException.java
Java
lgpl
2,233
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/WrappedOutputStream.java
Java
lgpl
2,340
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/store/StoreItem.java
Java
lgpl
2,155
package org.teremail; import java.lang.management.ManagementFactory; import java.util.Properties; import java.util.concurrent.Callable; import java.util.logging.Level; import java.util.logging.Logger; import javax.management.MBeanServer; import javax.sql.DataSource; import org.apache.lucene.store.Directory; import o...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/Main.java
Java
lgpl
4,807
package org.teremail.common; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Thin wrapper around sl4j that adds support for formatted logging. * * @author Michael Barker * */ public class Log { private Logger dLog; protected Log(Logger dLog) { this.dLog = dLog; } ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/common/Log.java
Java
lgpl
3,081
package org.teremail.smtp; import static org.teremail.smtp.SessionAttributes.DATA_MODE; import static org.teremail.smtp.SessionAttributes.RECIPIENTS; import static org.teremail.smtp.SessionAttributes.SENDER; import static org.teremail.smtp.commands.SMTPCommand.EMPTY; import java.util.Collection; import java.util.Link...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/MinaSMTPSession.java
Java
lgpl
2,915
package org.teremail.smtp; public class SessionAttributes { public final static String DATA_MODE = "foomail.dataMode"; public final static String SENDER = "foomail.sender"; public final static String RECIPIENTS = "foomail.recipients"; public static final String CONSUMER = "foomail.consumer"; }
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/SessionAttributes.java
Java
lgpl
314
package org.teremail.smtp; import org.teremail.delivery.Exchange; public class MessageDataConsumerFactory implements DataConsumerFactory { private final Exchange exchange; public MessageDataConsumerFactory(Exchange exchange) { this.exchange = exchange; } public MessageDataConsumer create(SM...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/MessageDataConsumerFactory.java
Java
lgpl
409
package org.teremail.smtp; public interface DataConsumerFactory { public DataConsumer create(SMTPSession session); }
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/DataConsumerFactory.java
Java
lgpl
124
package org.teremail.smtp; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.charset.Charset; import org.apache.mina.common.IoAcceptor; import org.apache.mina.common.IoFilter; import org.apache.mina.common.IoHandler; import org.apache.mina.filter.LoggingFilter; import org.apache.mina.filt...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/SMTPService.java
Java
lgpl
2,120
package org.teremail.smtp; public class UnknownCommandException extends Exception { private static final long serialVersionUID = 1L; private final String name; public UnknownCommandException(String name) { super("The command '" + name + "' is not known"); this.name = name; } ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/UnknownCommandException.java
Java
lgpl
376
package org.teremail.smtp; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.teremail.smtp.commands.DATACommand; import org.teremail.smtp.commands.EHLOCommand; import org.teremail.smtp.commands.EXPNCommand; import org.teremail.smtp.commands.HELOCommand; ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/SMTPCommandParser.java
Java
lgpl
2,448
package org.teremail.smtp; import static org.teremail.smtp.SessionAttributes.DATA_MODE; import org.apache.mina.common.IdleStatus; import org.apache.mina.common.IoFilter; import org.apache.mina.common.IoFilterAdapter; import org.apache.mina.common.IoFilterChain; import org.apache.mina.common.IoSession; /** * A filte...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/ConditionalFilter.java
Java
lgpl
3,783
package org.teremail.smtp; import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.Collection; import org.apache.mina.common.ByteBuffer; import org.apache.mina.handler.support.IoSessionInputStream; import org.teremail.common.Log; import...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/MessageDataConsumer.java
Java
lgpl
3,848
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; import org.teremail.smtp.SMTPSession; /** * Simple (older) hello (HELO) implementation. * * @author Michael Barker * */ public class HELOCommand extends SMTPCommand { public HELOCommand(List<String> par...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/HELOCommand.java
Java
lgpl
1,113
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; import org.teremail.smtp.SMTPSession; public class RSETCommand extends SMTPCommand { public RSETCommand() { super("RSET", EMPTY); } @Override public void process(SMTPSession session) ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/RSETCommand.java
Java
lgpl
655
package org.teremail.smtp.commands; import static org.teremail.message.AddressParser.parseSMTPPostmaster; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.teremail.message.Address; import org.teremail.message.AddressFormatException; import org.teremail.smtp.SMTPComman...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/RCPTCommand.java
Java
lgpl
1,936
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; public class VRFYCommand extends SMTPCommand { public VRFYCommand(List<String> parameters) { super("VRFY", parameters); } public static final SMTPCommandFactory FACTORY = new SMTPCommandFacto...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/VRFYCommand.java
Java
lgpl
466
package org.teremail.smtp.commands; import java.util.Iterator; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; import org.teremail.smtp.SMTPSession; /** * The extended hello command. * * @author Michael Barker * */ public class EHLOCommand extends SMTPCommand { private final static Str...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/EHLOCommand.java
Java
lgpl
1,643
package org.teremail.smtp.commands; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.teremail.message.Address; import org.teremail.message.AddressFormatException; import org.teremail.message.AddressParser; import org.teremail.smtp.SMTPCommandFactory; import org.teremai...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/MAILCommand.java
Java
lgpl
1,961
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; public class HELPCommand extends SMTPCommand { public HELPCommand(List<String> parameters) { super("HELP", parameters); } public static final SMTPCommandFactory FACTORY = new SMTPCommandF...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/HELPCommand.java
Java
lgpl
471
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPSession; import com.google.common.collect.ImmutableList; /** * Base class for all SMTP Commands. Contains a name and a list of parameters. * * @author Michael Barker * */ public abstract class SMTPCommand { public fi...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/SMTPCommand.java
Java
lgpl
1,447
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; import org.teremail.smtp.SMTPSession; public class DATACommand extends SMTPCommand { private static final String MSG_351 = "354 Start mail input; end with <CRLF>.<CRLF>"; public DATACommand() {...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/DATACommand.java
Java
lgpl
973
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; public class EXPNCommand extends SMTPCommand { public EXPNCommand(List<String> parameters) { super("EXPN", parameters); } public static final SMTPCommandFactory FACTORY = new SMTPCommandFacto...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/EXPNCommand.java
Java
lgpl
458
package org.teremail.smtp.commands; import static java.lang.String.format; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; import org.teremail.smtp.SMTPSession; /** * Handles a client initiated closing of the connection. * * @author mike * */ public class QUITCommand extends SMTPCommand { ...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/QUITCommand.java
Java
lgpl
792
package org.teremail.smtp.commands; import java.util.List; import org.teremail.smtp.SMTPCommandFactory; import org.teremail.smtp.SMTPSession; /** * The NOOP command, does nothing. * * @author Michael Barker. * */ public class NOOPCommand extends SMTPCommand { public NOOPCommand() { super("NOOP", E...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/commands/NOOPCommand.java
Java
lgpl
646
package org.teremail.smtp; import java.util.Properties; import java.util.concurrent.Callable; import org.teremail.delivery.Exchange; import org.teremail.provider.FutureProvider; import org.teremail.service.ServiceRegistrar; import com.google.inject.Inject; public class SMTPServiceProvider extends FutureProvider<SMT...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/SMTPServiceProvider.java
Java
lgpl
988
package org.teremail.smtp; import java.io.IOException; import org.apache.mina.common.ByteBuffer; public interface DataConsumer { void write(ByteBuffer b); void close() throws IOException; }
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/DataConsumer.java
Java
lgpl
201
package org.teremail.smtp; import org.apache.mina.common.ByteBuffer; import org.apache.mina.common.IoHandlerAdapter; import org.apache.mina.common.IoSession; import org.teremail.smtp.commands.SMTPCommand; public class SMTPIOHandler extends IoHandlerAdapter { private SMTPCommandParser parser; private final Da...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/SMTPIOHandler.java
Java
lgpl
2,122
package org.teremail.smtp; import java.util.Collection; import java.util.List; import org.teremail.message.Address; /** * The SMTPSession is a facade that encapulates access to the * networking layer, as well as any state management that needs to occur * within the networking layer. * * @author Michael Barker...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/SMTPSession.java
Java
lgpl
1,753
package org.teremail.smtp; import java.util.List; import org.teremail.smtp.commands.SMTPCommand; /** * Generic interface for the construction of SMTPCommands, there should be * a factory for each command. * * @author Michael Barker * */ public interface SMTPCommandFactory { public SMTPCommand create(List...
zzuoqiang-teremail
teremail-core/src/main/java/org/teremail/smtp/SMTPCommandFactory.java
Java
lgpl
344
MIME-Version: 1.0 From: Lord John Whorfin <whorfin@yoyodyne.com> To: <john-yaya@yoyodyne.com> Subject: A complex nested multipart example Content-Type: multipart/mixed; boundary=unique-boundary-1 The preamble of the outer multipart message. Mail readers that understand multipart format should ignore this...
zzuoqiang-teremail
panto/src/test/resources/multi-nested.msg
omnetpp-msg
lgpl
3,290
Subject: [Fwd: Test Image] From: Michael Barker <mbarker@buni.org> To: tom@localhost Content-Type: multipart/mixed; boundary="=-aqUdPSSJmLNPlfkFjcKR" Date: Sun, 14 Jan 2007 13:13:12 +0000 Message-Id: <1168780392.4824.4.camel@corona> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Evolution-Source: pop://mikeb01@...
zzuoqiang-teremail
panto/src/test/resources/single-image-multi.msg
omnetpp-msg
lgpl
4,149
Content-Disposition: inline Content-Transfer-Encoding: binary Content-Type: message/rfc822 MIME-Version: 1.0 X-Mailer: MIME::Lite 1.147 (B2.09; Q2.03) Date: Tue, 6 Jun 2000 03:20:11 UT From: user2 To: user0 Subject: Re: Fwd: hello world Content-Disposition: inline Content-Transfer-Encoding: binary Content...
zzuoqiang-teremail
panto/src/test/resources/re-fwd.msg
omnetpp-msg
lgpl
812
Return-Path: eryq@rhine.gsfc.nasa.gov Sender: john-bigboote Date: Thu, 11 Apr 1996 01:10:30 -0500 From: Eryq <eryq@rhine.gsfc.nasa.gov> Organization: Yoyodyne Propulsion Systems X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486) MIME-Version: 1.0 To: john-bigboote@eryq.pr.mcs.net Subject: Two images for you... ...
zzuoqiang-teremail
panto/src/test/resources/multi-weirdspace.msg
omnetpp-msg
lgpl
2,357
Date: Thu, 20 Jun 1996 08:35:17 +0200 From: Juergen Specht <specht@kulturbox.de> Organization: KULTURBOX X-Mailer: Mozilla 2.02 (WinNT; I) MIME-Version: 1.0 To: andreas.koenig@mind.de, kun@pop.combox.de, 101762.2307@compuserve.com Subject: [Fwd: Re: 34Mbit/s Netz] Content-Type: MULTIPART/MIXED; boundary="-------...
zzuoqiang-teremail
panto/src/test/resources/ak-0696.msg
omnetpp-msg
lgpl
4,806
From: Nathaniel Borenstein <nsb@bellcore.com> To: Ned Freed <ned@innosoft.com> Subject: Sample digest message MIME-Version: 1.0 Content-type: multipart/digest; boundary="simple boundary" This is the preamble. It is to be ignored, though it is a handy place for mail composers to include an explanatory note ...
zzuoqiang-teremail
panto/src/test/resources/multi-digest.msg
omnetpp-msg
lgpl
798
Return-Path: eryq@rhine.gsfc.nasa.gov Date: Wed, 20 Dec 95 19:59 CST From: eryq@rhine.gsfc.nasa.gov To: sitaram@selsvr.stx.com Cc: johnson@killians.gsfc.nasa.gov,harvel@killians.gsfc.nasa.gov, eryq Subject: Request for Leave I will be taking vacation from Friday, 12/22/95, through 12/26/95. I will be back on...
zzuoqiang-teremail
panto/src/test/resources/simple.msg
omnetpp-msg
lgpl
689
Date: Thu, 6 Jun 1996 15:50:39 +0400 (MOW DST) From: Starovoitov Igor <igor@fripp.aic.synapse.ru> To: eryq@rhine.gsfc.nasa.gov Subject: Need help MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-490585488-806670346-834061839=:2195" This message is in MIME format. The first part should be readable ...
zzuoqiang-teremail
panto/src/test/resources/multi-igor.msg
omnetpp-msg
lgpl
10,770
Content-Type: multipart/alternative; boundary="----------=_961872013-1436-0" Content-Transfer-Encoding: binary Mime-Version: 1.0 X-Mailer: MIME-tools 5.211 (Entity 5.205) To: noone Subject: A postcard for you This is a multi-part message in MIME format... ------------=_961872013-1436-0 Content-Type: text/pl...
zzuoqiang-teremail
panto/src/test/resources/bluedot-postcard.msg
omnetpp-msg
lgpl
7,078
Received: from mail.buni.org [70.85.159.212] by localhost with POP3 (fetchmail-6.2.5) for mbarker@localhost (single-drop); Mon, 19 Mar 2007 05:01:40 -0500 (CDT) Received: from mailman1.u.washington.edu (mailman1.u.washington.edu [140.142.12.154]) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW06.09) with ...
zzuoqiang-teremail
panto/src/test/resources/failed-mail.msg
omnetpp-msg
lgpl
5,626
From: Nathaniel Borenstein <nsb@bellcore.com> To: Ned Freed <ned@innosoft.com> Subject: Sample message MIME-Version: 1.0 Content-type: multipart/mixed; boundary="simple boundary" This is the preamble. It is to be ignored, though it is a handy place for mail composers to include an explanatory note to non-M...
zzuoqiang-teremail
panto/src/test/resources/multi-clen.msg
omnetpp-msg
lgpl
1,345
Return-Path: eryq@rhine.gsfc.nasa.gov Sender: john-bigboote Date: Thu, 11 Apr 1996 01:10:30 -0500 From: Eryq <eryq@rhine.gsfc.nasa.gov> Organization: Yoyodyne Propulsion Systems X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486) MIME-Version: 1.0 To: john-bigboote@eryq.pr.mcs.net Subject: Two images for you... ...
zzuoqiang-teremail
panto/src/test/resources/multi-2gifs.msg
omnetpp-msg
lgpl
2,431
Content-Type: image/jpeg; name="bluedot.jpg" Content-Disposition: inline; filename="bluedot.jpg" Content-Transfer-Encoding: base64 Content-Id: my-graphic /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsL DBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/ 2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIy...
zzuoqiang-teremail
panto/src/test/resources/bluedot-simple.msg
omnetpp-msg
lgpl
6,046
MIME-Version: 1.0 From: Lord John Whorfin <whorfin@yoyodyne.com> To: <john-yaya@yoyodyne.com> Subject: A complex nested multipart example Content-Type: multipart/mixed; boundary=unique-boundary-1 The preamble of the outer multipart message. Mail readers that understand multipart format should ignore this...
zzuoqiang-teremail
panto/src/test/resources/multi-frag.msg
omnetpp-msg
lgpl
3,332
X-POP3-Rcpt: specht@trachea Return-Path: hermes Received: (from hermes@localhost) by kulturbox.netmbx.de (8.7.1/8.7.1) id SAA04513 for specht; Wed, 19 Jun 1996 18:30:12 +0200 Received: by netmbx.netmbx.de (/\==/\ Smail3.1.28.1) from mail.cs.tu-berlin.de with smtp id <m0uWPrO-0004wpC>; Wed, 19 Jun 96 18:12 ME...
zzuoqiang-teremail
panto/src/test/resources/german.msg
omnetpp-msg
lgpl
4,048
Date: Thu, 6 Jun 1996 15:50:39 +0400 (MOW DST) From: Starovoitov Igor <igor@fripp.aic.synapse.ru> To: eryq@rhine.gsfc.nasa.gov Subject: Need help MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-490585488-806670346-834061839=:2195" This message is in MIME format. The first part should be readable ...
zzuoqiang-teremail
panto/src/test/resources/multi-igor2.msg
omnetpp-msg
lgpl
10,770
Subject: [Fwd: Test Image] From: Michael Barker <mbarker@buni.org> To: tom@localhost Content-Type: multipart/mixed; boundary="=-cnjK4PqTMQ6N5rTKF9ah" Date: Sun, 14 Jan 2007 13:09:00 +0000 Message-Id: <1168780140.4824.0.camel@corona> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Evolution-Source: pop://mikeb01@...
zzuoqiang-teremail
panto/src/test/resources/single-image.msg
omnetpp-msg
lgpl
3,881
Return-Path: <omrec@mailandnews.com> Received: from virtual.mrf.mail.rcn.net ([207.172.4.103]) by mta05.mrf.mail.rcn.net (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000524184032.XKFS1688.mta05.mrf.mail.rcn.net@virtual.mrf.mail.rcn.net> for <eryq@mta.mrf.mail.r...
zzuoqiang-teremail
panto/src/test/resources/frag.msg
omnetpp-msg
lgpl
88,747
From: Nathaniel Borenstein <nsb@bellcore.com> To: Ned Freed <ned@innosoft.com> Subject: Sample message MIME-Version: 1.0 Content-type: multipart/mixed; boundary="simple boundary" This is the preamble. It is to be ignored, though it is a handy place for mail composers to include an explanatory note to non-M...
zzuoqiang-teremail
panto/src/test/resources/multi-simple.msg
omnetpp-msg
lgpl
660
Received: from ppp-82-84-92-250.dialup.tiscali.it (82.84.92.250 82.84.92.250) by mail.buni.org/Meldware Mail 1.0M7-pre (70.85.159.212) with SMTP id 1174484280999338.0267637551234; Wed, 21 Mar 2007 08:38:00 -0500 (CDT) Message-ID: <000901c76bbe$0e46aea0$00000000@canossin6b94ca> From: "readers" <then@orienteering.com...
zzuoqiang-teremail
panto/src/test/resources/3rdline.msg
omnetpp-msg
lgpl
11,930
Return-Path: <support@webmail.uwohali.com> Received: from virtual.mrf.mail.rcn.net ([207.172.4.103]) by mta02.mrf.mail.rcn.net (InterMail vM.4.01.02.27 201-229-119-110) with ESMTP id <20000425112650.ZPUD516.mta02.mrf.mail.rcn.net@virtual.mrf.mail.rcn.net> for <eryq@mta.mrf.m...
zzuoqiang-teremail
panto/src/test/resources/uu-junk-target.msg
omnetpp-msg
lgpl
9,279
Return-Path: eryq@rhine.gsfc.nasa.gov Sender: john-bigboote Date: Thu, 11 Apr 1996 01:10:30 -0500 From: Eryq <eryq@rhine.gsfc.nasa.gov> Organization: Yoyodyne Propulsion Systems X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486) MIME-Version: 1.0 To: john-bigboote@eryq.pr.mcs.net Subject: test of double-boundary...
zzuoqiang-teremail
panto/src/test/resources/double-bound-with-embedded.msg
omnetpp-msg
lgpl
2,853
Content-Type: text/plain; charset="US-ASCII"; name==?koi8-r?B?89DJ08/LLmRvYw==?= Content-Disposition: attachment; filename==?koi8-r?B?89DJ08/LLmRvYw==?= Subject: Greetings Salutations
zzuoqiang-teremail
panto/src/test/resources/russian.msg
omnetpp-msg
lgpl
194
MIME-Version: 1.0 From: Lord John Whorfin <whorfin@yoyodyne.com> To: <john-yaya@yoyodyne.com> Subject: A complex nested multipart example Content-Type: multipart/mixed; boundary=unique-boundary-1 The preamble of the outer multipart message. Mail readers that understand multipart format should ignore this...
zzuoqiang-teremail
panto/src/test/resources/multi-nested3.msg
omnetpp-msg
lgpl
3,285
Return-Path: eryq@rhine.gsfc.nasa.gov Sender: john-bigboote Date: Thu, 11 Apr 1996 01:10:30 -0500 From: Eryq <eryq@rhine.gsfc.nasa.gov> Organization: Yoyodyne Propulsion Systems X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486) MIME-Version: 1.0 To: john-bigboote@eryq.pr.mcs.net Subject: Two images for you... ...
zzuoqiang-teremail
panto/src/test/resources/multi-2evil.msg
omnetpp-msg
lgpl
2,622
MIME-Version: 1.0 From: Lord John Whorfin <whorfin@yoyodyne.com> To: <john-yaya@yoyodyne.com> Subject: A complex nested multipart example Content-Type: multipart/mixed; boundary=unique-boundary-1 The preamble of the outer multipart message. Mail readers that understand multipart format should ignore this...
zzuoqiang-teremail
panto/src/test/resources/multi-nested2.msg
omnetpp-msg
lgpl
3,290
Return-Path: eryq@rhine.gsfc.nasa.gov Sender: john-bigboote Date: Thu, 11 Apr 1996 01:10:30 -0500 From: Eryq <eryq@rhine.gsfc.nasa.gov> Organization: Yoyodyne Propulsion Systems X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486) MIME-Version: 1.0 To: john-bigboote@eryq.pr.mcs.net Subject: Two images for you... ...
zzuoqiang-teremail
panto/src/test/resources/dup-names.msg
omnetpp-msg
lgpl
3,881
Return-Path: eryq@rhine.gsfc.nasa.gov Sender: john-bigboote Date: Thu, 11 Apr 1996 01:10:30 -0500 From: Eryq <eryq@rhine.gsfc.nasa.gov> Organization: Yoyodyne Propulsion Systems X-Mailer: Mozilla 2.0 (X11; I; Linux 1.1.18 i486) MIME-Version: 1.0 To: john-bigboote@eryq.pr.mcs.net Subject: test of double-boundary...
zzuoqiang-teremail
panto/src/test/resources/double-bound.msg
omnetpp-msg
lgpl
2,436
From: me To: you Subject: uudecoding I've uuencoded the ZeeGee logo and another GIF file below. begin 644 up.gif M1TE&.#=A$P`3`*$``/___P```("`@,#`P"P`````$P`3```"1X2/F<'MSTQ0 M%(@)YMB\;W%)@$<.(*:5W2F2@<=F8]>LH4P[7)P.T&NZI7Z,(&JF^@B121Y3 4Y4SNEJ"J]8JZ:JTH(K$"/A0``#L` ` end begin 644 zeegee.gif M1TE&.#=A...
zzuoqiang-teremail
panto/src/test/resources/uu-zeegee.msg
omnetpp-msg
lgpl
7,093
Subject: [Fwd: Test Image] From: Michael Barker <mbarker@buni.org> To: tom@localhost Content-Type: multipart/mixed; boundary="=-aqUdPSSJmLNPlfkFjcKR" Date: Sun, 14 Jan 2007 13:13:12 +0000 Message-Id: <1168780392.4824.4.camel@corona> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Evolution-Source: pop://mikeb01@...
zzuoqiang-teremail
panto/src/test/resources/m-attachment-image.msg
omnetpp-msg
lgpl
5,782
Subject: [Fwd: Test Image] From: Michael Barker <mbarker@buni.org> To: tom@localhost Content-Type: multipart/mixed; boundary="=-2+DeabYuUOigcABipoEQ" Date: Sun, 14 Jan 2007 13:13:12 +0000 Message-Id: <1168780392.4824.4.camel@corona> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-Evolution-Source: pop://mikeb01@...
zzuoqiang-teremail
panto/src/test/resources/single-image-inline.msg
omnetpp-msg
lgpl
4,091
Delivered-To: mikeb01@gmail.com Received: by 10.90.31.5 with SMTP id e5cs146651age; Fri, 2 Feb 2007 16:31:42 -0800 (PST) Received: by 10.49.57.12 with SMTP id j12mr2038278nfk.1170462702093; Fri, 02 Feb 2007 16:31:42 -0800 (PST) Return-Path: <acoliver@buni.org> Received: from mx2.turbodns.co.uk (mx2.turbodns.co....
zzuoqiang-teremail
panto/src/test/resources/blank.msg
omnetpp-msg
lgpl
13,894
package org.teremail.panto; import static java.lang.String.format; import static org.teremail.panto.TestConstants.BODY_FORMAT; import static org.teremail.panto.TestConstants.EPI_FORMAT; import static org.teremail.panto.TestConstants.MULTI_FORMAT; import static org.teremail.panto.TestConstants.PRE_FORMAT; import java....
zzuoqiang-teremail
panto/src/test/java/org/teremail/panto/Mime4JContentHandler.java
Java
lgpl
2,272
package org.teremail.panto.perf; import java.io.BufferedInputStream; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import junit.framework.TestCase; import org.apache.james.mime4j.MimeException; import org.apache.james.mime4j.parser.MimeStreamParser; import org.ter...
zzuoqiang-teremail
panto/src/test/java/org/teremail/panto/perf/PerformanceTestCase.java
Java
lgpl
2,446
package org.teremail.panto.perf; import java.io.IOException; import java.io.InputStream; import org.apache.james.mime4j.descriptor.BodyDescriptor; import org.apache.james.mime4j.parser.ContentHandler; import org.apache.james.mime4j.parser.Field; public class Mime4JContentHandler implements ContentHandler ...
zzuoqiang-teremail
panto/src/test/java/org/teremail/panto/perf/Mime4JContentHandler.java
Java
lgpl
1,627
package org.teremail.panto.perf; /* * teremailsoft the Open Source Communications Company * Copyright 2006, teremailsoft Inc., * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; eit...
zzuoqiang-teremail
panto/src/test/java/org/teremail/panto/perf/PantoContentHandler.java
Java
lgpl
2,323
package org.teremail.panto; import static java.lang.String.format; import static org.teremail.panto.TestConstants.BODY_FORMAT; import static org.teremail.panto.TestConstants.EPI_FORMAT; import static org.teremail.panto.TestConstants.PRE_FORMAT; import static org.teremail.panto.TestConstants.MULTI_FORMAT; import java....
zzuoqiang-teremail
panto/src/test/java/org/teremail/panto/PantoContentHandler.java
Java
lgpl
2,313
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * This is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as * published by the Free Software Foundation; either version 2.1 of * the License, or (at your opt...
zzuoqiang-teremail
panto/src/main/java/org/teremail/panto/ContentDisposition.java
Java
lgpl
2,741
/* * Bunisoft the Open Source Communications Company * Copyright 2006, Bunisoft Inc., * * Portions of this software are Copyright 2006, JBoss Inc., and * individual contributors as indicated by the @authors tag. * See the copyright.txt in the distribution for a full listing of * individual contributors. * * T...
zzuoqiang-teremail
panto/src/main/java/org/teremail/panto/SimpleBoyerMoore.java
Java
lgpl
3,589