~ubuntu-branches/ubuntu/saucy/geary/saucy-updates

« back to all changes in this revision

Viewing changes to src/engine/imap/transport/imap-client-session.vala

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-10-10 17:40:37 UTC
  • mfrom: (1.1.8)
  • Revision ID: package-import@ubuntu.com-20131010174037-5p5o4dlsoewek2kg
Tags: 0.4.0-0ubuntu1
New stable version

Show diffs side-by-side

added added

removed removed

Lines of Context:
647
647
     */
648
648
    public async StatusResponse login_async(Geary.Credentials credentials, Cancellable? cancellable = null)
649
649
        throws Error {
 
650
        if (!credentials.is_complete()) {
 
651
            login_failed();
 
652
            throw new ImapError.UNAUTHENTICATED("No credentials provided for account: %s", credentials.to_string());
 
653
        }
 
654
        
650
655
        LoginCommand cmd = new LoginCommand(credentials.user, credentials.pass);
651
656
        
652
657
        MachineParams params = new MachineParams(cmd);