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
8e5eec00
...
8e5eec0070d45dedc5c99ff51cc24af87b79e66f
authored
2002-10-03 14:32:47 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Removed unneded typecasts.
1 parent
314ef986
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
16 deletions
mail/followup.c
mail/mailline.c
mail/shell.c
mail/followup.c
View file @
8e5eec0
...
...
@@ -34,21 +34,21 @@ mail_followup (int argc, char **argv)
compose_init
(
&
env
);
if
(
msgset_parse
(
argc
,
argv
,
&
msglist
))
return
1
;
return
1
;
if
(
mailbox_get_message
(
mbox
,
cursor
,
&
msg
))
if
(
mailbox_get_message
(
mbox
,
cursor
,
&
msg
))
{
util_error
(
"%d: can't get message"
,
cursor
);
util_error
(
"%d: can't get message"
,
cursor
);
msgset_free
(
msglist
);
return
1
;
}
/* Create subject value */
message_get_header
(
msg
,
&
hdr
);
if
(
header_aget_value
(
hdr
,
MU_HEADER_SUBJECT
,
&
str
)
==
0
)
message_get_header
(
msg
,
&
hdr
);
if
(
header_aget_value
(
hdr
,
MU_HEADER_SUBJECT
,
&
str
)
==
0
)
{
char
*
p
=
NULL
;
if
(
strncasecmp
(
str
,
"Re:"
,
3
))
util_strcat
(
&
p
,
"Re: "
);
util_strcat
(
&
p
,
str
);
...
...
@@ -62,20 +62,19 @@ mail_followup (int argc, char **argv)
COMPOSE_SINGLE_LINE
);
/* Add authors of the subsequent messages to the to list
(or should it be cc?)*/
(or should it be cc?)
*/
for
(
mp
=
msglist
;
mp
;
mp
=
mp
->
next
)
compose_header_set
(
&
env
,
MU_HEADER_TO
,
util_get_sender
(
mp
->
msg_part
[
0
],
0
),
util_get_sender
(
mp
->
msg_part
[
0
],
0
),
COMPOSE_SINGLE_LINE
);
msgset_free
(
msglist
);
msgset_free
(
msglist
);
fprintf
(
ofile
,
"To: %s
\n
"
,
compose_header_get
(
&
env
,
MU_HEADER_TO
,
""
));
fprintf
(
ofile
,
"To: %s
\n
"
,
compose_header_get
(
&
env
,
MU_HEADER_TO
,
""
));
fprintf
(
ofile
,
"Subject: %s
\n\n
"
,
compose_header_get
(
&
env
,
MU_HEADER_SUBJECT
,
""
));
status
=
mail_send0
(
&
env
,
isupper
(
argv
[
0
][
0
]));
status
=
mail_send0
(
&
env
,
isupper
(
argv
[
0
][
0
]));
compose_destroy
(
&
env
);
return
status
;
}
...
...
mail/mailline.c
View file @
8e5eec0
...
...
@@ -88,7 +88,7 @@ ml_readline_init ()
return
;
#ifdef WITH_READLINE
rl_readline_name
=
(
char
*
)
"mail"
;
rl_readline_name
=
"mail"
;
rl_attempted_completion_function
=
(
CPPFunction
*
)
ml_command_completion
;
rl_getc_function
=
ml_getc
;
#endif
...
...
mail/shell.c
View file @
8e5eec0
...
...
@@ -52,8 +52,8 @@ mail_shell (int argc, char **argv)
argcv_string
(
argc
-
1
,
&
argv
[
1
],
&
buf
);
argvec
[
0
]
=
getenv
(
"SHELL"
);
argvec
[
1
]
=
(
char
*
)
"-c"
;
argvec
[
0
]
=
getenv
(
"SHELL"
);
argvec
[
1
]
=
"-c"
;
argvec
[
2
]
=
buf
;
argvec
[
3
]
=
NULL
;
...
...
Please
register
or
sign in
to post a comment