# This file is part of Mailutils testsuite.
# Copyright (C) 2002, 2007 Free Software Foundation
#  
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#   
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#  
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 
#
# NOTE: Expected lines must be indented with exactly one tab character.

scheme: => SUCCESS
	scheme <scheme>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path <>
	query <>

scheme:/absolute/path => SUCCESS
	scheme <scheme>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </absolute/path>
	query <>

scheme:relative/path => SUCCESS
	scheme <scheme>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path <relative/path>
	query <>

scheme:///absolute/path => SUCCESS
	scheme <scheme>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </absolute/path>
	query <>

scheme://%75%73%65%72:%70%61%73%73@%68%6f%73%74 => SUCCESS
	scheme <scheme>
	user <user>
	passwd <pass>
	auth <>
	host <hest>
	port 0
	path <>
	query <>

ftp://user:pass@host//a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <pass>
	auth <>
	host <host>
	port 0
	path </a/path>
	query <>

ftp://:pass@host//a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <pass>
	auth <>
	host <host>
	port 0
	path </a/path>
	query <>

ftp://user:@host//a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <>
	auth <>
	host <host>
	port 0
	path </a/path>
	query <>

ftp://user:pass@//a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <pass>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

ftp://user:@//a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

ftp://:@host//a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <host>
	port 0
	path </a/path>
	query <>

ftp://:pass@//a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <pass>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

ftp://:@//a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

ftp://://a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

ftp://@//a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

ftp:/a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

ftp://user:pass@host/a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <pass>
	auth <>
	host <host>
	port 0
	path <a/path>
	query <>

ftp://:pass@host/a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <pass>
	auth <>
	host <host>
	port 0
	path <a/path>
	query <>

ftp://user:@host/a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <>
	auth <>
	host <host>
	port 0
	path <a/path>
	query <>

ftp://user:pass@/a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <pass>
	auth <>
	host <>
	port 0
	path <a/path>
	query <>

ftp://user:@/a/path => SUCCESS
	scheme <ftp>
	user <user>
	passwd <>
	auth <>
	host <>
	port 0
	path <a/path>
	query <>

ftp://:@host/a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <host>
	port 0
	path <a/path>
	query <>

ftp://:pass@/a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <pass>
	auth <>
	host <>
	port 0
	path <a/path>
	query <>

ftp://:@/a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path <a/path>
	query <>

ftp://:/a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path <a/path>
	query <>

ftp://@/a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path <a/path>
	query <>

ftp:///a/path => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </a/path>
	query <>

pop://pop.example.net => SUCCESS
	scheme <pop>
	user <>
	passwd <>
	auth <>
	host <pop.example.net>
	port 0
	path <>
	query <>

pop://user@pop.example.net => SUCCESS
	scheme <pop>
	user <user>
	passwd <>
	auth <>
	host <pop.example.net>
	port 0
	path <>
	query <>

pop://user:passwd@pop.example.net => SUCCESS
	scheme <pop>
	user <user>
	passwd <passwd>
	auth <>
	host <pop.example.net>
	port 0
	path <>
	query <>

pop://user;auth=*@pop.example.net => SUCCESS
	scheme <pop>
	user <user>
	passwd <>
	auth <*>
	host <pop.example.net>
	port 0
	path <>
	query <>

pop://pop.example.net:111 => SUCCESS
	scheme <pop>
	user <>
	passwd <>
	auth <>
	host <pop.example.net>
	port 111
	path <>
	query <>

pop://user@pop.example.net:111 => SUCCESS
	scheme <pop>
	user <user>
	passwd <>
	auth <>
	host <pop.example.net>
	port 111
	path <>
	query <>

pop://user:passwd@pop.example.net:111 => SUCCESS
	scheme <pop>
	user <user>
	passwd <passwd>
	auth <>
	host <pop.example.net>
	port 111
	path <>
	query <>

pop://user;auth=*@pop.example.net:111 => SUCCESS
	scheme <pop>
	user <user>
	passwd <>
	auth <*>
	host <pop.example.net>
	port 111
	path <>
	query <>

imap://imap.example.net => SUCCESS
	scheme <imap>
	user <>
	passwd <>
	auth <>
	host <imap.example.net>
	port 0
	path <>
	query <>

imap://user@imap.example.net => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <>
	host <imap.example.net>
	port 0
	path <>
	query <>

imap://user:passwd@imap.example.net => SUCCESS
	scheme <imap>
	user <user>
	passwd <passwd>
	auth <>
	host <imap.example.net>
	port 0
	path <>
	query <>

imap://user;auth=*@imap.example.net => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <*>
	host <imap.example.net>
	port 0
	path <>
	query <>

