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
31fcf857
...
31fcf857134ba4ccd32d68b84064b5b86546894a
authored
1999-09-23 00:41:59 +0000
by
Jakob Kaivo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added 'F'/'f' to test mbox_get_header()
1 parent
100fe99c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
mail/Makefile.am
mail/mail.c
mail/Makefile.am
View file @
31fcf85
...
...
@@ -2,4 +2,5 @@ CPPFLAGS = -I$(top_srcdir)/libmailbox
bin_PROGRAMS
=
mail
mail_DEPENDENCIES
=
../libmailbox/libmailbox.la
mail_LDADD
=
../libmailbox/libmailbox.la
...
...
mail/mail.c
View file @
31fcf85
...
...
@@ -46,7 +46,7 @@ main (int argc, char **argv)
fgets
(
bar
,
80
,
stdin
);
c
=
bar
[
0
];
if
(
c
==
'd'
||
c
==
'D'
||
c
==
'b'
||
c
==
'B'
||
c
==
'h'
||
c
==
'H'
||
c
==
'r'
||
c
==
'R'
)
c
==
'H'
||
c
==
'r'
||
c
==
'R'
||
c
==
'f'
||
c
==
'F'
)
{
printf
(
"# "
);
fgets
(
bar
,
80
,
stdin
);
...
...
@@ -58,6 +58,12 @@ main (int argc, char **argv)
mbox_close
(
mbox
);
return
0
;
break
;
case
'f'
:
case
'F'
:
foo
=
mbox_header_line
(
mbox
,
atoi
(
bar
)
-
1
,
"from"
);
printf
(
"%s
\n
"
,
foo
);
free
(
foo
);
break
;
case
'r'
:
case
'R'
:
foo
=
mbox_get_header
(
mbox
,
atoi
(
bar
)
-
1
);
...
...
Please
register
or
sign in
to post a comment