Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
1fcf52ca
Commit
1fcf52ca
authored
12 years ago
by
Steve Holme
Browse files
Options
Downloads
Patches
Plain Diff
imap: Reworked some function descriptions
parent
cbea345f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/imap.c
+23
-7
23 additions, 7 deletions
lib/imap.c
with
23 additions
and
7 deletions
lib/imap.c
+
23
−
7
View file @
1fcf52ca
...
...
@@ -326,10 +326,16 @@ static char *imap_atom(const char *str)
return
newstr
;
}
/* Determines whether the untagged response is related to a specified
command by checking if it is in format "* <command-name> ..." or
"* <number> <command-name> ...". The "* " marker is assumed to have
already been checked by the caller. */
/***********************************************************************
*
* imap_matchresp()
*
* Determines whether the untagged response is related to the specified
* command by checking if it is in format "* <command-name> ..." or
* "* <number> <command-name> ...".
*
* The "* " marker is assumed to have already been checked by the caller.
*/
static
bool
imap_matchresp
(
const
char
*
line
,
size_t
len
,
const
char
*
cmd
)
{
const
char
*
end
=
line
+
len
;
...
...
@@ -361,8 +367,13 @@ static bool imap_matchresp(const char *line, size_t len, const char *cmd)
return
FALSE
;
}
/* Function that checks whether the given string is a valid tagged, untagged
or continuation response which can be processed by the response handler. */
/***********************************************************************
*
* imap_endofresp()
*
* Checks whether the given string is a valid tagged, untagged or continuation
* response which can be processed by the response handler.
*/
static
bool
imap_endofresp
(
struct
connectdata
*
conn
,
char
*
line
,
size_t
len
,
int
*
resp
)
{
...
...
@@ -458,7 +469,12 @@ static bool imap_endofresp(struct connectdata *conn, char *line, size_t len,
return
FALSE
;
/* Nothing for us */
}
/* This is the ONLY way to change IMAP state! */
/***********************************************************************
*
* state()
*
* This is the ONLY way to change IMAP state!
*/
static
void
state
(
struct
connectdata
*
conn
,
imapstate
newstate
)
{
struct
imap_conn
*
imapc
=
&
conn
->
proto
.
imapc
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment