[go: up one dir, main page]

Menu

[r68]: / trunk / man / imap4_check.3  Maximize  Restore  History

Download this file

52 lines (51 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.\" This file is part of libmail.
.\"
.\" (c) 2009 - Dimitris Mandalidis <mandas@users.sourceforge.net>
.\"
.\" libmail is free software: you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation, either version 3 of the License, or
.\" (at your option) any later version.
.\"
.\" libmail is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with libmail. If not, see <http://www.gnu.org/licenses/>.
.TH IMAP4_CHECK 3 "2009-06-20" "version 0.3" "libmail - A mail handling library"
.SH NAME
imap4_check - Check IMAP4 mailbox for messages
.SH SYNOPSIS
.nf
.B #include <libmail/libmail.h>
.B #include <libmail/imap4.h>
.sp
.BI "int imap4_check(imap4_mailbox_t *" "server" ", int *" "n_new_messages" ", int *" "n_messages" );
.fi
.SH DESCRIPTION
It takes a pointer to
.B imap4_mailbox_t
structure which identify the server's configuration, and two pointer to
fill the number of new and old messages respectively.
.SH "RETURN VALUE"
Returns
.B LIBMAIL_SUCCESS
on success. On error it returns :
.TP
.B LIBMAIL_NOT_CONNECTED
If the user hasn't yet been connected.
.TP
.B LIBMAIL_SYSERROR
On system error (see errno for details).
.TP
.B LIBMAIL_IMAP4_INVALID_MAILBOX
The requested mailbox does not exist.
.SH "SEE ALSO"
.B RFC 1730, RFC 2595, RFC 1731
.sp
.BR "libmail_strerror" "(3), " "set_imap4_auth_type" "(3), " "set_imap4_hostname" "(3), " "set_imap4_inet_family" "(3), " "set_imap4_mailbox" "(3), "
.BR "set_imap4_password" "(3), " "set_imap4_port" "(3), " "set_imap4_security_level" "(3), " "set_imap4_username" "(3), " "libmail_init_imap4_mailbox" "(3)."
.SH "AUTHOR"
Dimitris Mandalidis <mandas AT users DOT sourceforge DOT net>