|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 31 楼』:
使用 LLM 解释/回答一下
Originally posted by bjsh at 2007-4-26 08:15:
好啊!
这样就可以和兄学习到好东西了;呵呵
其实都是些重复动作了
Originally posted by bjsh at 2007-4-26 08:15:
Good!
This way I can learn good things from you; heh heh
Actually, it's all just repetitive actions
|
|
2007-4-26 09:15 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
『第 32 楼』:
使用 LLM 解释/回答一下
刚才看了下:
对于以下的网站
163 yahoo qq hotmail gmail 56 sina sohu 21cn
和163相同处理方式的有:
smtp.qq.com 219.133.60.51
smtp.sina.com 202.108.3.233
smtp.sohu.com 220.181.26.195
smtp.21cn.com 202.104.32.230
稍微有点变化的是:
smtp.56.com 61.143.210.110
第一个要用 EHLO 而不是 HELO
后面的操作和前面一样了
对于:
smtp.gmail.com 64.233.163.111
我不知道该怎么做了;
vkill 给解答下
Just now I took a look:
For the following websites
163 yahoo qq hotmail gmail 56 sina sohu 21cn
The ones with the same processing method as 163 are:
smtp.qq.com 219.133.60.51
smtp.sina.com 202.108.3.233
smtp.sohu.com 220.181.26.195
smtp.21cn.com 202.104.32.230
The ones with a slight change are:
smtp.56.com 61.143.210.110
The first one needs to use EHLO instead of HELO
The subsequent operations are the same as the previous ones
For:
smtp.gmail.com 64.233.163.111
I don't know what to do;
Please help vkill to answer
|
|
2007-4-26 09:59 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 33 楼』:
使用 LLM 解释/回答一下
Originally posted by bjsh at 2007-4-26 09:59:
刚才看了下:
对于以下的网站
163 yahoo qq hotmail gmail 56 sina sohu 21cn
和163相同处理方式的有:
smtp.qq.com 219.133.60.51
smtp.sina.com 202.108.3.233
smtp.sohu.com 22 ...
gmail的好象要什么特殊认证的,我也不是很清楚了
Originally posted by bjsh at 2007-4-26 09:59:
Just now I took a look:
For the following websites
163 yahoo qq hotmail gmail 56 sina sohu 21cn
The same processing method as 163 has:
smtp.qq.com 219.133.60.51
smtp.sina.com 202.108.3.233
smtp.sohu.com 22 ...
It seems that gmail requires some special authentication, and I'm not very clear about it either
|
|
2007-4-26 10:12 |
|
|
flyinspace
银牌会员
    
积分 1206
发帖 517
注册 2007-3-25
状态 离线
|
『第 34 楼』:
使用 LLM 解释/回答一下
其实可以设定.ini文件的。
要不发送邮件反而被你们搞复杂了。
------------------------------------------------------------------------
Actually, you can set the.ini file.
Otherwise, sending an email will be complicated by you.
------------------------------------------------------------------------
|

知,不觉多。不知,乃求知 |
|
2007-4-26 10:55 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
『第 35 楼』:
使用 LLM 解释/回答一下
flyinspace能否详细说一下:
flyinspace能否详细说一下:
flyinspace, can you please elaborate in detail:
|
|
2007-4-26 12:13 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 36 楼』:
使用 LLM 解释/回答一下
Originally posted by flyinspace at 2007-4-26 10:55:
其实可以设定.ini文件的。
要不发送邮件反而被你们搞复杂了。
------------------------------------------------------------------------
我的想法
find "条件" "%~nx0" 这样不是更好
Originally posted by flyinspace at 2007-4-26 10:55:
Actually, you can set up the .ini file.
Otherwise, sending an email would make it more complicated for you.
------------------------------------------------------------------------
My idea
find "condition" "%~nx0" isn't this better
|
|
2007-4-26 12:19 |
|
|
flyinspace
银牌会员
    
