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
eecbee85
...
eecbee85882b7da2a9e658034f1aa66066c6e804
authored
2002-07-13 09:05:26 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Do not move the cursor after running the command.
1 parent
c8654e71
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
mail/size.c
mail/size.c
View file @
eecbee8
...
...
@@ -25,19 +25,21 @@ int
mail_size
(
int
argc
,
char
**
argv
)
{
if
(
argc
>
1
)
util_msglist_command
(
mail_size
,
argc
,
argv
,
1
);
util_msglist_command
(
mail_size
,
argc
,
argv
,
0
);
else
{
size_t
s
=
0
;
size_t
s
ize
=
0
,
lines
=
0
;
message_t
msg
;
if
(
mailbox_get_message
(
mbox
,
cursor
,
&
msg
)
!=
0
)
{
util_error
(
"Could not read message %d"
,
cursor
);
return
1
;
}
message_size
(
msg
,
&
s
);
fprintf
(
ofile
,
"%c%2d %d
\n
"
,
cursor
==
realcursor
?
'>'
:
' '
,
cursor
,
s
);
message_size
(
msg
,
&
size
);
message_lines
(
msg
,
&
lines
);
fprintf
(
ofile
,
"%c%2d %3d/%-5d
\n
"
,
cursor
==
realcursor
?
'>'
:
' '
,
cursor
,
lines
,
size
);
return
0
;
}
return
1
;
...
...
Please
register
or
sign in
to post a comment