| kten...@gmail.com |
},
</span><span class="add">+ "INCOMING_FULL_NAME" : {
+ "attr" : "fullName",
+ "type" : "string",
+ },
+ "INCOMING_SERVER" : {
+ "attr" : "host",
+ "type" : "string",
+ },
+ "INCOMING_USERNAME" : {
+ "attr" : "username",
+ "type" : "string",
+ },
+ "INCOMING_PASSWORD" : {
+ "attr" : "password",
+ "type" : "password",
+ },
</span><span class="cx">
</span><span class="rem">- "INCOMING_FOLDERS" : {
- "attr" : "folders",
- "type" : "chandlerFolders",
</span><span class="add">+ "INCOMING_PORT" : {
+ "attr" : "port",
+ "type" : "integer",
+ "default": 143,
+ "required" : True,
+ },
+
+ "INCOMING_PROTOCOL" : {
+ "attr" : "accountProtocol",
+ "type" : "choice",
+ "default": "IMAP",
+ },
+
+ "INCOMING_SECURE" : {
+ "attr" : "connectionSecurity",
+ "type" : "radioEnumeration",
+ "buttons" : {
+ "INCOMING_SECURE_NO" : "NONE",
+ "INCOMING_TLS" : "TLS",
+ "INCOMING_SSL" : "SSL",
+ },
+ "default" : "NONE",
+ "linkedTo" :
+ {
+ "callback": "getIncomingProtocol",
+ "protocols": {
+ "IMAP": ("INCOMING_PORT",
+ { "NONE":"143", "TLS":"143", "SSL":"993" } ),
+ "POP": ("INCOMING_PORT",
+ { "NONE":"110", "TLS":"110", "SSL":"995" } ),
+ },
+ }
+ },
+
+ "INCOMING_FOLDERS" : {
+ "attr" : "folders",
+ "type" : "chandlerFolders",
+ },
+ },
+ "id" : "INCOMINGPanel",
+ "order": 0,
+ "saveHandler" : IncomingSaveHandler,
+ "validationHandler" : IncomingValidationHandler,
+ "deleteHandler" : IncomingDeleteHandler,
+ "displayName" : u"INCOMING_DESCRIPTION",
+ "protocol" : "IMAP",
+ "class" : Mail.IMAPAccount,
+ "description" : _(u"Incoming mail"),
+ "callbacks" : (
+ ("INCOMING_DISCOVERY", "OnIncomingDiscovery"),
+ ),
+ "messages" : ("INCOMING_MESSAGE",),
+ "init" : "initIncomingPanel",
</span><span class="cx"> },
</span><span class="rem">- },
- "id" : "INCOMINGPanel",
- "order": 0,
- "saveHandler" : IncomingSaveHandler,
- "validationHandler" : IncomingValidationHandler,
- "deleteHandler" : IncomingDeleteHandler,
- "displayName" : u"INCOMING_DESCRIPTION",
- "description" : _(u"Incoming mail"),
- "callbacks" : (
- ("INCOMING_DISCOVERY", "OnIncomingDiscovery"),
- ),
- "messages" : ("INCOMING_MESSAGE",),
- "init" : "initIncomingPanel",
- },
- "OUTGOING" : {
- "fields" : {
- "OUTGOING_DESCRIPTION" : {
- "attr" : "displayName",
- "type" : "string",
- "required" : True,
- "default": _(u"New Outgoing Mail Account"),
- },
- "OUTGOING_FROM" : {
- "attr" : "emailAddress",
- "type" : "string",
- },
- "OUTGOING_SERVER" : {
- "attr" : "host",
- "type" : "string",
- },
- "OUTGOING_PORT" : {
- "attr" : "port",
- "type" : "integer",
- "default": 25,
- "required" : True,
- },
- "OUTGOING_SECURE" : {
- "attr" : "connectionSecurity",
- "type" : "radioEnumeration",
- "buttons" : {
- "OUTGOING_SECURE_NO" : "NONE",
- "OUTGOING_SECURE_TLS" : "TLS",
- "OUTGOING_SECURE_SSL" : "SSL",
</span><span class="add">+ "OUTGOING" : {
+ "fields" : {
+ "OUTGOING_DESCRIPTION" : {
+ "attr" : "displayName",
+ "type" : "string",
+ "required" : True,
+ "default": _(u"New Outgoing Mail Account"),
</span><span class="cx"> },
</span><span class="rem">- "default" : "NONE",
- "linkedTo" :
- ("OUTGOING_PORT", { "NONE":"25", "TLS":"25", "SSL":"465" }),
</span><span class="add">+ "OUTGOING_FROM" : {
+ "attr" : "emailAddress",
+ "type" : "string",
+ },
+ "OUTGOING_SERVER" : {
+ "attr" : "host",
+ "type" : "string",
+ },
+ "OUTGOING_PORT" : {
+ "attr" : "port",
+ "type" : "integer",
+ "default": 25,
+ "required" : True,
+ },
+ "OUTGOING_SECURE" : {
+ "attr" : "connectionSecurity",
+ "type" : "radioEnumeration",
+ "buttons" : {
+ "OUTGOING_SECURE_NO" : "NONE",
+ "OUTGOING_SECURE_TLS" : "TLS",
+ "OUTGOING_SECURE_SSL" : "SSL",
+ },
+ "default" : "NONE",
+ "linkedTo" :
+ ("OUTGOING_PORT",
+ { "NONE":"25", "TLS":"25", "SSL":"465" }),
+ },
+ "OUTGOING_USE_AUTH" : {
+ "attr" : "useAuth",
+ "type" : "boolean",
+ },
+ "OUTGOING_USERNAME" : {
+ "attr" : "username",
+ "type" : "string",
+ },
+ "OUTGOING_PASSWORD" : {
+ "attr" : "password",
+ "type" : "password",
+ },
+ },
+ "id" : "OUTGOINGPanel",
+ "order": 1,
+ "saveHandler" : OutgoingSaveHandler,
+ "deleteHandler" : OutgoingDeleteHandler,
+ "displayName" : u"OUTGOING_DESCRIPTION",
+ "description" : _(u"Outgoing mail"),
+ "protocol" : "SMTP",
+ "class" : Mail.SMTPAccount,
+ "callbacks" : (("OUTGOING_DISCOVERY", "OnOutgoingDiscovery"),),
+ "messages" : ("OUTGOING_MESSAGE",),
</span><span class="cx"> },
</span><span class="rem">- "OUTGOING_USE_AUTH" : {
- "attr" : "useAuth",
- "type" : "boolean",
- },
- "OUTGOING_USERNAME" : {
- "attr" : "username",
- "type" : "string",
- },
- "OUTGOING_PASSWORD" : {
- "attr" : "password",
- "type" : "password",
- },
- },
- "id" : "OUTGOINGPanel",
- "order": 1,
- "saveHandler" : OutgoingSaveHandler,
- "deleteHandler" : OutgoingDeleteHandler,
- "displayName" : u"OUTGOING_DESCRIPTION",
- "description" : _(u"Outgoing mail"),
- "callbacks" : (("OUTGOING_DISCOVERY", "OnOutgoingDiscovery"),),
- "messages" : ("OUTGOING_MESSAGE",),
- },
</span><span class="cx">
</span><span class="rem">- "SHARING_HUB" : {
- "fields" : {
- "HUBSHARING_DESCRIPTION" : {
- "attr" : "displayName",
- "type" : "string",
- "required" : True,
- "default": _(u"Chandler Hub23,7 +1460,8 @@
</span><span class="cx"> port = wx.xrc.XRCCTRL(self.currentPanel, "INCOMING_PORT")
port.SetValue(str(account.port))
</span><span class="rem">- fieldInfo = PANELS[self.currentPanelType]['fields']['INCOMING_SECURE']
</span><span class="add">+ fields = self.panelsInfo[self.currentPa[ |
Mon, 23 Mar, 10:21 |