Documentation ¶
Index ¶
- func GetAttachmentNamesAndDownload(imapclient *client.Client, uids []uint32, destDir string) ([]string, error)
- func GetEmailUIDs(imapclient *client.Client, params CmdParams) ([]uint32, error)
- func NewImapClient(imapconfig ImapConfig) (*client.Client, error)
- type AttachmentsCommand
- func (cmd *AttachmentsCommand) Args() string
- func (cmd *AttachmentsCommand) Hidden() bool
- func (cmd *AttachmentsCommand) LongHelp() string
- func (cmd *AttachmentsCommand) Name() string
- func (cmd *AttachmentsCommand) Register(fs *flag.FlagSet)
- func (cmd *AttachmentsCommand) Run(ctx context.Context, args []string) error
- func (cmd *AttachmentsCommand) ShortHelp() string
- type CmdParams
- type CopyCommand
- func (cmd *CopyCommand) Args() string
- func (cmd *CopyCommand) Hidden() bool
- func (cmd *CopyCommand) LongHelp() string
- func (cmd *CopyCommand) Name() string
- func (cmd *CopyCommand) Register(fs *flag.FlagSet)
- func (cmd *CopyCommand) Run(ctx context.Context, args []string) error
- func (cmd *CopyCommand) ShortHelp() string
- type DeleteCommand
- func (cmd *DeleteCommand) Args() string
- func (cmd *DeleteCommand) Hidden() bool
- func (cmd *DeleteCommand) LongHelp() string
- func (cmd *DeleteCommand) Name() string
- func (cmd *DeleteCommand) Register(fs *flag.FlagSet)
- func (cmd *DeleteCommand) Run(ctx context.Context, args []string) error
- func (cmd *DeleteCommand) ShortHelp() string
- type ImapConfig
- type MsgHeader
- type ShowCommand
- func (cmd *ShowCommand) Args() string
- func (cmd *ShowCommand) Hidden() bool
- func (cmd *ShowCommand) LongHelp() string
- func (cmd *ShowCommand) Name() string
- func (cmd *ShowCommand) Register(fs *flag.FlagSet)
- func (cmd *ShowCommand) Run(ctx context.Context, args []string) error
- func (cmd *ShowCommand) ShortHelp() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAttachmentNamesAndDownload ¶ added in v0.1.3
func GetEmailUIDs ¶
func NewImapClient ¶
func NewImapClient(imapconfig ImapConfig) (*client.Client, error)
Types ¶
type AttachmentsCommand ¶ added in v0.1.3
type AttachmentsCommand struct { Params *CmdParams Imapconfig *ImapConfig }
func (*AttachmentsCommand) Args ¶ added in v0.1.3
func (cmd *AttachmentsCommand) Args() string
func (*AttachmentsCommand) Hidden ¶ added in v0.1.3
func (cmd *AttachmentsCommand) Hidden() bool
func (*AttachmentsCommand) LongHelp ¶ added in v0.1.3
func (cmd *AttachmentsCommand) LongHelp() string
func (*AttachmentsCommand) Name ¶ added in v0.1.3
func (cmd *AttachmentsCommand) Name() string
func (*AttachmentsCommand) Register ¶ added in v0.1.3
func (cmd *AttachmentsCommand) Register(fs *flag.FlagSet)
func (*AttachmentsCommand) Run ¶ added in v0.1.3
func (cmd *AttachmentsCommand) Run(ctx context.Context, args []string) error
func (*AttachmentsCommand) ShortHelp ¶ added in v0.1.3
func (cmd *AttachmentsCommand) ShortHelp() string
type CopyCommand ¶
type CopyCommand struct { Params *CmdParams Imapconfig *ImapConfig }
func (*CopyCommand) Args ¶
func (cmd *CopyCommand) Args() string
func (*CopyCommand) Hidden ¶
func (cmd *CopyCommand) Hidden() bool
func (*CopyCommand) LongHelp ¶
func (cmd *CopyCommand) LongHelp() string
func (*CopyCommand) Name ¶
func (cmd *CopyCommand) Name() string
func (*CopyCommand) Register ¶
func (cmd *CopyCommand) Register(fs *flag.FlagSet)
func (*CopyCommand) ShortHelp ¶
func (cmd *CopyCommand) ShortHelp() string
type DeleteCommand ¶
type DeleteCommand struct { Params *CmdParams Imapconfig *ImapConfig }
func (*DeleteCommand) Args ¶
func (cmd *DeleteCommand) Args() string
func (*DeleteCommand) Hidden ¶
func (cmd *DeleteCommand) Hidden() bool
func (*DeleteCommand) LongHelp ¶
func (cmd *DeleteCommand) LongHelp() string
func (*DeleteCommand) Name ¶
func (cmd *DeleteCommand) Name() string
func (*DeleteCommand) Register ¶
func (cmd *DeleteCommand) Register(fs *flag.FlagSet)
func (*DeleteCommand) ShortHelp ¶
func (cmd *DeleteCommand) ShortHelp() string
type ImapConfig ¶
type ImapConfig struct { ImapHost string `json:"imap_host"` Email string `json:"email"` Password string `json:"password"` ImapPort int `json:"imap_port"` }
func ReadConfig ¶
func ReadConfig(filename string) (ImapConfig, error)
type ShowCommand ¶
type ShowCommand struct { Params *CmdParams Imapconfig *ImapConfig }
func (*ShowCommand) Args ¶
func (cmd *ShowCommand) Args() string
func (*ShowCommand) Hidden ¶
func (cmd *ShowCommand) Hidden() bool
func (*ShowCommand) LongHelp ¶
func (cmd *ShowCommand) LongHelp() string
func (*ShowCommand) Name ¶
func (cmd *ShowCommand) Name() string
func (*ShowCommand) Register ¶
func (cmd *ShowCommand) Register(fs *flag.FlagSet)
func (*ShowCommand) ShortHelp ¶
func (cmd *ShowCommand) ShortHelp() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.