Displaying 4 results from an estimated 4 matches for "badurl".
2013 Jul 22
2
script to test CATENATE
......
creating templates mailbox...
append1...
Append succeeded
append2...
Append succeeded
logout...
success
$ ./catenate.pl --host your.test.server --user testuser --password 1234
connecting (imaps)...
capability...
logging in...
append1...
Append failed as it should have (bad url): <append1 NO [BADURL ;invalid;] Invalid IMAP URL: Unexpected IMAP URL path segment: `;invalid;'.>
append2...
Append failed as it should have (bad url): <append2 NO [BADURL /inbox/;uid=99999999] Message not found.>
append3...
Append succeeded
[...]
All tests passed.
$
If it concludes with anything other t...
2013 Apr 29
1
CATENATE doesn't support literal+ url
...IMAP command : Unknown command.
barbaz BAD Error in IMAP command : Unknown command.
) BAD Error in IMAP command : Unknown command.
a4 OK NOOP completed.
Example using Apple's enhanced dovecot in OS X Server:
a3 append inbox catenate (url {9+}
/some-url text {16+}
foobar
barbaz
)
a4 noop
a3 NO [BADURL /some-url] missing or invalid uid
a4 OK NOOP completed.
I believe the RFCs indicate that nonsync literal URLs should be permitted.
RFC 4469 section 5:
append-data =/ "CATENATE" SP "(" cat-part *(SP cat-part) ")"
cat-part = text-literal / url
url = "URL&q...
2013 May 03
1
CATENATE mis-reads literal after bad URL
...rtant single leading space character in the snippet I quoted so this time I'm prefixing all the lines to avoid that. In case it's lost again, there's a space before the word "url" below.)
| b append inbox catenate (text {8}
| + OK
| foobar
| url /a-bad-url text {8}
| b NO [BADURL /a-bad-url] Invalid messagepart IMAP URL.
| c noop
| d noop
| d OK NOOP completed.
| e logout
| * BYE Logging out
| e OK Logout completed.
Note that the command with tag "c" is lost. I think it shouldn't be, because the NO was reported to the client without sending a continuation (+...
2010 Apr 09
4
Patch: support URLAUTH, BURL, CATENATE
...t;client_output;
+ cfctx->ctx->client->output_squelch = FALSE;
+
+ if (toobig)
+ client_send_tagline(cfctx->ctx->cmd,
+ "NO [TOOBIG] Resulting message too large");
+ else if (error != NULL)
+ client_send_tagline(cfctx->ctx->cmd,
+ t_strconcat("NO [BADURL ",
+ imap_url_sanitize(cfctx->url),
+ "] ", error, NULL));
+ return error == NULL && !toobig;
+}
+
+static bool catenate_url(struct cmd_append_context *ctx, const char *url)
+{
+ struct imap_url_parts enc_parts, dec_parts;
+ const char *error = NULL;
+ struct cat...