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
62ec9eff
...
62ec9eff1a5b226e85d824bc15d73bde75c5b8dd
authored
2002-08-26 17:06:32 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(imap4d_append0): Skip leading whitespace.
1 parent
da88ef54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
imap4d/append.c
imap4d/append.c
View file @
62ec9ef
...
...
@@ -26,14 +26,14 @@ imap4d_append (struct imap4d_command *command, char *arg)
int
flags
=
0
;
mailbox_t
dest_mbox
=
NULL
;
int
status
;
mboxname
=
util_getword
(
arg
,
&
sp
);
if
(
!
mboxname
)
return
util_finish
(
command
,
RESP_BAD
,
"Too few arguments"
);
if
(
*
sp
==
'('
&&
util_parse_attributes
(
sp
+
1
,
&
sp
,
&
flags
))
return
util_finish
(
command
,
RESP_BAD
,
"Missing closing parenthesis"
);
mboxname
=
namespace_getfullpath
(
mboxname
,
"/"
);
if
(
!
mboxname
)
return
util_finish
(
command
,
RESP_NO
,
"Couldn't open mailbox"
);
...
...
@@ -69,7 +69,7 @@ imap4d_append0 (mailbox_t mbox, int flags, char *text)
struct
tm
*
tm
;
time_t
t
;
char
date
[
80
];
if
(
mailbox_create
(
&
tmp
,
"/dev/null"
))
return
1
;
if
(
mailbox_open
(
tmp
,
MU_STREAM_READ
)
!=
0
)
...
...
@@ -82,6 +82,9 @@ imap4d_append0 (mailbox_t mbox, int flags, char *text)
return
1
;
}
while
(
*
text
&&
isspace
(
*
text
))
text
++
;
/* If a date_time is specified, the internal date SHOULD be set in the
resulting message; otherwise, the internal date of the resulting
message is set to the current date and time by default. */
...
...
@@ -126,4 +129,3 @@ imap4d_append0 (mailbox_t mbox, int flags, char *text)
return
rc
;
}
...
...
Please
register
or
sign in
to post a comment