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
3543c1ab
...
3543c1aba30a7dcd34f45d125955e4272b38096b
authored
2003-02-13 16:37:24 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use mh_.*_to_message.
1 parent
236984a1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
16 deletions
mh/send.c
mh/send.c
View file @
3543c1a
...
...
@@ -230,7 +230,7 @@ opt_handler (int key, char *arg, void *unused)
return
0
;
}
static
int
static
void
watch_printf
(
const
char
*
fmt
,
...)
{
va_list
ap
;
...
...
@@ -249,24 +249,24 @@ draft_name()
return
mh_expand_name
(
draftfolder
,
"draft"
,
0
);
}
static
list_t
m
box
_list
;
static
list_t
m
esg
_list
;
static
mh_context_t
*
mts_profile
;
int
check_file
(
char
*
name
)
{
m
ailbox_t
mbox
;
m
essage_t
msg
;
m
box
=
mh_open_msg_fil
e
(
draft_folder
,
name
);
if
(
!
m
box
)
m
sg
=
mh_file_to_messag
e
(
draft_folder
,
name
);
if
(
!
m
sg
)
return
1
;
if
(
!
m
box_list
&&
list_create
(
&
mbox
_list
))
if
(
!
m
esg_list
&&
list_create
(
&
mesg
_list
))
{
mh_error
(
_
(
"can't create m
ailbox
list"
));
mh_error
(
_
(
"can't create m
essage
list"
));
return
1
;
}
return
list_append
(
m
box_list
,
mbox
);
return
list_append
(
m
esg_list
,
msg
);
}
void
...
...
@@ -343,19 +343,13 @@ create_message_id (header_t hdr)
int
_action_send
(
void
*
item
,
void
*
data
)
{
mailbox_t
mbox
=
item
;
message_t
msg
;
message_t
msg
=
item
;
int
rc
;
mailer_t
mailer
;
header_t
hdr
;
size_t
n
;
WATCH
((
"Getting message"
));
if
((
rc
=
mailbox_get_message
(
mbox
,
1
,
&
msg
)))
{
mh_error
(
_
(
"cannot get message: %s"
),
mu_strerror
(
rc
));
return
1
;
}
if
(
message_get_header
(
msg
,
&
hdr
)
==
0
)
{
...
...
@@ -427,7 +421,7 @@ send (int argc, char **argv)
return
1
;
}
rc
=
list_do
(
m
box
_list
,
_action_send
,
NULL
);
rc
=
list_do
(
m
esg
_list
,
_action_send
,
NULL
);
return
rc
;
}
...
...
Please
register
or
sign in
to post a comment