Re: POP3 client retrieving index list only
- From: Spoon <root@xxxxxxxxx>
- Date: Mon, 22 May 2006 11:40:06 +0200
martin.x.nielsen wrote:
When using e.g. fetchmail, it can only retrieve all/unread messages
from a server. I need some client to retrieve only the headers from the
server using pop3. In addition to that I want to be able to retrieve
selected messages only (e.g. using regexp or selction by message
numer).
It is not for filtering spam, sometimes I am just interested in some
messages, and sometimes some other messages from the pop3 server.
E.g. lets say some remote POP3 server contains the following in my
inbox:
# subject
1 message a
2 message b
3 message c
Then I first need some way to get the above list, by retrieving all
headers from the server.
Then I need to get e.g. only message #2, but without deleting any of
the messages, because tomorrow I maybe want message #1.
The Post Office Protocol is simple enough.
USER foo
+OK
PASS &"!&
+OK
LIST
+OK
1 3436
2 14848
3 2789
4 1896
..
TOP n 0
(returns the headers of the n-th message)
RETR n
(returns the n-th message including headers)
Cheers.
.
- References:
- POP3 client retrieving index list only
- From: martin . x . nielsen
- POP3 client retrieving index list only
- Prev by Date: Re: How to use ioctl instead of select
- Next by Date: Re: Measuring network utilization
- Previous by thread: POP3 client retrieving index list only
- Next by thread: Re: POP3 client retrieving index list only
- Index(es):
Relevant Pages
|