File: mailbox.h

package info (click to toggle)
popa3d 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 368 kB
  • ctags: 325
  • sloc: ansic: 2,242; sh: 104; makefile: 60
file content (30 lines) | stat: -rw-r--r-- 569 bytes parent folder | download | duplicates (7)
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
/*
 * Mailbox access.
 */

#ifndef _POP_MAILBOX_H
#define _POP_MAILBOX_H

/*
 * Opens the mailbox, filling in the message database.  Returns a non-zero
 * value on error.
 */
extern int mailbox_open(char *spool, char *mailbox);

/*
 * Sends (first lines of) a message to the POP client.  Returns one of the
 * POP_* event codes.
 */
extern int mailbox_get(struct db_message *msg, int lines);

/*
 * Rewrites the mailbox according to flags in the database.
 */
extern int mailbox_update(void);

/*
 * Closes the mailbox file.
 */
extern int mailbox_close(void);

#endif