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
646f136f
...
646f136fd784383d331020fb54b391fbecc0caea
authored
2002-05-10 12:41:37 +0000
by
Sam Roberts
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Group names no longer appearing in address lists (still parsed correctly).
1 parent
0a76ac8e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
mailbox/parse822.c
mailbox/parse822.c
View file @
646f136
...
...
@@ -53,14 +53,14 @@ struct parse822_token_t {
const char* b; // beginning of token
const char* e; // one past end of token
}
typedef struc parse822_token_t TOK;
typedef struc
t
parse822_token_t TOK;
Then I can have str_append_token(), and the lexer functions can
look like:
int parse822_atom(const char** p, const char* e, TOK* atom);
Just a quick though, I'll have to see how many functions that will
Just a quick though
t
, I'll have to see how many functions that will
actually help.
- get example addresses from rfc2822, and from the perl code.
...
...
@@ -708,6 +708,11 @@ int parse822_address(const char** p, const char* e, address_t* a)
return
rc
;
}
/* No longer put groups into an address node, it wasn't useful, was
* troublesome, and since there wasn't an end-group marker, wasn't
* even conceivably useful.
*/
#undef ADD_GROUPS
int
parse822_group
(
const
char
**
p
,
const
char
*
e
,
address_t
*
a
)
{
/* group = phrase ":" [#mailbox] ";" */
...
...
@@ -732,7 +737,7 @@ int parse822_group(const char** p, const char* e, address_t* a)
str_free
(
&
phrase
);
return
rc
;
}
#ifdef ADD_GROUPS
/* fake up an address node for the group's descriptive phrase, if
* it fails, clean-up will happen after the loop
*/
...
...
@@ -741,6 +746,9 @@ int parse822_group(const char** p, const char* e, address_t* a)
}
else
{
str_free
(
&
phrase
);
}
#else
str_free
(
&
phrase
);
#endif
/* Basically, on each loop, we may find a mailbox, but we must find
* a comma after the mailbox, otherwise we've popped off the end
...
...
Please
register
or
sign in
to post a comment