Commits

Anonymous committed 295bcd7

Added -init method to Account to setup the default port and tls settings

Comments (0)

Files changed (1)

 static NSString * const kTLSKey = @"tls";
 static NSString * const kPortKey = @"port";
 
+- init;
+{
+    self = [super init];
+    if (nil == self) {
+        return nil;
+    }
+    
+    port = 2000;
+    tls = YES;
+    
+    return self;
+}
+
 - initWithAccountFileURL: (NSURL *) url;
 {
-    self = [super init];
+    self = [self init];
     if (nil == self) {
         return nil;
     }