|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdea.spamRescue.MsgInfo
Title: Message Info class
Description: A class for getting spam message info into the DB.
Copyright: Copyright (c) 2004
Company: RMRR
@author David Abigt
@version 1.0
Field Summary |
Fields inherited from interface dea.common.IDebugLevels |
BASIC, DEBUG_ALL, ERROR, METH_DETAIL, METH_ENTER, METH_EXIT, METH_EXT, METH_GET, METH_SET, METH_VARS, SHOW_PASS |
Constructor Summary | |
MsgInfo()
Init class |
Method Summary | |
static int |
getCount(java.lang.String sourceHost)
|
boolean |
isScan()
|
static Msg_info |
load(Db db,
long batch,
java.lang.String number)
load record from the DB by batch and msg number |
static Msg_info |
load(Db db,
java.lang.String msgID,
java.lang.String toAddr)
load record from the DB by the email messageID and to address. |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
parseBox(java.io.File input)
Parse the mailbox file into email files |
void |
setScan(boolean scan)
|
static Msg_info |
store(Msg_info mi)
Update Msg_info record |
static java.util.Date |
str2Date(java.lang.String dateStr)
Parse string into a date |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MsgInfo()
Method Detail |
public boolean isScan()
public void setScan(boolean scan)
public static java.util.Date str2Date(java.lang.String dateStr)
dateStr
-
public static Msg_info load(Db db, long batch, java.lang.String number) throws java.sql.SQLException
batch
- number
-
java.sql.SQLException
public static Msg_info load(Db db, java.lang.String msgID, java.lang.String toAddr) throws java.sql.SQLException
msgID
- toAddr
-
java.sql.SQLException
public static int getCount(java.lang.String sourceHost)
public static Msg_info store(Msg_info mi)
mi
-
public static java.lang.String parseBox(java.io.File input) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |