[csmaild-cvs] csmaild/src/Imap/Commands AppendCommand.cs,NONE,1.1 AuthenticateCommand.cs,NONE,1.1 Ca
Brought to you by:
tamc
Update of /cvsroot/csmaild/csmaild/src/Imap/Commands
In directory sc8-pr-cvs1:/tmp/cvs-serv15772/src/Imap/Commands
Added Files:
AppendCommand.cs AuthenticateCommand.cs CapabilityCommand.cs
CheckCommand.cs CloseCommand.cs CommandPart.cs CopyCommand.cs
CreateCommand.cs DeleteCommand.cs ExamineCommand.cs
ExpungeCommand.cs FetchCommand.cs ImapCommand.cs
ListCommand.cs LoginCommand.cs LogoutCommand.cs LsubCommand.cs
NoopCommand.cs RenameCommand.cs SearchCommand.cs
SelectCommand.cs StarttlsCommand.cs StatusCommand.cs
StoreCommand.cs SubscribeCommand.cs UidCommand.cs
UnsubscribeCommand.cs
Log Message:
--- NEW FILE: AppendCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for AppendCommand.
/// </summary>
public class AppendCommand : ImapCommand
{
public AppendCommand() : base("APPEND", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: AuthenticateCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for AuthenticateCommand.
/// </summary>
public class AuthenticateCommand : ImapCommand
{
public AuthenticateCommand() : base("AUTHENTICATE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: CapabilityCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for CapabilityCommand.
/// </summary>
public class CapabilityCommand : ImapCommand
{
public CapabilityCommand() : base("CAPABILITY", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: CheckCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for CheckCommand.
/// </summary>
public class CheckCommand : ImapCommand
{
public CheckCommand() : base("CHECK", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: CloseCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for CloseCommand.
/// </summary>
public class CloseCommand : ImapCommand
{
public CloseCommand() : base("CLOSE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: CommandPart.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Base class for all command part types
/// </summary>
abstract public class CommandPart
{
abstract override public string ToString();
}
/// <summary>
/// Represents an atom
/// </summary>
public class CommandAtom : CommandPart
{
private string mString;
override public string ToString()
{
return mString;
}
static public CommandAtom Parse(string str)
{
// TODO: implement sytax rules for atoms
CommandAtom rv = new CommandAtom();
rv.mString = str;
return rv;
}
}
/// <summary>
/// Represents a number
/// </summary>
public class CommandNumber : CommandPart
{
private int mNumber;
override public string ToString()
{
return mNumber.ToString();
}
static public CommandNumber Parse(string str)
{
// TODO: implement sytax rules for numbers
CommandNumber rv = new CommandNumber();
rv.mNumber = int.Parse(str);
return rv;
}
}
/// <summary>
/// Represents a string
/// </summary>
public class CommandString : CommandPart
{
private string mString;
override public string ToString()
{
return mString;
}
static public CommandString Parse(string str)
{
// TODO: implement sytax rules for strings
CommandString rv = new CommandString();
rv.mString = str;
return rv;
}
}
}
--- NEW FILE: CopyCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for CopyCommand.
/// </summary>
public class CopyCommand : ImapCommand
{
public CopyCommand() : base("COPY", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: CreateCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for CreateCommand.
/// </summary>
public class CreateCommand : ImapCommand
{
public CreateCommand() : base("CREATE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: DeleteCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for DeleteCommand.
/// </summary>
public class DeleteCommand : ImapCommand
{
public DeleteCommand() : base("DELETE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: ExamineCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for ExamineCommand.
/// </summary>
public class ExamineCommand : ImapCommand
{
public ExamineCommand() : base("EXAMINE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: ExpungeCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for ExpungeCommand.
/// </summary>
public class ExpungeCommand : ImapCommand
{
public ExpungeCommand() : base("EXPUNGE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: FetchCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for FetchCommand.
/// </summary>
public class FetchCommand : ImapCommand
{
public FetchCommand() : base("FETCH", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: ImapCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Base class for all commands
/// </summary>
abstract public class ImapCommand
{
private string mCommand;
private CommandPart[] mCommandParts;
private Imap.ImapConnectionState mMinimumState;
public string Command
{
get
{
return mCommand;
}
}
public ImapCommand(string command, Imap.ImapConnectionState minimumState, params CommandPart[] commandParts)
{
mCommand = command;
mMinimumState = minimumState;
mCommandParts = commandParts;
}
abstract public void Process(ImapConnection con, string tag);
}
}
--- NEW FILE: ListCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for ListCommand.
/// </summary>
public class ListCommand : ImapCommand
{
public ListCommand() : base("LIST", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: LoginCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for LoginCommand.
/// </summary>
public class LoginCommand : ImapCommand
{
public LoginCommand() : base("LOGIN", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: LogoutCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for LogoutCommand.
/// </summary>
public class LogoutCommand : ImapCommand
{
public LogoutCommand() : base("LOGOUT", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: LsubCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for LsubCommand.
/// </summary>
public class LsubCommand : ImapCommand
{
public LsubCommand() : base("LSUB", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: NoopCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for NoopCommand.
/// </summary>
public class NoopCommand : ImapCommand
{
public NoopCommand() : base("NOOP", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: RenameCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for RenameCommand.
/// </summary>
public class RenameCommand : ImapCommand
{
public RenameCommand() : base("RENAME", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: SearchCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for SearchCommand.
/// </summary>
public class SearchCommand : ImapCommand
{
public SearchCommand() : base("SEARCH", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: SelectCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for SelectCommand.
/// </summary>
public class SelectCommand : ImapCommand
{
public SelectCommand() : base("SELECT", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: StarttlsCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for StarttlsCommand.
/// </summary>
public class StarttlsCommand : ImapCommand
{
public StarttlsCommand() : base("STARTTLS", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: StatusCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for StatusCommand.
/// </summary>
public class StatusCommand : ImapCommand
{
public StatusCommand() : base("STATUS", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: StoreCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for StoreCommand.
/// </summary>
public class StoreCommand : ImapCommand
{
public StoreCommand() : base("STORE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: SubscribeCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for SubscribeCommand.
/// </summary>
public class SubscribeCommand : ImapCommand
{
public SubscribeCommand() : base("SUBSCRIBE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: UidCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for UidCommand.
/// </summary>
public class UidCommand : ImapCommand
{
public UidCommand() : base("UID", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
--- NEW FILE: UnsubscribeCommand.cs ---
using System;
namespace Imap.Commands
{
/// <summary>
/// Summary description for UnsubscribeCommand.
/// </summary>
public class UnsubscribeCommand : ImapCommand
{
public UnsubscribeCommand() : base("UNSUBSCRIBE", Imap.ImapConnectionState.NotAuthenticated, null)
{
}
override public void Process(ImapConnection con, string tag)
{
con.Connection.WriteLine(tag + " OK");
}
}
}
|