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
2862b43c
...
2862b43c4d578e7ba0ffd7d58df967e33183198c
authored
2006-04-05 16:15:05 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
(is_atom): New function.
1 parent
8a3fd3b7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletions
imap4d/util.c
imap4d/util.c
View file @
2862b43
...
...
@@ -1279,7 +1279,8 @@ util_run_events (int old_state, int new_state)
ev
.
new_state
=
new_state
;
mu_list_get_iterator
(
event_list
,
&
itr
);
for
(
mu_iterator_first
(
itr
);
!
mu_iterator_is_done
(
itr
);
mu_iterator_next
(
itr
))
for
(
mu_iterator_first
(
itr
);
!
mu_iterator_is_done
(
itr
);
mu_iterator_next
(
itr
))
{
struct
state_event
*
p
;
mu_iterator_current
(
itr
,
(
void
**
)
&
p
);
...
...
@@ -1298,3 +1299,17 @@ util_chdir (const char *homedir)
mu_error
(
"Cannot change to home directory `%s': %s"
,
homedir
,
mu_strerror
(
errno
));
}
int
is_atom
(
const
char
*
s
)
{
if
(
strpbrk
(
s
,
"(){
\t
%*
\"\\
"
))
return
0
;
for
(;
*
s
;
s
++
)
{
if
(
*
(
const
unsigned
char
*
)
s
>
127
||
iscntrl
(
*
s
))
return
0
;
}
return
1
;
}
...
...
Please
register
or
sign in
to post a comment