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
6cfd1a84
...
6cfd1a84c70e6737fb628220ca766d3fe7e08aa3
authored
1999-10-08 05:35:41 +0000
by
Sean 'Shaleh' Perry
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added a TODO file
cleaned up from.c a little
1 parent
6f2e533e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
ChangeLog
TODO
examples/from.c
ChangeLog
View file @
6cfd1a8
Sean 'Shaleh' Perry <shaleh@debian.org> Thu, 7 Oct 1999 22:33:24 -0700
* removed spurious code in from.c
* added TODO file
1999-10-07 Jeff Bailey <jbailey@cr499794-a.crdva1.bc.wave.home.com>
* Makefile.am: Compile libsrc/ first.
...
...
TODO
0 → 100644
View file @
6cfd1a8
- autogen.sh (libtool) complains about libmailbox.la in noinst
- libmailbox has a nasty bug -- if the mailbox is empty, the library has no idea
what to do
- crypt is linked even if pam was detected, it should be one or the other
- test daemon code
- test network code
- add imap server code
- add more features
- optimize everything
- test everything
examples/from.c
View file @
6cfd1a8
...
...
@@ -7,11 +7,12 @@
#include <mailbox.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
int
main
(
int
argc
,
char
*
argv
[])
{
mailbox
*
mail
;
unsigned
int
i
;
char
*
header
,
*
from
,
*
date
;
char
*
from
,
*
date
;
char
*
user
;
char
mailpath
[
256
];
...
...
@@ -28,11 +29,6 @@ int main(int argc, char *argv[]) {
exit
(
-
1
);
}
for
(
i
=
0
;
i
<
mail
->
messages
;
++
i
)
{
header
=
mbox_get_header
(
mail
,
i
);
if
(
header
==
NULL
)
{
perror
(
"mbox_get_header: "
);
exit
(
-
1
);
}
from
=
mbox_header_line
(
mail
,
i
,
"From"
);
if
(
from
==
NULL
)
{
...
...
@@ -46,7 +42,6 @@ int main(int argc, char *argv[]) {
exit
(
-
1
);
}
printf
(
"%s %s
\n
"
,
from
,
date
);
free
(
header
);
free
(
from
);
free
(
date
);
}
...
...
Please
register
or
sign in
to post a comment