正在显示
3 个修改的文件
包含
14 行增加
和
2 行删除
@@ -272,6 +272,9 @@ class MailListV2Es extends Base { | @@ -272,6 +272,9 @@ class MailListV2Es extends Base { | ||
272 | // 邮件箱 | 272 | // 邮件箱 |
273 | $v['folder_name'] = db()->cache(86400)->value(folderSql::first($v['folder_id'],'folder')); | 273 | $v['folder_name'] = db()->cache(86400)->value(folderSql::first($v['folder_id'],'folder')); |
274 | 274 | ||
275 | + // 暂时这样吧 | ||
276 | + $v['flagged'] = db()->value(\Model\listsSql::first('id = '.$v['id'],'`flagged`')); | ||
277 | + | ||
275 | return $v; | 278 | return $v; |
276 | },$lists?:[]); | 279 | },$lists?:[]); |
277 | 280 |
@@ -288,7 +288,7 @@ class MailFun { | @@ -288,7 +288,7 @@ class MailFun { | ||
288 | $mail->send_proxy_host = implode(':',$smtp); | 288 | $mail->send_proxy_host = implode(':',$smtp); |
289 | 289 | ||
290 | foreach (MailProxy::getProxy() as $ip){ | 290 | foreach (MailProxy::getProxy() as $ip){ |
291 | - $mail->Host = $ip; | 291 | + $mail->Host = empty($email['smtp_proxy'])?$ip:$email['smtp_proxy']; |
292 | // 发送成功直接返回 | 292 | // 发送成功直接返回 |
293 | if($mail->send()){ | 293 | if($mail->send()){ |
294 | logs('sendmail '.$ip.' success '.$email['email'].' to '.$data['tos'][0]['email'],LOG_PATH.'/mail_send.log'); | 294 | logs('sendmail '.$ip.' success '.$email['email'].' to '.$data['tos'][0]['email'],LOG_PATH.'/mail_send.log'); |
@@ -42,6 +42,9 @@ class MailProxy { | @@ -42,6 +42,9 @@ class MailProxy { | ||
42 | ]; | 42 | ]; |
43 | 43 | ||
44 | /** | 44 | /** |
45 | + * TODO: 国内ip不能用来转发gmail | ||
46 | + * TODO: 国内ip不能用来转发gmail | ||
47 | + * TODO: 国内ip不能用来转发gmail | ||
45 | * 代理服务器 地址 | 48 | * 代理服务器 地址 |
46 | * @var string[] | 49 | * @var string[] |
47 | */ | 50 | */ |
@@ -78,8 +81,14 @@ class MailProxy { | @@ -78,8 +81,14 @@ class MailProxy { | ||
78 | unset($host[$k]); | 81 | unset($host[$k]); |
79 | } | 82 | } |
80 | } | 83 | } |
81 | - | 84 | + //TODO: 国内ip不能用来转发gmail |
85 | + //TODO: 国内ip不能用来转发gmail | ||
86 | + //TODO: 国内ip不能用来转发gmail | ||
82 | $host[] = '101.42.1.235'; // 北京的服务器 不能用gmail来使用这个ip | 87 | $host[] = '101.42.1.235'; // 北京的服务器 不能用gmail来使用这个ip |
88 | + $host[] = '101.43.238.130'; // 北京的服务器 不能用gmail来使用这个ip | ||
89 | + $host[] = '82.157.160.98'; // 北京的服务器 不能用gmail来使用这个ip | ||
90 | + $host[] = '101.42.26.228'; // 北京的服务器 不能用gmail来使用这个ip | ||
91 | + $host[] = '58.87.96.140'; // 北京的服务器 不能用gmail来使用这个ip | ||
83 | 92 | ||
84 | shuffle($host); | 93 | shuffle($host); |
85 | 94 |
-
请 注册 或 登录 后发表评论