Steve Holme
49341628b5
ftpserver.pl: Moved specifying the test number from the RCPT address
...
...to the client address as this frees the RCPT strings to contain
just an email address and by passing the test number into curl as the
client address remains consistent with POP3 and IMAP tests as they are
specified in the URL.
2013-09-29 10:02:00 +01:00
Steve Holme
ab7e6afd44
ftpserver.pl: Added unwanted argument check to SMTP DATA command handler
2013-09-29 09:25:23 +01:00
Steve Holme
14d8209adc
test906: Fixed type-2 response
2013-09-23 07:10:25 +01:00
Steve Holme
a942d8ff5b
test915: Corrected test number from commit 22bccb0eda
2013-09-23 00:19:56 +01:00
Steve Holme
1695c67818
test906: Fixed type-1 message not handled error
...
...from commit f81d1e1666
due to copy paste error.
2013-09-23 00:15:37 +01:00
Steve Holme
f81d1e1666
tests: Added SMTP AUTH NTLM test
2013-09-22 20:53:29 +01:00
Steve Holme
b71ed1fb3d
tests: Added SMTP multiple and invalid --mail-rcpt test
2013-09-22 20:25:32 +01:00
Steve Holme
86ccfaa3fd
tests: Added SMTP multiple --mail-rcpt test
2013-09-22 20:23:27 +01:00
Steve Holme
3b69462fc0
tests: Added SMTP invalid --mail-rcpt test
2013-09-22 20:12:20 +01:00
Steve Holme
22bccb0eda
tests: Regrouping of SMTP tests
2013-09-22 20:09:57 +01:00
Benoit Sigoure
4f591b9148
test1112: Increase the timeout from 7s to 16s
...
As someone reported on the mailing list a while back, the hard-coded
arbitrary timeout of 7s in test 1112 is not sufficient in some build
environments. At Arista Networks we build and test curl as part of our
automated build system, and we've run into this timeout 170 times so
far. Our build servers are typically quite busy building and testing a
lot of code in parallel, so despite being beefy machines with 32 cores
and 128GB of RAM we still hit this 7s timeout regularly.
URL: http://curl.haxx.se/mail/lib-2010-02/0200.html
2013-09-22 18:23:09 +02:00
Steve Holme
52cefc8cd7
tests: Fixed smtp rcpt to addresses
2013-09-22 15:14:26 +01:00
Steve Holme
8880f84e1a
ftpserver.pl: Expanded the SMTP RCPT handler to validate TO addresses
...
RCPT_smtp() will now check for a correctly formatted TO address which
allows for invalid recipient addresses to be added.
2013-09-22 15:05:43 +01:00
Steve Holme
9d4a8c7936
ftpserver.pl: Added cURL SMTP server detection to HELO command handler
...
As curl will send a HELO command after an negative EHLO response, added
the same detection from commit b07709f741
to the HELO handler to
ensure the test server is identified correctly and an upload isn't
performed.
2013-09-22 13:21:15 +01:00
Steve Holme
fd8dc21fd0
ftpserver.pl: Corrected response code for successful RCPT command
2013-09-22 12:59:28 +01:00
Steve Holme
8ec6486d05
ftpserver.pl: Moved invalid RCPT TO: address detection to RCPT handler
...
Rather than detecting the TO address as missing in the DATA handler,
moved the detection to the RCPT command handler where an error response
can be generated.
2013-09-22 11:03:18 +01:00
Steve Holme
b07709f741
ftpserver.pl: Moved cURL SMTP server detection into EHLO command handler
...
Moved the special SMTP server detection code from the DATA command
handler, which happens further down the operation chain after EHLO,
MAIL and RCPT commands, to the EHLO command as it is the first command
to be generated by a SMTP operation as well as containing the special
"verifiedserver" string from the URL.
This not only makes it easier and quicker to detect but also means that
cURL doesn't need to specify "verifiedserver" as --mail-from and
--mail-rcpt arguments.
More importantly, this also makes the upcoming verification changes to
the RCPT handler easier to implement.
2013-09-21 20:49:23 +01:00
Daniel Stenberg
34df869f99
test1415: adjusted to work for 32bit time_t
...
The libcurl date parser returns INT_MAX for all dates > 2037 so this
test is now made to use 2037 instead of 2038 to work the same for both
32bit and 64bit time_t systems.
2013-09-21 13:46:42 -05:00
Steve Holme
3f04d48495
tests: Reworked existing SMTP tests to be single recipient based
...
...in preparation of upcoming multiple recipient tests.
2013-09-21 19:44:09 +01:00
Steve Holme
517b8e2290
ftpserver.pl: Corrected SMTP QUIT response to be more realistic
2013-09-20 23:08:28 +01:00
Steve Holme
eecb0e969f
ftpserver.pl: Moved SMTP RCPT response text into command handler
2013-09-20 21:25:48 +01:00
Steve Holme
bd7d56ec71
tests: Added SMTP invalid --mail-from test
2013-09-20 07:09:39 +01:00
Steve Holme
89d320c2fd
tests: Updated SMTP AUTH tests to use the new AUTH directive
...
...rather than specify a customised EHLO response.
2013-09-19 20:29:59 +01:00
Steve Holme
b809bafb0c
tests: Corrected test913 as the QUIT response is received
2013-09-19 20:13:08 +01:00
Steve Holme
3b6a1681dc
tests: Added SMTP large message SIZE test
2013-09-19 18:17:11 +01:00
Steve Holme
9300bb826d
ftpserver.pl: Updated email regex from commit 98f7ca7e97
...
...to not be as strict as it was rejecting valid numeric email
addresses.
2013-09-19 12:44:27 +01:00
Steve Holme
dfe7ee1429
tests: Fixed smtp mail from addresses
2013-09-19 07:19:25 +01:00
Steve Holme
841103c776
ftpserver.pl: Standardised CAPA and AUTH responses
2013-09-18 19:38:26 +01:00
Steve Holme
8d2335ca23
ftpserver.pl: Corrected POP3 QUIT reply to be more realistic
2013-09-18 19:37:03 +01:00
Steve Holme
04064e89c1
runtests.pl: Fixed syntax error in commit c873375123
...
Possible unintended interpolation in string at line 796
2013-09-18 19:32:20 +01:00
Steve Holme
c873375123
runtests.pl: Fixed smtp mail from address
...
Following changes to ftpserver.pl fixed the mail from address to be a
correctly formatted address otherwise the server response will be 501
Invalid address.
2013-09-18 18:04:26 +01:00
Steve Holme
62d232c131
ftpserver.pl: Fixed syntax error in commit 98f7ca7e97
...
Can't modify constant item in scalar assignment line 779, near "0;"
2013-09-18 12:58:34 +01:00
Steve Holme
98f7ca7e97
ftpserver.pl: Expanded the SMTP MAIL handler to validate messages
...
MAIl_smtp() will now check for a correctly formatted FROM address as
well as the optional SIZE parameter comparing it against the server
capability when specified.
2013-09-18 07:23:32 +01:00
YAMADA Yasuharu
4cfbb201c4
cookies: add expiration
...
Implement: Expired Cookies These following situation, curl removes
cookie(s) from struct CookieInfo if the cookie expired.
- Curl_cookie_add()
- Curl_cookie_getlist()
- cookie_output()
2013-09-17 23:25:56 +02:00
Steve Holme
dc016567ce
ftpserver.pl: Corrected response code for successful MAIL command
2013-09-17 22:10:17 +01:00
Steve Holme
96b68c57ce
ftpserver.pl: Moved SMTP MAIL handler into own function
2013-09-17 22:09:30 +01:00
Steve Holme
8f5336a2fa
tests: Fixed test 1406 following recent changes in ftpserver.pl
...
By default the mail server doesn't send the SIZE capability but instead
it has to be specified as a supported capability.
2013-09-16 00:24:46 +01:00
Steve Holme
f8a9dbd391
tests: Added test for SMTP SIZE capability
2013-09-16 00:24:30 +01:00
Steve Holme
016879d477
ftpserver.pl: Added the ability to include spaces in capabilities
...
For example:
CAPA "SIZE 1048576" 8BITMIME BINARYMIME
will populate the capabilities list with the following in:
SIZE 1048576
8BITMIME
BINARYMIME
2013-09-15 20:56:16 +01:00
Steve Holme
c03335ec68
ftpserver.pl: Corrected response code for successful SMTP QUIT command
2013-09-15 20:09:49 +01:00
Steve Holme
894585784c
ftpserver.pl: Fixed syntax error in commit 33c1f2876b
...
Can't modify constant item in postincrement line 727, near "i++"
2013-09-15 20:07:43 +01:00
Steve Holme
33c1f2876b
ftpserver.pl: Added CAPA & AUTH directive support to the SMTP EHLO handler
2013-09-15 16:53:20 +01:00
Steve Holme
00ee5c5cf1
ftpserver.pl: Fixed SMTP QUIT handler from dadc495540
2013-09-15 12:47:36 +01:00
Steve Holme
dadc495540
ftpserver.pl: Moved SMTP EHLO and QUIT handlers in own functions
2013-09-15 09:20:53 +01:00
Steve Holme
eae86ba62d
ftpserver.pl: Added support for SMTP HELO command
...
...and updated test902 as explicit HELO response is no longer required.
2013-09-15 09:10:11 +01:00
Steve Holme
e9cca79dd1
ftpserver.pl: Added mailbox check to IMAP SELECT handler
2013-09-15 09:00:13 +01:00
Steve Holme
4ba3b6c05a
ftpserver.pl: Corrected invalid user details check
...
...in both the IMAP LOGIN and POP3 PASS handlers introduced in commit
187ac69374
and 84ad1569e5
respectively.
2013-09-15 00:31:55 +01:00
Steve Holme
187ac69374
ftpserver.pl: Moved IMAP LOGIN handler into own function
2013-09-14 20:52:29 +01:00
Steve Holme
84ad1569e5
ftpserver.pl: Moved POP3 USER and PASS handlers into own functions
2013-09-14 20:46:45 +01:00
Steve Holme
45e0a661ce
ftpserver.pl: Corrected invalid argument check in POP3 TOP handler
...
...which was accidentally introduced in commit 4d6ef6297a
.
2013-09-14 16:18:47 +01:00
Steve Holme
4d6ef6297a
ftpserver.pl: Added capability prerequisite for extended POP3 commands
2013-09-14 15:04:26 +01:00
Steve Holme
b68c52704b
tests: Updated descriptions to be more meaningful
2013-09-14 15:04:25 +01:00
Steve Holme
4f4dc5832d
ftpserver.pl: Added support for IMAP NOOP command
2013-09-14 10:44:54 +01:00
Steve Holme
83f6f58834
tests: Updated descriptions to be more meaningful
2013-09-14 10:41:17 +01:00
Steve Holme
6f5b46855c
ftpserver.pl: Fixed missing comma from 7fd84b14d2
2013-09-12 11:52:19 +01:00
Steve Holme
5f93c5d658
ftpserver.pl: Fixed variable error introduced in 7fd84b14d2
...
Global symbol "$mailbox" requires explicit package name
2013-09-12 07:10:41 +01:00
Steve Holme
7fd84b14d2
ftpserver.pl: Added support for UID command
2013-09-11 20:27:13 +01:00
Steve Holme
f2403140f9
ftpserver.pl: Added support for LSUB command
2013-09-11 20:25:48 +01:00
Steve Holme
3f6991766f
ftpserver.pl: Added support for IMAP COPY command
2013-09-11 19:57:29 +01:00
Steve Holme
cfe5f7dbf4
ftpserver.pl: Added support for IMAP CLOSE and EXPUNGE commands
2013-09-11 18:19:38 +01:00
Steve Holme
5840c918d5
ftpserver.pl: Added support for POP3 RSET command
2013-09-11 18:11:33 +01:00
Steve Holme
b0afb00000
ftpserver.pl: Added the ability to remember what messages are deleted
...
...as this will be required for IMAP CLOSE and EXPUNGE commands as well
as the POP3 RSET command.
2013-09-11 18:10:28 +01:00
Steve Holme
eb6314260d
tests: Added test for POP3 TOP command
2013-09-09 17:13:28 +01:00
Steve Holme
313c38c9de
ftpserver.pl: Added support for POP3 TOP command
2013-09-09 17:13:25 +01:00
Steve Holme
ae6096471a
tests: Added test for POP3 UIDL command
2013-09-09 17:10:40 +01:00
Steve Holme
66ea5c415b
ftpserver.pl: Added support for POP3 UIDL command
2013-09-09 17:10:38 +01:00
Steve Holme
ee5e2cf6cb
ftpserver.pl: Fixed empty array checks
...
...from commits 28427b4083
and e8313697b6
.
2013-09-08 23:59:49 +01:00
Steve Holme
e8313697b6
ftpserver: Reworked AUTH support to allow for specifying the mechanisms
...
Renamed SUPPORTAUTH to AUTH and added support for specifying a list of
supported SASL mechanisms to return to the client.
Additionally added the directive to the FILEFORMAT document.
2013-09-08 21:47:56 +01:00
Steve Holme
28427b4083
ftpserver: Reworked CAPA support to allow for specifying the capabilities
...
Renamed SUPPORTCAPA to CAPA and added support for specifying a list of
supported capabilities to return to the client.
Additionally added the directive to the FILEFORMAT document.
2013-09-08 21:45:36 +01:00
Steve Holme
131649a121
ftpserver.pl: Corrected POP3 LIST as message numbers should be contiguous
...
The message numbers given in the LIST response are an index into the
list, which are only valid for the current session, rather than being a
unique message identifier. An index would only be missing from the LIST
response if a DELE command had been issued within the same session and
had not been committed by the end of session QUIT command. Once
committed the POP3 server will regenerate the message numbers in the
next session to be contiguous again. As such our LIST response should
list message numbers contiguously until we support a DELE command in the
same session.
Should a POP3 user require the unique message ID for any or all
messages then they should use the extended UIDL command. This command
will be supported by the test ftpserver in an upcoming commit.
2013-09-08 20:19:20 +01:00
Steve Holme
241aeadc50
tests: Updated descriptions to be more meaningful
2013-09-08 16:59:57 +01:00
Steve Holme
669e4ca366
tests: Added test for POP3 NOOP command
2013-09-08 16:59:55 +01:00
Steve Holme
c9617d9f93
ftpserver.pl: Added support for POP3 NOOP command
2013-09-08 16:45:52 +01:00
Steve Holme
f8986a2b34
ftpserver.pl: Fixed 'Use of uninitialized value $args in string ne'
2013-09-08 16:39:41 +01:00
Steve Holme
1b96ce04b2
tests: Added test for POP3 STAT command
2013-09-08 08:52:53 +01:00
Steve Holme
f851df88fb
ftpserver.pl: Added support for POP STAT command
2013-09-08 08:49:40 +01:00
Steve Holme
18c595fde2
ftpserver.pl: Moved POP3 QUIT handler into own function
2013-09-08 08:44:49 +01:00
Steve Holme
56abdd07e7
ftpserver.pl: Reordered the POP3 handlers to be alphabetical
...
In preparation for additional POP3 tests, re-ordered the command
function defintions to be sorted alphabetically.
2013-09-08 02:48:34 +01:00
Steve Holme
7e06c336d6
ftpserver.pl: Corrected misaligned indentation in POP3 handlers
...
Fixed incorrect indentation used in both the RETR_pop3 and LIST_pop3
functions which was 5 and 9 characters rather than 4 and 8.
2013-09-08 02:48:33 +01:00
Steve Holme
8a4069fb17
tests: Added test for POP3 DELE command
2013-09-07 19:49:12 +01:00
Steve Holme
243ad539fe
ftpserver.pl: Added support for POP3 DELE command
2013-09-07 19:31:46 +01:00
Daniel Stenberg
9fa42beddc
urlglob: improved error messages and column number on bad use
...
Introduce a convenience macro and keep of the column better so that it
can point out the offending column better.
Updated test 75 accordingly.
2013-09-06 23:27:47 +02:00
Steve Holme
f73f052010
lib1512.c: Fixed compilation warning
...
An enumerated type is mixed with another type.
...as well as a small coding style error.
2013-09-02 20:39:53 +01:00
Guenter Knauf
97ed1ac905
Killed warning 'res' might be used uninitialized.
2013-09-01 23:08:29 +02:00
Steve Holme
83f5332536
tests: Added test for IMAP CHECK command
2013-08-31 18:40:48 +01:00
Steve Holme
497775024c
ftpserver.pl: Added support for the IMAP CHECK command
2013-08-31 18:40:46 +01:00
Steve Holme
5eea336d01
ftpserver.pl: Corrected flawed logic in commit 1ca6ed7b75
2013-08-31 11:10:20 +01:00
Steve Holme
1ca6ed7b75
ftpserver.pl: Added argument check to IMAP command handlers
...
Added BAD argument check to the following IMAP command handlers:
APPEND, STORE, LIST, EXAMINE, STATUS and SEARCH
2013-08-31 10:41:25 +01:00
Steve Holme
aa51d3a139
ftpserver.pl: More whitespace corrections
...
LIST_imap() had a second level of indentation at 9 characters and not 8.
2013-08-31 10:35:05 +01:00
Steve Holme
64c8909071
ftpserver.pl: Small correction tidy up
...
Corrected some IMAP variable names and whitespace issues.
2013-08-30 22:11:17 +01:00
Steve Holme
75b52f9dcc
tests: Added tests for IMAP CREATE, DELETE and RENAME commands
2013-08-30 18:56:56 +01:00
Daniel Stenberg
221825aebf
ftpserver: Bareword "to_mailbox" not allowed
...
Added missing $
2013-08-30 15:21:39 +02:00
Steve Holme
9d35ad9552
ftpserver.pl: Added support for IMAP CREATE, DELETE and RENAME commands
2013-08-30 07:35:00 +01:00
Steve Holme
2ef83136d4
ftpserver.pl: Updated IMAP EXAMINE handler to use dynamic test data
2013-08-29 20:08:27 +01:00
Daniel Stenberg
d737aa19c8
unit1304: include memdebug and free everything correctly
2013-08-29 12:50:15 +02:00
Steve Holme
6a353049ac
ftpserver.pl: Added SELECT check to IMAP FETCH and STORE handlers
2013-08-29 07:20:03 +01:00
Steve Holme
49e3d803ab
ftpserver.pl: Corrected accidental move of logmsg() call
...
Corrected the call to logmsg() in the IMAP SEARCH handler from commit
4ae7b7ea69
as it should have been outputting the what argument and
not the test number.
2013-08-28 22:58:33 +01:00
Daniel Stenberg
b644ae68c8
ftpserver: add missing '}' from 4ae7b7ea69
2013-08-28 22:59:19 +02:00
Steve Holme
4ae7b7ea69
ftpserver.pl: Added SELECT check to IMAP SEARCH command
2013-08-28 18:56:19 +01:00
Steve Holme
13a2e32548
ftpserver.pl: Fixed IMAP SEARCH command
2013-08-28 18:51:59 +01:00