dea.spamRescue
Class MsgInfo

java.lang.Object
  extended bydea.spamRescue.MsgInfo
All Implemented Interfaces:
IDebugLevels

public class MsgInfo
extends java.lang.Object
implements IDebugLevels

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

MsgInfo

public MsgInfo()
Init class

Method Detail

isScan

public boolean isScan()

setScan

public void setScan(boolean scan)

str2Date

public static java.util.Date str2Date(java.lang.String dateStr)
Parse string into a date

Parameters:
dateStr -
Returns:
Date

load

public static Msg_info load(Db db,
                            long batch,
                            java.lang.String number)
                     throws java.sql.SQLException
load record from the DB by batch and msg number

Parameters:
batch -
number -
Returns:
Msg_info obj of the DB record or null if not found.
Throws:
java.sql.SQLException

load

public static Msg_info load(Db db,
                            java.lang.String msgID,
                            java.lang.String toAddr)
                     throws java.sql.SQLException
load record from the DB by the email messageID and to address. This allows for the spam being sent to multiple bad addresses.

Parameters:
msgID -
toAddr -
Returns:
Msg_info obj of the DB record or null if not found.
Throws:
java.sql.SQLException

getCount

public static int getCount(java.lang.String sourceHost)

store

public static Msg_info store(Msg_info mi)
Update Msg_info record

Parameters:
mi -
Returns:
the altered Msg_info object

parseBox

public static java.lang.String parseBox(java.io.File input)
                                 throws java.io.IOException
Parse the mailbox file into email files

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)


Copyright © 2001-2005 Round Mountain Rescue Ranch. All Rights Reserved.