CnPack Forum


 
Subject: 新版本 CVSTracNT 安装升级注意事项
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2005-4-8 14:53  Profile | Site | Blog | P.M. 
新版本 CVSTracNT 安装升级注意事项

V1.1.5 20050408 使用了新的任务单通知系统,升级时可以先卸载旧版本,也可以直接安装新版本。

    升级时建议先备份一下原来的数据库目录。如果卸载旧版本,可选择保留数据文件。安装新版本后,先进入任务单通知设置页,双击邮件插件等设置好相关参数。再依次配置各个数据库,如果在旧版本中设置了使用邮件通知,此时通知方式需要修改成“通知器”,并配置需要使用的通知方式即可。

    在主界面中配置插件后建议先测试一下。如果实际使用时发现收不到通知,可以把日志功能选上,分析一下发送失败的原因。

    如果不卸载旧版本,可以手工删除 system32 中以下文件:
    cygintl-1.dll cygwin1.dll sqlite.dll co.exe diff.exe rcsdiff.exe rlog.exe sh.exe

    如果卸载了旧版本且原来配置过使用邮件通知,由于旧版本的邮件通知程序新版本中已经不带了,需要重新配置为使用“通知器”通知,否则无法使用通知功能。




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
123123
This user has been deleted









Post at 2005-4-14 10:53 
*** The author has been banned or deleted ***
123123
This user has been deleted









Post at 2005-4-14 10:55 
*** The author has been banned or deleted ***
123123
This user has been deleted









Post at 2005-4-14 11:08 
*** The author has been banned or deleted ***
123123
This user has been deleted









Post at 2005-4-14 11:16 
*** The author has been banned or deleted ***
123123
This user has been deleted









Post at 2005-4-14 11:17 
*** The author has been banned or deleted ***
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2005-4-14 11:38  Profile | Site | Blog | P.M. 
这个函数在最新的 cnpack 的 CnCommon.pas 中(用 CVS 取得),源码如下:

// 判断是否有效的邮件地址
function IsValidEmail(const s: string): Boolean;
var
  i: Integer;
  AtCount: Integer;
begin
  Result := False;
  if s = '' then Exit;
  AtCount := 0;
  for i := 1 to Length(s) do
  begin
    if s[i] = '@' then
    begin
      Inc(AtCount);
      if AtCount > 1 then
        Exit;
    end
    else if not (s[i] in ['0'..'9', 'a'..'z', 'A'..'Z', '_', '.']) then
      Exit;
  end;
  Result := AtCount = 1;
end;

要求只有一个 @ 符号,并且所有字符为字母、数字、下划线和点。

您看看是否符合要求,如果觉得这种判断方法有问题,我们可以修改。




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
123123
This user has been deleted









Post at 2005-4-14 12:29 
*** The author has been banned or deleted ***
123123
This user has been deleted









Post at 2005-4-14 12:37 
*** The author has been banned or deleted ***
zjy
管理员
Rank: 9Rank: 9Rank: 9



UID 2
Digest Posts 6
Credits 2385
Posts 1543
点点分 2385
Reading Access 102
Registered 2002-12-16
Location China
Status Offline
Post at 2005-4-14 15:01  Profile | Site | Blog | P.M. 
信箱的有效字符我参考了网上的资料来确定的,象网易、新浪这些都不支持 - 号作信箱名。

我已经修改了这个函数,重新编译了一个 dll,您可以用它替换掉原来那个试试看。

CnPack 网站所在的服务器最近不太稳定,可能负荷太重或者被人攻击了。页面显示不了时,请重试或等待一会再试。


Attachment: CTMailer.dll (2005-4-14 15:01, 743 K)
Download count 718




Zhou JingYu
CnPack Administrator
http://www.cnpack.org/
Top
123123
This user has been deleted









Post at 2005-4-14 15:42 
*** The author has been banned or deleted ***
 




All times are GMT++8, the time now is 2024-11-23 11:54

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008172 second(s), 10 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP