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
07752627
...
07752627cbe19484d27f0f99a7be81d55d88dc72
authored
2003-01-14 14:49:00 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Updated calls to msgset_parse
1 parent
83f3dea7
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
34 additions
and
34 deletions
mail/copy.c
mail/decode.c
mail/delete.c
mail/eq.c
mail/followup.c
mail/from.c
mail/headers.c
mail/next.c
mail/pipe.c
mail/previous.c
mail/quit.c
mail/tag.c
mail/write.c
mail/copy.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002
, 2003
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
...
...
@@ -45,7 +45,7 @@ mail_copy0 (int argc, char **argv, int mark)
else
filename
=
strdup
(
"mbox"
);
if
(
msgset_parse
(
argc
,
argv
,
&
msglist
))
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
msglist
))
{
if
(
filename
)
free
(
filename
);
...
...
@@ -74,7 +74,7 @@ mail_copy0 (int argc, char **argv, int mark)
{
int
status
;
status
=
util_get_message
(
mbox
,
mp
->
msg_part
[
0
],
&
msg
,
MSG_NODELETED
);
status
=
util_get_message
(
mbox
,
mp
->
msg_part
[
0
],
&
msg
);
if
(
status
)
break
;
...
...
mail/decode.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001, 2002
, 2003
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
...
...
@@ -40,7 +40,7 @@ mail_decode (int argc, char **argv)
msgset_t
*
msgset
;
struct
decode_closure
decode_closure
;
if
(
msgset_parse
(
argc
,
argv
,
&
msgset
))
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
msgset
))
return
1
;
decode_closure
.
select_hdr
=
islower
(
argv
[
0
][
0
]);
...
...
mail/delete.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002
, 2003
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
...
...
@@ -41,7 +41,7 @@ int
mail_delete
(
int
argc
,
char
**
argv
)
{
int
reset_cursor
=
0
;
int
rc
=
util_foreach_msg
(
argc
,
argv
,
MSG_NODELETED
,
int
rc
=
util_foreach_msg
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
mail_delete_msg
,
&
reset_cursor
);
/* Readjust the cursor not to point to the deleted messages. */
...
...
mail/eq.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2001
, 2002, 2003
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
...
...
@@ -33,7 +33,7 @@ mail_eq (int argc, char **argv)
break
;
case
2
:
if
(
msgset_parse
(
argc
,
argv
,
&
list
)
==
0
)
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
,
&
list
)
==
0
)
{
if
(
list
->
msg_part
[
0
]
<=
total
)
{
...
...
mail/followup.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002
, 2003
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
...
...
@@ -33,10 +33,10 @@ mail_followup (int argc, char **argv)
int
status
;
compose_init
(
&
env
);
if
(
msgset_parse
(
argc
,
argv
,
&
msglist
))
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
,
&
msglist
))
return
1
;
if
(
util_get_message
(
mbox
,
cursor
,
&
msg
,
MSG_NODELETED
))
if
(
util_get_message
(
mbox
,
cursor
,
&
msg
))
{
msgset_free
(
msglist
);
return
1
;
...
...
mail/from.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001
, 2002, 2003
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
...
...
@@ -111,6 +111,6 @@ mail_from0 (msgset_t *mspec, message_t msg, void *data)
int
mail_from
(
int
argc
,
char
**
argv
)
{
return
util_foreach_msg
(
argc
,
argv
,
MSG_NODELETED
,
mail_from0
,
NULL
);
return
util_foreach_msg
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
mail_from0
,
NULL
);
}
...
...
mail/headers.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001
, 2002, 2003
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
...
...
@@ -34,7 +34,7 @@ mail_headers (int argc, char **argv)
int
lines
=
util_screen_lines
();
int
num
;
if
(
msgset_parse
(
argc
,
argv
,
&
list
))
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
list
))
return
1
;
num
=
0
;
...
...
mail/next.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002
, 2003
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
...
...
@@ -33,7 +33,7 @@ mail_next (int argc, char **argv)
int
rc
=
1
;
for
(
n
=
cursor
+
1
;
n
<=
total
;
n
++
)
{
rc
=
util_get_message
(
mbox
,
n
,
&
msg
,
MSG_NODELETED
|
MSG_SILENT
);
rc
=
util_get_message
(
mbox
,
n
,
&
msg
);
if
(
rc
==
0
)
break
;
}
...
...
@@ -47,10 +47,10 @@ mail_next (int argc, char **argv)
else
{
msgset_t
*
list
=
NULL
;
msgset_parse
(
argc
,
argv
,
&
list
);
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
list
);
n
=
list
->
msg_part
[
0
];
msgset_free
(
list
);
if
(
util_get_message
(
mbox
,
n
,
&
msg
,
MSG_NODELETED
|
MSG_SILENT
))
if
(
util_get_message
(
mbox
,
n
,
&
msg
))
return
1
;
}
cursor
=
n
;
...
...
mail/pipe.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2001
, 2003
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
...
...
@@ -39,14 +39,14 @@ mail_pipe (int argc, char **argv)
else
if
(
util_getenv
(
&
cmd
,
"cmd"
,
Mail_env_boolean
,
1
))
return
1
;
if
(
msgset_parse
(
argc
,
argv
,
&
list
))
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
list
))
return
1
;
tube
=
popen
(
cmd
,
"w"
);
for
(
mp
=
list
;
mp
;
mp
=
mp
->
next
)
{
if
(
util_get_message
(
mbox
,
mp
->
msg_part
[
0
],
&
msg
,
MSG_NODELETED
)
==
0
)
if
(
util_get_message
(
mbox
,
mp
->
msg_part
[
0
],
&
msg
)
==
0
)
{
message_get_stream
(
msg
,
&
stream
);
off
=
0
;
...
...
mail/previous.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002
, 2003
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
...
...
@@ -33,7 +33,7 @@ mail_previous (int argc, char **argv)
int
rc
=
1
;
for
(
n
=
cursor
-
1
;
n
>
0
;
n
--
)
{
rc
=
util_get_message
(
mbox
,
n
,
&
msg
,
MSG_NODELETED
|
MSG_SILENT
);
rc
=
util_get_message
(
mbox
,
n
,
&
msg
);
if
(
rc
==
0
)
break
;
}
...
...
@@ -47,10 +47,10 @@ mail_previous (int argc, char **argv)
else
{
msgset_t
*
list
=
NULL
;
msgset_parse
(
argc
,
argv
,
&
list
);
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
list
);
n
=
list
->
msg_part
[
0
];
msgset_free
(
list
);
if
(
util_get_message
(
mbox
,
n
,
&
msg
,
MSG_NODELETED
|
MSG_SILENT
))
if
(
util_get_message
(
mbox
,
n
,
&
msg
))
return
1
;
}
cursor
=
n
;
...
...
mail/quit.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002
, 2003
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
...
...
@@ -89,7 +89,7 @@ mail_mbox_commit ()
for
(
i
=
1
;
i
<=
total
;
i
++
)
{
if
(
util_get_message
(
mbox
,
i
,
&
msg
,
MSG_ALL
))
if
(
util_get_message
(
mbox
,
i
,
&
msg
))
return
1
;
message_get_attribute
(
msg
,
&
attr
);
...
...
mail/tag.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001 Free Software Foundation, Inc.
Copyright (C) 1999, 2001
, 2002, 2003
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
...
...
@@ -41,7 +41,7 @@ mail_tag (int argc, char **argv)
msgset_t
*
msgset
;
int
action
=
argv
[
0
][
0
]
!=
'u'
;
if
(
msgset_parse
(
argc
,
argv
,
&
msgset
))
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
msgset
))
return
1
;
util_msgset_iterate
(
msgset
,
tag_message
,
(
void
*
)
&
action
);
...
...
mail/write.c
View file @
0775262
/* GNU Mailutils -- a suite of utilities for electronic mail
Copyright (C) 1999, 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 1999, 2001, 2002
, 2003
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
...
...
@@ -47,7 +47,7 @@ mail_write (int argc, char **argv)
free
(
p
);
}
if
(
msgset_parse
(
argc
,
argv
,
&
msglist
))
if
(
msgset_parse
(
argc
,
argv
,
MSG_NODELETED
|
MSG_SILENT
,
&
msglist
))
{
if
(
filename
)
free
(
filename
);
...
...
@@ -81,7 +81,7 @@ mail_write (int argc, char **argv)
off_t
off
=
0
;
size_t
n
=
0
;
if
(
util_get_message
(
mbox
,
mp
->
msg_part
[
0
],
&
msg
,
MSG_NODELETED
))
if
(
util_get_message
(
mbox
,
mp
->
msg_part
[
0
],
&
msg
))
continue
;
message_get_body
(
msg
,
&
bod
);
...
...
Please
register
or
sign in
to post a comment