1
/* Copyright 2011 Yorba Foundation
3
* This software is licensed under the GNU Lesser General Public License
4
* (version 2.1 or later). See the COPYING file in this distribution.
7
public class Geary.Imap.CapabilityCommand : Command {
8
public const string NAME = "capability";
10
public CapabilityCommand(ClientSession session) {
11
base (new Tag.generated(session), NAME);
15
public class Geary.Imap.NoopCommand : Command {
16
public const string NAME = "noop";
18
public NoopCommand(ClientSession session) {
19
base (new Tag.generated(session), NAME);
23
public class Geary.Imap.LoginCommand : Command {
24
public const string NAME = "login";
26
public LoginCommand(ClientSession session, string user, string pass) {
27
base (new Tag.generated(session), NAME, { user, pass });
30
public override string to_string() {
31
return "%s %s <user> <pass>".printf(tag.to_string(), name);
35
public class Geary.Imap.LogoutCommand : Command {
36
public const string NAME = "logout";
38
public LogoutCommand(ClientSession session) {
39
base (new Tag.generated(session), NAME);
43
public class Geary.Imap.ListCommand : Command {
44
public const string NAME = "list";
46
public ListCommand(ClientSession session, string mailbox) {
47
base (new Tag.generated(session), NAME, { "", mailbox });
50
public ListCommand.wildcarded(ClientSession session, string reference, string mailbox) {
51
base (new Tag.generated(session), NAME, { reference, mailbox });
55
public class Geary.Imap.ExamineCommand : Command {
56
public const string NAME = "examine";
58
public ExamineCommand(ClientSession session, string mailbox) {
59
base (new Tag.generated(session), NAME, { mailbox });