No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / appl / popper / pop_xover.c
blob0358b53ba1d66bedfdcd73b6aee450603a1810b5
1 #include <popper.h>
2 __RCSID("$Heimdal: pop_xover.c 4794 1998-04-23 17:41:49Z joda $"
3 "$NetBSD$");
5 int
6 pop_xover (POP *p)
8 #ifdef XOVER
9 MsgInfoList * mp; /* Pointer to message info list */
10 int i;
12 pop_msg(p,POP_SUCCESS,
13 "%d messages (%ld octets)",
14 p->msg_count-p->msgs_deleted,
15 p->drop_size-p->bytes_deleted);
17 /* Loop through the message information list. Skip deleted messages */
18 for (i = p->msg_count, mp = p->mlp; i > 0; i--, mp++) {
19 if (!(mp->flags & DEL_FLAG))
20 fprintf(p->output,"%u\t%s\t%s\t%s\t%s\t%lu\t%u\r\n",
21 mp->number,
22 mp->subject,
23 mp->from,
24 mp->date,
25 mp->msg_id,
26 mp->length,
27 mp->lines);
30 /* "." signals the end of a multi-line transmission */
31 fprintf(p->output,".\r\n");
32 fflush(p->output);
34 return(POP_SUCCESS);
35 #else
36 return pop_msg(p, POP_FAILURE, "Command not implemented.");
37 #endif