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
5706f6e6
...
5706f6e686fe0b902e44b066af4b1bd398bddd02
authored
2002-01-19 20:26:26 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
mailbox_has_debug(): wasn't a way to see if a mailbox had one
1 parent
7071df45
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
include/mailutils/mailbox.h
mailbox/mailbox.c
include/mailutils/mailbox.h
View file @
5706f6e
...
...
@@ -86,6 +86,7 @@ extern int mailbox_get_property __P ((mailbox_t, property_t *));
extern
int
mailbox_get_url
__P
((
mailbox_t
,
url_t
*
));
/* For any debuging */
extern
int
mailbox_has_debug
__P
((
mailbox_t
));
extern
int
mailbox_get_debug
__P
((
mailbox_t
,
mu_debug_t
*
));
extern
int
mailbox_set_debug
__P
((
mailbox_t
,
mu_debug_t
));
...
...
mailbox/mailbox.c
View file @
5706f6e
...
...
@@ -29,7 +29,7 @@
/* The Mailbox Factory.
Create an iterator for registrar and see if any url scheme match,
Then we call the mailbox's url_create() to parse the URL. Last
initi
lia
ze the concrete mailbox and folder. */
initi
ali
ze the concrete mailbox and folder. */
int
mailbox_create
(
mailbox_t
*
pmbox
,
const
char
*
name
)
{
...
...
@@ -378,6 +378,15 @@ mailbox_get_property (mailbox_t mbox, property_t *pproperty)
}
int
mailbox_has_debug
(
mailbox_t
mailbox
)
{
if
(
mailbox
==
NULL
)
return
0
;
return
mailbox
->
debug
?
1
:
0
;
}
int
mailbox_set_debug
(
mailbox_t
mbox
,
mu_debug_t
debug
)
{
if
(
mbox
==
NULL
)
...
...
@@ -385,6 +394,8 @@ mailbox_set_debug (mailbox_t mbox, mu_debug_t debug)
if
(
mbox
->
debug
)
mu_debug_destroy
(
&
mbox
->
debug
,
mbox
);
mbox
->
debug
=
debug
;
if
(
!
folder_has_debug
(
mbox
->
folder
))
folder_set_debug
(
mbox
->
folder
,
debug
);
return
0
;
}
...
...
Please
register
or
sign in
to post a comment