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
f426a43d
...
f426a43db86d5e2ece970b3bf6ddaf50d84b9714
authored
2002-01-19 16:51:06 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Append to INBOX if an explicit path wasn't supplied.
1 parent
26c39af1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
mailbox/mbx_imap.c
mailbox/mbx_imap.c
View file @
f426a43
...
...
@@ -889,16 +889,22 @@ imap_append_message0 (mailbox_t mailbox, message_t msg)
url_get_path
(
mailbox
->
url
,
NULL
,
0
,
&
n
);
if
(
n
==
0
)
{
free
(
abuf
);
return
EINVAL
;
if
(
!
(
path
=
strdup
(
"INBOX"
)))
{
free
(
abuf
);
return
ENOMEM
;
}
}
path
=
calloc
(
n
+
1
,
sizeof
(
*
path
));
if
(
path
==
NULL
)
else
{
free
(
abuf
);
return
ENOMEM
;
path
=
calloc
(
n
+
1
,
sizeof
(
*
path
));
if
(
path
==
NULL
)
{
free
(
abuf
);
return
ENOMEM
;
}
url_get_path
(
mailbox
->
url
,
path
,
n
+
1
,
NULL
);
}
url_get_path
(
mailbox
->
url
,
path
,
n
+
1
,
NULL
);
}
/* FIXME: we need to get the envelope_date and use it.
...
...
@@ -928,7 +934,7 @@ imap_append_message0 (mailbox_t mailbox, message_t msg)
CHECK_EAGAIN
(
f_imap
,
status
);
MAILBOX_DEBUG0
(
mailbox
,
MU_DEBUG_PROT
,
f_imap
->
buffer
);
/* If we did not receive the continuation token, it is an error
bail out. */
bail out. */
if
(
f_imap
->
buffer
[
0
]
!=
'+'
)
{
status
=
EACCES
;
...
...
@@ -970,7 +976,7 @@ imap_append_message0 (mailbox_t mailbox, message_t msg)
MAILBOX_DEBUG0
(
m_imap
->
mailbox
,
MU_DEBUG_PROT
,
f_imap
->
buffer
);
default:
/* mu_error ("imap_append: unknow state\n"); */
/* mu_error ("imap_append: unknow
n
state\n"); */
break
;
}
f_imap
->
state
=
IMAP_NO_STATE
;
...
...
Please
register
or
sign in
to post a comment