Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
eaeae738
...
eaeae738652c703078b622d1637fe6ed1251cec3
authored
2001-06-15 02:49:21 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
No longer relevant to the current APIs.
1 parent
581bf631
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
23 deletions
examples/showmail.c
examples/showmail.c
deleted
100644 → 0
View file @
581bf63
#include "mailbox.h"
#include <paths.h>
int
main
(
int
argc
,
char
*
argv
[])
{
mailbox
*
mbox
;
char
*
user
;
char
*
body
;
char
mailpath
[
256
];
int
i
;
user
=
getenv
(
"USER"
);
snprintf
(
mailpath
,
256
,
"%s/%s"
,
_PATH_MAILDIR
,
user
);
mbox
=
mbox_open
(
mailpath
);
for
(
i
=
0
;
i
<
mbox
->
messages
;
++
i
)
{
body
=
mbox_get_body
(
mbox
,
i
);
printf
(
"%s
\n
"
,
body
);
}
mbox_close
(
mbox
);
}
Please
register
or
sign in
to post a comment