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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
mail/copy.c
mail/copy.c
View file @
909d29b
...
...
@@ -45,9 +45,6 @@ mail_copy0 (int argc, char **argv, int mark)
else
filename
=
strdup
(
"mbox"
);
if
(
!
filename
)
return
1
;
if
(
msgset_parse
(
argc
,
argv
,
&
msglist
))
{
if
(
filename
)
...
...
@@ -56,14 +53,13 @@ mail_copy0 (int argc, char **argv, int mark)
}
if
(
sender
)
{
filename
=
util_get_sender
(
msglist
->
msg_part
[
0
],
1
);
filename
=
util_outfolder_name
(
util_get_sender
(
msglist
->
msg_part
[
0
],
1
));
if
(
!
filename
)
{
msgset_free
(
msglist
);
return
1
;
}
}
if
(
mailbox_create_default
(
&
mbx
,
filename
)
||
mailbox_open
(
mbx
,
MU_STREAM_WRITE
|
MU_STREAM_CREAT
))
...
...
Please
register
or
sign in
to post a comment