imap://imap.example.net:111 => SUCCESS
	scheme <imap>
	user <>
	passwd <>
	auth <>
	host <imap.example.net>
	port 111
	path <>
	query <>

imap://user@imap.example.net:111 => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <>
	host <imap.example.net>
	port 111
	path <>
	query <>

imap://user:passwd@imap.example.net:111 => SUCCESS
	scheme <imap>
	user <user>
	passwd <passwd>
	auth <>
	host <imap.example.net>
	port 111
	path <>
	query <>

imap://user;auth=*@imap.example.net:111 => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <*>
	host <imap.example.net>
	port 111
	path <>
	query <>

imap://imap.example.net/mbox => SUCCESS
	scheme <imap>
	user <>
	passwd <>
	auth <>
	host <imap.example.net>
	port 0
	path <mbox>
	query <>

imap://user@imap.example.net/mbox => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <>
	host <imap.example.net>
	port 0
	path <mbox>
	query <>

imap://user:passwd@imap.example.net/mbox => SUCCESS
	scheme <imap>
	user <user>
	passwd <passwd>
	auth <>
	host <imap.example.net>
	port 0
	path <mbox>
	query <>

imap://user;auth=*@imap.example.net/mbox => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <*>
	host <imap.example.net>
	port 0
	path <mbox>
	query <>

imap://imap.example.net:111/mbox => SUCCESS
	scheme <imap>
	user <>
	passwd <>
	auth <>
	host <imap.example.net>
	port 111
	path <mbox>
	query <>

imap://user@imap.example.net:111/mbox => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <>
	host <imap.example.net>
	port 111
	path <mbox>
	query <>

imap://user:passwd@imap.example.net:111/mbox => SUCCESS
	scheme <imap>
	user <user>
	passwd <passwd>
	auth <>
	host <imap.example.net>
	port 111
	path <mbox>
	query <>

imap://user;auth=*@imap.example.net:111/mbox => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <*>
	host <imap.example.net>
	port 111
	path <mbox>
	query <>

imap://imap.example.net/mbox/user@host => SUCCESS
	scheme <imap>
	user <imap.example.net/mbox/user>
	passwd <>
	auth <>
	host <host>
	port 0
	path <>
	query <>

imap://user@imap.example.net/mbox/user@host => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <>
	host <imap.example.net>
	port 0
	path <mbox/user@host>
	query <>

imap://user:passwd@imap.example.net/mbox/user@host => SUCCESS
	scheme <imap>
	user <user>
	passwd <passwd>
	auth <>
	host <imap.example.net>
	port 0
	path <mbox/user@host>
	query <>

imap://user;auth=*@imap.example.net/mbox/user@host => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <*>
	host <imap.example.net>
	port 0
	path <mbox/user@host>
	query <>

imap://imap.example.net:111/mbox/user@host => SUCCESS
	scheme <imap>
	user <imap.example.net>
	passwd <111/mbox/user>
	auth <>
	host <host>
	port 0
	path <>
	query <>

imap://user@imap.example.net:111/mbox/user@host => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <>
	host <imap.example.net>
	port 111
	path <mbox/user@host>
	query <>

imap://user:passwd@imap.example.net:111/mbox/user@host => SUCCESS
	scheme <imap>
	user <user>
	passwd <passwd>
	auth <>
	host <imap.example.net>
	port 111
	path <mbox/user@host>
	query <>

imap://user;auth=*@imap.example.net:111/mbox/user@host => SUCCESS
	scheme <imap>
	user <user>
	passwd <>
	auth <*>
	host <imap.example.net>
	port 111
	path <mbox/user@host>
	query <>

ftp://ftp.example.org/mbox/user%40host => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <ftp.example.org>
	port 0
	path <mbox/user@host>
	query <>

ftp://ftp.example.org:111/mbox/user%40host => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <ftp.example.org>
	port 111
	path <mbox/user@host>
	query <>

ftp://ftp.example.org:111/mbox/user%40host;type=pass => SUCCESS
	scheme <ftp>
	user <>
	passwd <>
	auth <>
	host <ftp.example.org>
	port 111
	path <mbox/user@host>
	param[0] <type=pass>
	query <>

mbox:/var/spool/mail;type=index;param=2;user=gray => SUCCESS
	scheme <mbox>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </var/spool/mail>
	param[0] <type=index>
	param[1] <param=2>
	param[2] <user=gray>
	query <>

mbox:///var/spool/mail;type=index;param=2;user=gray => SUCCESS
	scheme <mbox>
	user <>
	passwd <>
	auth <>
	host <>
	port 0
	path </var/spool/mail>
	param[0] <type=index>
	param[1] <param=2>
	param[2] <user=gray>
	query <>

# NOTE: This file must end with an empty line
