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
c235ac30
...
c235ac300d526c3f33c55633fd477d36d17c6387
authored
2005-06-23 13:22:28 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(scm_mu_mail_directory,scm_mu_folder_directory): New function
1 parent
65072267
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
libmu_scm/mu_mailbox.c
libmu_scm/mu_mailbox.c
View file @
c235ac3
...
...
@@ -104,6 +104,36 @@ mu_scm_is_mailbox (SCM scm)
/* ************************************************************************* */
/* Guile primitives */
SCM_DEFINE
(
scm_mu_mail_directory
,
"mu-mail-directory"
,
0
,
1
,
0
,
(
SCM
URL
),
""
)
#define FUNC_NAME s_scm_mu_mail_directory
{
if
(
!
SCM_UNBNDP
(
URL
))
{
SCM_ASSERT
(
SCM_NIMP
(
URL
)
&&
SCM_STRINGP
(
URL
),
URL
,
SCM_ARG1
,
FUNC_NAME
);
mu_set_mail_directory
(
SCM_STRING_CHARS
(
URL
));
}
return
scm_makfrom0str
(
mu_mail_directory
());
}
#undef FUNC_NAME
SCM_DEFINE
(
scm_mu_folder_directory
,
"mu-folder-directory"
,
0
,
1
,
0
,
(
SCM
URL
),
""
)
#define FUNC_NAME s_scm_mu_folder_directory
{
if
(
!
SCM_UNBNDP
(
URL
))
{
SCM_ASSERT
(
SCM_NIMP
(
URL
)
&&
SCM_STRINGP
(
URL
),
URL
,
SCM_ARG1
,
FUNC_NAME
);
mu_set_folder_directory
(
SCM_STRING_CHARS
(
URL
));
}
return
scm_makfrom0str
(
mu_folder_directory
());
}
#undef FUNC_NAME
SCM_DEFINE
(
mu_mailbox_open
,
"mu-mailbox-open"
,
2
,
0
,
0
,
(
SCM
URL
,
SCM
MODE
),
"Opens a mailbox specified by URL."
)
...
...
Please
register
or
sign in
to post a comment