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
5f4c0e4e
...
5f4c0e4e16e97734ceddf6faad39f49c4487f7c7
authored
2003-08-19 10:18:20 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(_mh_msgset_parse): Fixed the semantics of last:N and prev:N.
1 parent
ea5695a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
mh/mh_msgset.c
mh/mh_msgset.c
View file @
5f4c0e4
...
...
@@ -318,7 +318,7 @@ _mh_msgset_parse (mailbox_t mbox, mh_msgset_t *msgset, int argc, char **argv)
msglist
=
calloc
(
msgcnt
,
sizeof
(
*
msglist
));
for
(
i
=
0
,
msgno
=
0
;
i
<
argc
;
i
++
)
{
char
*
p
=
NULL
;
char
*
p
=
NULL
,
*
q
;
size_t
start
,
end
;
size_t
msg_first
,
n
;
long
num
;
...
...
@@ -380,9 +380,15 @@ _mh_msgset_parse (mailbox_t mbox, mh_msgset_t *msgset, int argc, char **argv)
break
;
case
':'
:
num
=
strtoul
(
p
+
1
,
&
p
,
0
);
if
(
*
p
)
num
=
strtoul
(
p
+
1
,
&
q
,
0
);
if
(
*
q
)
msgset_abort
(
argv
[
i
]);
if
(
p
[
1
]
!=
'+'
&&
p
[
1
]
!=
'-'
)
{
if
(
strncmp
(
argv
[
i
],
"last:"
,
5
)
==
0
||
strncmp
(
argv
[
i
],
"prev:"
,
5
)
==
0
)
num
=
-
num
;
}
end
=
start
+
num
;
if
(
end
<
start
)
{
...
...
Please
register
or
sign in
to post a comment