|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kom.smtpd.SMTPRequestLog
Collect data about an e-mail message, and summarize as a string
Field Summary | |
(package private) java.lang.String |
from
MAIL FROM: |
(package private) java.lang.String |
mboxPath
Mailbox file path |
(package private) java.lang.String |
msg
Possible error message |
(package private) java.util.Date |
read
Date-time when the message was received |
(package private) long |
size
Size of message |
(package private) java.lang.String |
to
RCPT TO: (may be a list) |
Constructor Summary | |
SMTPRequestLog()
Start a log entry, note the current date-time |
Method Summary | |
java.lang.String |
getLogInfo()
Format log entry as a string: R: [date] to receiver(s) from sender mboxPath msg |
void |
mailFrom(java.lang.String from)
Save value of MAIL FROM: |
void |
rcptTo(java.lang.String to)
Save (a) value of RCPT TO: |
void |
ready(java.lang.String msg,
long size,
java.lang.String mboxPath)
Add final data to log entry |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Date read
long size
java.lang.String mboxPath
java.lang.String msg
java.lang.String from
java.lang.String to
Constructor Detail |
public SMTPRequestLog()
Method Detail |
public void mailFrom(java.lang.String from)
from
- envelope sender addresspublic void rcptTo(java.lang.String to)
to
- an envelope receiver addresspublic void ready(java.lang.String msg, long size, java.lang.String mboxPath)
msg
- error message if non-nullsize
- error message if non-nullmboxPath
- path of mailbox filepublic java.lang.String getLogInfo()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |