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
909d29b0
...
909d29b0ebf9fd083c26082232729f04e1e3f86f
authored
2002-08-07 15:29:44 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Use util_getenv(). Honour outfolder variable, when set.
1 parent
d45791ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
mail/copy.c
mail/copy.c
View file @
909d29b
...
...
@@ -45,24 +45,20 @@ mail_copy0 (int argc, char **argv, int mark)
else
filename
=
strdup
(
"mbox"
);
if
(
!
filename
)
return
1
;
if
(
msgset_parse
(
argc
,
argv
,
&
msglist
))
{
if
(
filename
)
free
(
filename
);
free
(
filename
);
return
1
;
}
if
(
sender
)
filename
=
util_outfolder_name
(
util_get_sender
(
msglist
->
msg_part
[
0
],
1
));
if
(
!
filename
)
{
filename
=
util_get_sender
(
msglist
->
msg_part
[
0
],
1
);
if
(
!
filename
)
{
msgset_free
(
msglist
);
return
1
;
}
msgset_free
(
msglist
);
return
1
;
}
if
(
mailbox_create_default
(
&
mbx
,
filename
)
...
...
Please
register
or
sign in
to post a comment