积分 1206
发帖 517
注册 2007-3-25
状态 离线
|
『第 37 楼』:
------------------------------------------------------
使用 LLM 解释/回答一下
----------------------------------------------------------------
Last edited by flyinspace on 2007-4-26 at 01:09 PM ]
----------------------------------------------------------------
Last edited by flyinspace on 2007-4-26 at 01:09 PM ]
|

知,不觉多。不知,乃求知 |
|
2007-4-26 14:30 |
|
|
flyinspace
银牌会员
    
积分 1206
发帖 517
注册 2007-3-25
状态 离线
|
『第 38 楼』:
使用 LLM 解释/回答一下
其实,我们这样做的目的就好象在c++里设置默认值一样。。
bool sub(用户名,密码,POP服务器,端口) 这里都设置了默认值。
{
base64 转换 用户名,密码
验证登陆是否成功。
是,返回成功
}
Actually, the purpose of what we are doing here is just like setting default values in C++.
bool sub(username, password, POP server, port) where all have default values.
{
base64 convert username, password
verify if the login is successful.
if yes, return success
}
|

知,不觉多。不知,乃求知 |
|
2007-4-26 14:37 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
『第 39 楼』:
使用 LLM 解释/回答一下
to: flyinspace
哦:
兄可以看一下我昨天发在20楼的代码;
那段代码开始要求输入用户名\密码\主题\内容\附件\
然后生成test文件进行验证是否能够登陆成功;
然后生成post文件(其实就是你说的配置文件;这两者作用是一样的);
至于你所说的有设置默认值;完全可以在最后不删生成的post文件;
添加一句if exist post;这效果不就相当于配置文件了;不同的是这个配置文件不用ini后缀;呵呵;
实质是一样的;
那段代码同样可以
=====参数检测======不管参数怎么输入都行==============
而且要比兄的简练许多啊;
那段代码可是vkill兄很值得我们学习的一个地方啊;用了shift移位;兄有空好好看下;
to: flyinspace
Oh:
Brother can take a look at the code I posted on floor 20 yesterday;
That code initially requires entering username\password\topic\content\attachment\
Then generate the test file to verify whether it can log in successfully;
Then generate the post file (actually the configuration file you mentioned; the two have the same function);
As for what you said about having default values; you can completely not delete the generated post file at the end;
Add a line if exist post; this effect is equivalent to a configuration file; the difference is that this configuration file does not use the ini suffix; heh heh;
Essentially the same;
That code can also
=====Parameter check======No matter how the parameters are entered, it's okay==============
And it's much more concise than brother's;
That code is a place that Brother vkill is very worthy for us to learn; using shift shifting; brother has time to take a good look;
|
|
2007-4-26 22:16 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
|
2007-4-28 08:13 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 41 楼』:
使用 LLM 解释/回答一下
bjsh 兄 lxm 兄 帮我测试哦~我只测试了qq yahoo 163 别的我没有,测试不了
Brother bjsh, Brother lxm, help me test it~ I only tested QQ, Yahoo, 163, I didn't test others, can't test.
|
|
2007-4-28 09:04 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
『第 42 楼』:
使用 LLM 解释/回答一下
vkill兄真是高效啊!!
Brother vkill is really efficient!!
|
|
2007-4-28 09:52 |
|
|
bjsh
银牌会员
    
