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
d8081b10
...
d8081b101dcd358a853d5f277940942666e7998c
authored
2005-08-11 07:28:51 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(mail_list): Use mail_command_list()
1 parent
7d6020bc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
27 deletions
mail/list.c
mail/list.c
View file @
d8081b1
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2001
, 2005
Free Software Foundation, Inc.
GNU Mailutils is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
...
...
@@ -26,31 +26,6 @@
int
mail_list
(
int
argc
ARG_UNUSED
,
char
**
argv
ARG_UNUSED
)
{
const
char
*
cmd
=
NULL
;
int
i
=
0
,
pos
=
0
,
len
=
0
;
int
cols
=
util_getcols
();
for
(
i
=
0
;
mail_command_table
[
i
].
shortname
!=
0
;
i
++
)
{
len
=
strlen
(
mail_command_table
[
i
].
longname
);
if
(
len
<
1
)
{
cmd
=
mail_command_table
[
i
].
shortname
;
len
=
strlen
(
cmd
);
}
else
cmd
=
mail_command_table
[
i
].
longname
;
pos
+=
len
+
1
;
if
(
pos
>=
cols
)
{
pos
=
len
+
1
;
fprintf
(
ofile
,
"
\n
%s "
,
cmd
);
}
else
fprintf
(
ofile
,
"%s "
,
cmd
);
}
fprintf
(
ofile
,
"
\n
"
);
mail_command_list
();
return
0
;
}
...
...
Please
register
or
sign in
to post a comment