Mail-Box-Net-Disk icon indicating copy to clipboard operation
Mail-Box-Net-Disk copied to clipboard

关于设置中附件大小的问题

Open bluerthanever opened this issue 2 years ago • 13 comments

大大你好~ 我在别的地方看到大大用的也是QQ邮箱,然后想咨询大大关于QQ邮箱使用中的问题。 QQ邮箱不是宣称附件可以传50MB么,发送后貌似由于BASE64加密的原因,在页面邮件清单看到的右侧显示的邮件大小还会更大。 但是在使用mailDisk.exe的过程中,我发现有2个情况,想知道大大知不知道是为什么,以及是怎么处理的:

  1. SMTP发送可以发送原始大小50MB的文件/字节流,但是IMAP在APPEND的时候,不能达到这个大小,设置超过一定值的话,服务器报错返回[disk Upload]fail, retry, infomation:The IMAP server replied to the 'APPEND' command with a 'NO' response: Mail length XXXXX exceeded! 再就如果大小设置在一定范围内,比如三十多MB的时候,APPEND过程中就总是报错[disk Upload]fail, retry, infomation:The IMAP server has unexpectedly disconnected.
  2. 设置成20MB能成功上传,但上传后,在一览右侧看到的邮件大小只有几KB,想知道有没有可能设置成正确的大小?虽然好像不影响使用,但是稍微有点不太爽

bluerthanever avatar Sep 05 '22 01:09 bluerthanever

参考 #1

chenxuuu avatar Sep 05 '22 01:09 chenxuuu

另外目前qq邮箱有可能有一些封堵措施,这个工具很久没有测试过可用性了,等有空我会试试

chenxuuu avatar Sep 05 '22 01:09 chenxuuu

哦哦,没注意找之前的问题,谢谢。

bluerthanever avatar Sep 05 '22 01:09 bluerthanever

我设置成30MB的话,IMAP连接被切断,是因为QQ的封堵措施么? 我看#1里设置30他可以正常上传~ 主要是不知道为什么SMTP发送可以,IMAP上传不行~

bluerthanever avatar Sep 05 '22 01:09 bluerthanever

另外刚发现。。。好像下不到邮件~~

D:\local_coding>maildisk.exe -u mailDisk maildisk.exe maildisk.exe
uploading file maildisk.exe to mailDisk as maildisk.exe ...
[disk Upload]file need to be splited
[disk upload]upload maildisk.exe<1/2> to mail folder mailDisk, size:20971520
[disk upload]appending...
[disk upload]upload success
[disk upload]upload maildisk.exe<2/2> to mail folder mailDisk, size:20793105
[disk upload]appending...
[disk upload]upload success

上传后再去下载,说找不到文件~

D:\local_coding>maildisk.exe -d mailDisk test.exe maildisk.exe
Download file maildisk.exe from mailDisk as test.exe ...
find 0 matchs in this folder
fatching mails
error! file not exist!

bluerthanever avatar Sep 05 '22 01:09 bluerthanever

大大好~~我这两天试了一下(QQ邮箱和163邮箱),发现好像imap通过append保存的邮件,都搜索不到~ 不知道是不是因为没有在服务器上建立索引什么的?

如果这样感觉就没法用了。

不然就只能是发送邮件的方式。 我昨天试了一下,如果收件人是固定的,如果收件人不存在,发多了会提示本账号有发送垃圾邮件的嫌疑;如果发给自己,好像发多了也会拒收,说收到大量邮件怀疑被攻击之类的。

bluerthanever avatar Sep 06 '22 01:09 bluerthanever

可能你误解了什么,软件上传文件的方式并不是发邮件,而是通过imap的同步邮件功能,将伪造的收件记录同步到邮箱服务器

chenxuuu avatar Sep 06 '22 03:09 chenxuuu

我知道不是发邮件啊,我看了代码,里面写的是APPEND。 https://github.com/chenxuuu/Mail-Box-Net-Disk/blob/dcb1222d01c5596fd6073898f37650a31f35292b/maildisk/maildisk/apis/VisualDisk.cs#L131

我上面说的也是append保存的文件搜不到。我用PYTHON也试了,好像这种方式同步上去的都搜不到。

要不我改个标题?

bluerthanever avatar Sep 06 '22 03:09 bluerthanever

不然就只能是发送邮件的方式。 我昨天试了一下,如果收件人是固定的,如果收件人不存在,发多了会提示本账号有发送垃圾邮件的嫌疑;如果发给自己,好像.发多了也会拒收,说收到大量邮件怀疑被攻击之类的。

我这段意思是,发送邮件的方式的话,比如自己发给自己,再保存到指定文件夹的话,这样的邮件可以搜索到。这样可以实现下载。不然如果搜不到,不是下载不了文件吗

bluerthanever avatar Sep 06 '22 03:09 bluerthanever

不要想用发邮件方式了,这条路不可行

chenxuuu avatar Sep 06 '22 03:09 chenxuuu

所以有什么想法或者思路么。还是你再自己试试?

bluerthanever avatar Sep 06 '22 03:09 bluerthanever

图片

那估计是腾讯做了什么操作,有空再研究吧,反正这代码早晚要重新写

chenxuuu avatar Sep 06 '22 03:09 chenxuuu

好吧,那辛苦大大了~

bluerthanever avatar Sep 06 '22 03:09 bluerthanever