POPclient reference

POP3client

Super Class

INETclient

Class Methods

new( address = 'localhost', port = 110 )

This method create a new POP3client object but this will not open connection.

Methods

login( account, password )
This method do login to POP3 server.
each{|popmail| ...}
This method is equals to "popclient.mails.each"
mails
This method returns an array of POP3client::POPmail. This array is renewed automatically when login.

POP3client::POPmail

A class of mail which exists on POP server.

Super Class

Object

Method

mail

This method fetches one mail and return it.

header

This method fetches only mail header.

delete

This method deletes mail. You can undo this by 'undel'. This method doesn't delete mail on server, but mark himself as 'I am deleted'. When logging out, all 'marked mail' are deleted realy.
'delete!' realy delete mail on the time.

delete!

This method deletes mail. This is not able to undel.

undel

This method deletes his 'deleted mark'. If he has not marked, raises INETprotocol::ProtoCommandError exception. 'undel!' don't raises this error.

undel!

This method is equal to 'undel' except this doesn't raise exception.

size

size of mail(bytes)

delete?

If it have been marked as 'deleted', this return true.

deleted?

If mail was deleted realy, this return true.

do_proc
This method deletes mail realy if the POPmail object has 'deleted mark'.

APOPclient

This class has no new methods. Only way of authetication is changed.

Super Class

POP3client

Copyright (c) 1998-2000 Minero Aoki <aamine@dp.u-netsurf.ne.jp>