• 账户登录问题排查记录


     以下是win版本打印输出,rememberPassword函数走了两次,一次是imap和smtp两个密码

     对比。mac只建立了一个imap密码

    原因:Mac版本outserver不为空,没有进入条件判断:

    1. createInBackend.js:
    2. let outServer = MailServices.smtp.findServer(username, config.outgoing.hostname);
    3. if (config.outgoing.addThisServer && !outServer) //Mac版本 outServer不为null
    4. {
    5. outServer = MailServices.smtp.createServer();
    6. outServer.hostname = config.outgoing.hostname;
    7. outServer.port = config.outgoing.port;
    8. outServer.authMethod = config.outgoing.auth;
    9. if (config.outgoing.auth > 1)
    10. {
    11. outServer.username = username;
    12. if (config.rememberPassword && config.incoming.password.length)
    13. rememberPassword(outServer, config.incoming.password);
    14. }

    在-p重新创建配置文件时,outServer为null,可以正常记住密码。
    所以下一步从删除账户时是否没有删除smtpserver信息入手排查问题。

    在win下抓到的删除账户信息:

     和Mac下是一样的,暂时排查到这里。

    刪除账户时,账户列表焦点不能自动选中其他列表:

    选中列表的函数是:

    1. // Called when someone clicks on an account. Figure out context by what they
    2. // clicked on. This is also called when an account is removed. In this case,
    3. // nothing is selected.
    4. function onAccountTreeSelect(pageId, account)

    注释明确说明在删除账户时会调用该函数。

    下图是win下该函数的调用情况:

     

  • 相关阅读:
    多核 ARM Server 性能调优
    Linux实用操作(固定IP、进程控制、监控、文件解压缩)
    Java之juc旅途-locks(六)
    mysql—视图
    如何用CHAT 写会后总结
    打家劫舍 -- 动规
    黑马程序员C++类和对象【5】 —— 运算符重载(蓝桥杯必备知识)万字超详解
    Linux常用命令
    求Huffman树的带权路径长度
    [Linux入门]---Linux指令②
  • 原文地址:https://blog.csdn.net/qq_19875391/article/details/126169955