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
1b7d1a92
...
1b7d1a926ae9395aadd180fe7d6f715f9a074217
authored
2001-06-26 14:04:49 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Implemented
1 parent
559e294d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
3 deletions
mail/followup.c
mail/followup.c
View file @
1b7d1a9
...
...
@@ -25,7 +25,41 @@
int
mail_followup
(
int
argc
,
char
**
argv
)
{
fprintf
(
ofile
,
"Function not implemented in %s line %d
\n
"
,
__FILE__
,
__LINE__
);
return
1
;
message_t
msg
;
header_t
hdr
;
char
*
to
=
NULL
,
*
subj
=
NULL
;
char
*
str
;
int
i
,
num
,
*
msglist
;
char
*
savefile
=
NULL
;
num
=
util_expand_msglist
(
argc
,
argv
,
&
msglist
);
if
(
mailbox_get_message
(
mbox
,
cursor
,
&
msg
))
{
fprintf
(
ofile
,
"%d: can't get message
\n
"
,
cursor
);
free
(
msglist
);
return
1
;
}
/* Create subject value */
message_get_header
(
msg
,
&
hdr
);
header_aget_value
(
hdr
,
MU_HEADER_SUBJECT
,
&
str
);
util_strcat
(
&
subj
,
"Re: "
);
util_strcat
(
&
subj
,
str
);
free
(
str
);
/* Generate "to" list */
to
=
util_get_sender
(
cursor
,
0
);
/* Add authors of the subsequent messages to the to list
(or should it be cc?)*/
for
(
i
=
1
;
i
<
num
;
i
++
)
util_strcat
(
&
to
,
util_get_sender
(
msglist
[
i
],
0
));
free
(
msglist
);
fprintf
(
ofile
,
"To: %s
\n
"
,
to
);
fprintf
(
ofile
,
"Subject: %s
\n\n
"
,
subj
);
return
mail_send0
(
to
,
NULL
,
NULL
,
subj
,
isupper
(
argv
[
0
][
0
]));
}
...
...
Please
register
or
sign in
to post a comment