积分 2000
发帖 621
注册 2007-1-1
状态 离线
|
『第 43 楼』:
使用 LLM 解释/回答一下
先提个建议;在测试登陆是否成功之前;
先测试是否ping的通;
ping -n 1 %smtp% >nul 2>nul || (echo 确认网络连接.. & goto :eof)
发现了几个小问题;
发信成功也会提示发信不成功;
问题出在:
echo !10! | findstr "^250" 1>nul 2>nul || (echo 发信不成功 & goto :eof )
!10! 改为 !9!
D:\post>for /F "tokens=1-2 delims=:" %a in ('findstr /N . p-mailsend.log') do (set "%a=%b" )
D:\post>(set "1=220 163.com Anti-spam GT for Coremail System (163com)" )
D:\post>(set "2=250 OK" )
D:\post>(set "3=334 fdsfdsfsadfsadsf" )
D:\post>(set "4=334 dfsdfsdsfdfdfdsf" )
D:\post>(set "5=235 Authentication successful" )
D:\post>(set "6=250 Mail OK" )
D:\post>(set "7=250 Mail OK" )
D:\post>(set "8=354 End data with <CR><LF>.<CR><LF>" )
D:\post>(set "9=250 Mail OK queued as smtp10,dfsfdsdfsfdsfsdfdsdsf==.121322316541321 13213" )
D:\post>(set "10=221 Bye" )
D:\post>if not defined 10 (echo 发信不成功 & goto :eof )
D:\post>echo !10! | findstr "^250" 1>nul 2>nul || (echo 发信不成功 & goto :eof )
发信不成功
登陆不成功 .. 附件过大... 发信不成功 都不会 call :del_
应该添加上;
echo !9!|findstr "^250" >nul 2>nul ||(echo 发信不成功&call :del_ &goto :eof)
再有就是:vkill兄 是否没写完啊!;
怎么只有验证方式1啊;
smtp.56.com 这种的 验证方式2还没有写啊!!
快完美了!!
写的真漂亮
Last edited by bjsh on 2007-4-27 at 09:35 PM ]
First, I have a suggestion: before testing whether the login is successful, first test if it can be pinged;
ping -n 1 %smtp% >nul 2>nul || (echo Confirm network connection.. & goto :eof)
Found a few small problems;
Sending email successfully will also prompt that sending email is unsuccessful;
The problem is in:
echo !10! | findstr "^250" 1>nul 2>nul || (echo Sending email unsuccessful & goto :eof )
Change !10! to !9!
D:\post>for /F "tokens=1-2 delims=:" %a in ('findstr /N . p-mailsend.log') do (set "%a=%b" )
D:\post>(set "1=220 163.com Anti-spam GT for Coremail System (163com)" )
D:\post>(set "2=250 OK" )
D:\post>(set "3=334 fdsfdsfsadfsadsf" )
D:\post>(set "4=334 dfsdfsdsfdfdfdsf" )
D:\post>(set "5=235 Authentication successful" )
D:\post>(set "6=250 Mail OK" )
D:\post>(set "7=250 Mail OK" )
D:\post>(set "8=354 End data with <CR><LF>.<CR><LF>" )
D:\post>(set "9=250 Mail OK queued as smtp10,dfsfdsdfsfdsfsdfdsdsf==.121322316541321 13213" )
D:\post>(set "10=221 Bye" )
D:\post>if not defined 10 (echo Sending email unsuccessful & goto :eof )
D:\post>echo !10! | findstr "^250" 1>nul 2>nul || (echo Sending email unsuccessful & goto :eof )
Sending email unsuccessful
Login unsuccessful.. Attachment too large... Sending email unsuccessful will not call :del_
Should add;
echo !9!|findstr "^250" >nul 2>nul ||(echo Sending email unsuccessful&call :del_ &goto :eof)
Also, Brother vkill, is it not finished yet!;
Why is there only verification method 1;
For smtp.56.com, verification method 2 has not been written yet!!
Almost perfect!!
Written really beautifully
Last edited by bjsh on 2007-4-27 at 09:35 PM ]
|
|
2007-4-28 09:58 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 44 楼』:
使用 LLM 解释/回答一下
呵呵,bjsh兄提的几点好,我尽快完善
Hehe, Brother bjsh raised several good points, I will improve them as soon as possible
|
|
2007-4-28 13:21 |
|
|
vkill
金牌会员
     
积分 4103
发帖 1744
注册 2006-1-20 来自 甘肃.临泽
状态 离线
|
『第 45 楼』:
使用 LLM 解释/回答一下
bjsh 兄
现在除了
smtp.56.com 这种的 验证方式2还没有写啊!!
这个没有写外,别的都已经完善,呵呵,再测试
Brother bjsh,
Except for the verification method 2 for smtp.56.com not being written yet!! Apart from this, the others are all perfected. Hehe, test again.
|
|
2007-4-29 03:38 |
|