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
bef9b74e
...
bef9b74e4404fd9537b1495cec66721f6833ad5d
authored
2007-07-10 20:48:02 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Minor fixes
1 parent
e2c1ea6b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
11 deletions
examples/url-parse.c
imap4d/search.c
libproto/mbox/folder.c
mailbox/envelope.c
mailbox/mu_auth.c
examples/url-parse.c
View file @
bef9b74
...
...
@@ -19,6 +19,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <mailutils/error.h>
#include <mailutils/errno.h>
#include <mailutils/url.h>
...
...
imap4d/search.c
View file @
bef9b74
...
...
@@ -789,13 +789,12 @@ void
cond_before
(
struct
parsebuf
*
pb
)
{
time_t
t
=
(
time_t
)
_search_arg
(
pb
);
time_t
mesg_time
;
time_t
mesg_time
=
0
;
const
char
*
date
;
mu_envelope_t
env
;
mu_message_get_envelope
(
pb
->
msg
,
&
env
);
if
(
mu_envelope_sget_date
(
env
,
&
date
))
return
0
;
if
(
mu_envelope_sget_date
(
env
,
&
date
)
==
0
)
util_parse_ctime_date
(
date
,
&
mesg_time
);
_search_push
(
pb
,
mesg_time
<
t
);
}
...
...
@@ -859,13 +858,12 @@ void
cond_on
(
struct
parsebuf
*
pb
)
{
time_t
t
=
(
time_t
)
_search_arg
(
pb
);
time_t
mesg_time
;
time_t
mesg_time
=
0
;
const
char
*
date
;
mu_envelope_t
env
;
mu_message_get_envelope
(
pb
->
msg
,
&
env
);
if
(
mu_envelope_sget_date
(
env
,
&
date
))
return
0
;
if
(
mu_envelope_sget_date
(
env
,
&
date
)
==
0
)
util_parse_ctime_date
(
date
,
&
mesg_time
);
_search_push
(
pb
,
t
<=
mesg_time
&&
mesg_time
<=
t
+
86400
);
}
...
...
@@ -904,13 +902,12 @@ void
cond_since
(
struct
parsebuf
*
pb
)
{
time_t
t
=
(
time_t
)
_search_arg
(
pb
);
time_t
mesg_time
;
time_t
mesg_time
=
0
;
const
char
*
date
;
mu_envelope_t
env
;
mu_message_get_envelope
(
pb
->
msg
,
&
env
);
if
(
mu_envelope_sget_date
(
env
,
&
date
))
return
0
;
if
(
mu_envelope_sget_date
(
env
,
&
date
)
==
0
)
util_parse_ctime_date
(
date
,
&
mesg_time
);
_search_push
(
pb
,
mesg_time
>=
t
);
}
...
...
libproto/mbox/folder.c
View file @
bef9b74
...
...
@@ -139,7 +139,6 @@ int
_folder_mbox_init
(
mu_folder_t
folder
)
{
fmbox_t
dfolder
;
size_t
name_len
=
0
;
int
status
=
0
;
/* We create an authority so the API is uniform across the mailbox
...
...
mailbox/envelope.c
View file @
bef9b74
...
...
@@ -23,6 +23,7 @@
#include <stdlib.h>
#include <string.h>
#include <mailutils/errno.h>
#include <mailutils/mutil.h>
#include <envelope0.h>
int
...
...
mailbox/mu_auth.c
View file @
bef9b74
...
...
@@ -402,7 +402,8 @@ _add_module_list (const char *modlist, int (*fun)(const char *name))
if
(
errno
==
ENOENT
)
mu_error
(
"no such module: %s"
,
name
);
else
mu_error
(
"failed to add module %s: %s"
,
strerror
(
errno
));
mu_error
(
"failed to add module %s: %s"
,
name
,
strerror
(
errno
));
exit
(
1
);
}
}
...
...
Please
register
or
sign in
to post a comment