[ index / * / b / ai / navy / neoranga ] [ mod ] [ uploader ] [ home ]

/b/ - Random

kurame channel img
おなまえ
E-mail
題名
コメント
Verification
ファイル
パスワード (For file deletion.)

お絵かき掲示板はこちらへ

投稿しても反映されない時はキャッシュを消すと反映されてる場合も
(firefoxならshift+リロード chromeならctrl+リロード)


>rktn , >amzn

Recent Images ALL boards

Recent Images /b/


File: 1696433397814.png ( 96.94 KB , 1888x1562 , yu-hi.sakura.ne_dtp_231005002645_008494.png )

 No.17[全部見る]

log mitai
839 レス and 292 画像レス 省略。全て読むには返信ボタンを押してください。

 No.884

>>883
その時のログファイルにはなんとありますか
ログの方がもうちょっと情報多いです
>>848
この分のところを0でなく30にしてはどうでしょ

 No.885

>>884
https://may.2chan.net/b/res/1377188433.htm
20時のログが来てないっぽい…

 No.886

>>884
2026-01-01 00:00
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K response_bytes=1784
got json
found threads[0] posts[0]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%93%EC%8AC%8A%EF response_bytes=1778
got json
found threads[0] posts[0]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2 response_bytes=1778
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K response_bytes=42
#0 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(133): json_decode()
#1 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(350): futaba_pick_json()
#2 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(318): search_futaba()
#3 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(660): search()
#4 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(737): main()
#5 {main}
found threads[0] posts[0]

 No.887

>>886
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%93%EC%8AC%8A%EF response_bytes=42
#0 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(133): json_decode()
#1 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(350): futaba_pick_json()
#2 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(318): search_futaba()
#3 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(660): search()
#4 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(737): main()
#5 {main}
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2 response_bytes=42
#0 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(133): json_decode()
#1 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(350): futaba_pick_json()
#2 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(318): search_futaba()
#3 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(660): search()
#4 /home/yu-hi/www/hinabita_mt/cgi-bin/futaba_searchwatch/futaba_searchwatch.php(737): main()
#5 {main}
found threads[0] posts[0]

 No.888

>>887

# Summary
- ネオランガ on ふたばimg(エラー)
- 南海奇 on ふたばimg(エラー)
- ゆうぴ on ふたばimg(エラー)

# ネオランガ on ふたばimg(エラー)
https://img.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K
| Syntax error
# 南海奇 on ふたばimg(エラー)
https://img.2chan.net/b/futaba.php?mode=search&keyword=%93%EC%8AC%8A%EF
| Syntax error
# ゆうぴ on ふたばimg(エラー)
https://img.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2
| Syntax error

 No.889

>>885
2026-01-01 20:00
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K response_bytes=3311
got json
got res
found threads[1] posts[3]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%93%EC%8AC%8A%EF response_bytes=1778
got json
found threads[0] posts[0]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2 response_bytes=1778
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K response_bytes=1788
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%93%EC%8AC%8A%EF response_bytes=1782
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2 response_bytes=1782
got json
found threads[0] posts[0]

 No.890

>>889
# Summary
- ネオランガ on ふたばmay(一致3, 新規3レス)

# ネオランガ on ふたばmay(一致3, 新規3レス)
https://may.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K

## https://may.2chan.net/b/res/1377188433.htm (一致 3件)
>>去年にスレで一度見かけたんですかネオランガという作品の島原夕姫の振袖おめこくぱぁをお願いします
まさか出していただけると思ってなかったので嬉しい驚きです!
天使の見た目に結構キツイ性格の夕姫の晴れ姿が美しすぎる!!
本当にありがとうございました!!!
----
>去年にスレで一度見かけたんですかネオランガという作品の島原夕姫の振袖おめこくぱぁをお願いします
[ https://may.2chan.net/b/src/1767263553863.png ]
----
去年にスレで一度見かけたんですかネオランガという作品の島原夕姫の振袖おめこくぱぁをお願いします
[ https://may.2chan.net/b/src/1767263437425.png ]


send_mail:success

 No.891

send_mail:success
してるのにメールが届いてない~
これはgmailがbanしてるのかー?

 No.892

>response_bytes=42
応答が全然違うサイズ
not foundの時だって1509bytesはあるから
この短さは「満員です」系統の特殊メッセージっぽい
>>891
send_mail:success はコマンドは成功したってこと
メール内容に不備がある可能性もあるけど届く届かないの両方があるのはgmailが疑わしい

 No.893

>>892
新年の0時00分の満員か…?
00分は色々な何かと衝突しそうだから
次から毎時30分で指定してみますね…

 No.894

https://yu-hi.sakura.ne.jp/hinabita/cgi-bin/sam2.2/sam_r.htm
samne.phpがなぜか拾わない画像がある…
https://yu-hi.sakura.ne.jp/hinabita/media/2026/01/IMG_0712.jpg
https://yu-hi.sakura.ne.jp/hinabita/media/2026/01/IMG_0666.jpg
この二枚が登録されてないようです
何が原因かわかるでしょうか…
無視するファイル名の判定ミス…?
と思ったらそれだ!iphoneからアップすると自動生成サムネと同じ
頭IMG_になってしまうのか…自分で気を付けるしかないのかな

http://siso-lab.net/iphone4s-img-9999-next/
うーん酷い管理だ…
無視するファイル名からIMG_nnnnは除外するみたいな
実装したらよいという問題なんだろうか…?
というか書き出し時に普通に重複するのね…

 No.895

>>894
sam_oo_php
これを調節すればいいです
$ignore_file = '/^(THM_|LOG_|img_|tm_).+\.(png|jpe?g|gif)$|_thumb\.(png|jpe?g|gif)$|-[0-9]+x[0-9]+.[^.]*$/i';

ただ私はそもそもこれらが指定されている意味は知らんのです
最後の-[0-9]+x[0-9]+.[^.]*の部分はwordpressが自動生成するサイズ違いのやつということだけ

例えばcase insensitiveオプションのiを消してcase sensitiveにすると大文字のIMG_には引っかからなくなります

 No.896

>>895
昔使っていたblog投稿ツールが
画像本体をfile_サムネをimg_で生成するものだったので
そのファイル群が貯まっていて判定が必要な状態でした
IMG_とimg_で分ければ良さそうではあります
iphoneから直接画像を投稿しないというのも良いかもですが
>例えばcase insensitiveオプションのiを消してcase sensitiveにする
この場合
$ignore_file = '/^(THM_|LOG_|img_|tm_).+\.(png|jpe?g|gif)$|_thumb\.(png|jpe?g|gif)$|-[0-9]+x[0-9]+.[^.]*$/';
という事でしょうか
拡張子の大文字や謎の例外が混じっていそうで不安ではありますが

 No.897

>>892
>send_mail:success はコマンドは成功したってこと
>メール内容に不備がある可能性もあるけど届く届かないの両方があるのはgmailが疑わしい
今のところmayから通知が届いているようです…
偶に何かでgmailに除外される理由が分からないですね…
試しに00と30のCRON2つ登録するようにしてみましたが
寧ろ悪化しそうで怖いですね
15と45みたいな他とバッティングしない毎時にした方がいいかもな…

 No.898

アップデート
https://github.com/tesheke/sam_oo_php/blob/master/index.php#L63

正規表現の配列で指定出来るように変更
>>896
case-insensitiveにするかどうか細かく指定するようにしました
$ignore_file = [
'/^(THM_|LOG_|img_|tm_).+\.(?i:png|jpe?g|gif)$/',
'/_thumb\.(png|jpe?g|gif)$/i',
'/-[0-9]+x[0-9]+.[^.]*$/',
];
今までとの違いは THM_|LOG_|img_|tm_ あたりの大文字小文字が区別されなかったのが区別されるようになったこと

 No.899

>>898
ありがとうございます!
とりあえず置き換えてみたので様子見中…
$ignore_file
自体が昔の直書きを引き継いでいて
instance-config.phpで書くべき内容な気がしますが
その辺はまあ…違法建築物状態…

$config_ext['vrm'] = 'icon_arc.png';
$config_ext['vroid'] = 'icon_arc.png';
$config_ext['xwear'] = 'icon_arc.png';

とかも足してます

 No.900

https://sub.0res.net/test0636/cont/_img.2chan.net_b_res_1391026137/index.htm
今度はimgの1:30が届いてない…
実はweb拍手の方とか他にも結構届いてないのがあるんだろうか…?

 No.901

>>900
と思ったけどエラーログ見たら自分の設定ミスだった!申し訳ない…

 No.902

2026-01-11 07:30
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%91%A0%8F%97 response_bytes=1775
got json
found threads[0] posts[0]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K response_bytes=3028
got json
got res
found threads[1] posts[3]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%93%EC%8AC%8A%EF response_bytes=1778
got json
found threads[0] posts[0]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2 response_bytes=1778
got json
found threads[0] posts[0]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%D7%DD%B6%DE%B2 response_bytes=1784
got json
found threads[0] posts[0]
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%D7%DD%B6%DE%A8 response_bytes=1784
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%91%A0%8F%97 response_bytes=1779
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K response_bytes=1788
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%93%EC%8AC%8A%EF response_bytes=1782
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2 response_bytes=1782
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%D7%DD%B6%DE%B2 response_bytes=1788
got json
found threads[0] posts[0]
request url=https://img.2chan.net/b/futaba.php?mode=search&keyword=%D7%DD%B6%DE%A8 response_bytes=1788
got json
found threads[0] posts[0]
# Summary
- ネオランガ on ふたばmay(一致3, 新規3レス)

# ネオランガ on ふたばmay(一致3, 新規3レス)
https://may.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K

## https://may.2chan.net/b/res/1379299193.htm (一致 3件)
>ボディペイントあり全裸で舞っているネオランガの夕姫をお願いします
[ https://may.2chan.net/b/src/1768083489669.jpg ]
----
>ボディペイントあり全裸で舞っているネオランガの夕姫をお願いします
当時夕姫、いま橘ありすと、小6好きは変わってない俺
[ https://may.2chan.net/b/src/1768083324468.png ]
----
ボディペイントあり全裸で舞っているネオランガの夕姫をお願いします
[ https://may.2chan.net/b/src/1768082708643.jpg ]


send_mail:success

 No.903

>>902
>send_mail:success
なのに届いてない!
ううむ、本格的に何か対策が必要…?
どうやったらいいのでしょうか…

 No.904

>>903
現状では無理
抜本的にはxoauth2に対応してgmailに直接置く方法が必要だけどtokenの生成手順を私はまだ理解していません
届いたり届かなかったりするのはメールの内容(猥褻な単語とか)による評価の低下が原因だろうから、詳細に書くのをやめて、このドメイン内に生成したhtmlへのリンクだけ送ると少しマシになるかも
あるいはWebPush通知みたいな別の技術

ところでphpのパッケージ管理ソフトの composer ってここは使えますか

 No.905

>>904
うっ…何か良い方法思いついたら教えてください…
通知メールと内容メール二回送ったら
どっちかくらいは通ったりするかも
みたいなあほっぽい実装でもマシだろうか…?
web拍手の方も同じ現象起きてるのかな…
leophone@
を転送専用ではなくミラーにして
そっち確認に行くのが安全そうですが
gmailの外部メール確認通知って来たっけかな…
popが使えなくなったのは知ってるのですが

>composer

全く分かりません!どのように調べられますか

 No.906

>>905
このあたり >>381 の作業と同じようにsshか何かでサーバーに入って composer って入力
でも多分入っていないです

>サクラのレンタルサーバにcomposerをインストールした際の忘備録

>環境はFreeBSD 11.2-RELEASE-p14
>https://qiita.com/yowa/items/9a0ff5ff0fbded01b657
入るっぽい
インストールもそんなに難しくなさそう
必要になってからでいいです

WebPush通知を使うにしてもxoauth2を使うにしてもcomposerが必要なので質問したのでした

 No.907

また要望申し訳ないです
手がお空きの時にお願いしたいのですが
検索結果の文字列の中にNGワードがあった場合
通知しない設定が欲しいです
検索単語1+その単語検索時のNGワード羅列
の組み合わせの方がありがたい感じです
ランガで検索してヒット文字列から
ゴウランガとミシュランガイドがヒットした場合は除外みたいな
物が欲しい状況でした…段々指定がスパゲッティ化していく…

 No.908

File: 1769067034437.txt ( 23.73 KB , futaba_searchwatch.php.txt )

>>907
また設定の書き方が変わります

# url to ['略称', ['keyword1', 'ng1_1', 'ng1_2', ...], ['keyword2', 'ng2_1', 'ng2_2', ...], ...]
$config['urls'] = [
'https://may.2chan.net/b/' =>
['ふたばmay',
['フィギュア'],
['模型', '鉄道模型'],
],
'https://img.2chan.net/b/' =>
['ふたばimg',
['アニメ'],
['映画', 'ホラー映画', '娯楽映画'],
],
# 'https://nijiurachan.net/' =>
# ['あいもげ', ['拡張機能'], ['バグ報告']]
];

 No.909

>>908
ありがとうございます!今気づきました!試します!

 No.910

>>908
差し替えてみて様子見中です
ありがとうございます…

 No.911

要望なのですが
apple watchやiphoneの通知が冒頭しか見えないので

# Summary
- ネオランガ on ふたばimg(一致1, 新規1レス)

# ネオランガ on ふたばimg(一致1, 新規1レス)
https://img.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K

## https://img.2chan.net/b/res/1398542390.htm (一致 1件)
深夜にネオランガとか見てた00年位の話

という通知メールを

深夜にネオランガとか見てた00年位の話
## https://img.2chan.net/b/res/1398542390.htm (一致 1件)

# ネオランガ on ふたばimg(一致1, 新規1レス)
https://img.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K

# Summary
- ネオランガ on ふたばimg(一致1, 新規1レス)

の順に変更できますでしょうか…
自分でも直せそうなしょうもない要望ですみません

 No.912

File: 1770379965969-0.txt ( 24.08 KB , futaba_searchwatch.php.txt )

File: 1770379965969-1.png ( 258.07 KB , 1302x843 , ClipboardImage.png )

>>911
AIがやってくれると思う
この表記だとmarkdownからは逸脱してしまうのが気になる
いっそhtmlメールにしてしまうか

 No.913

>>912
## https://img.2chan.net/b/res/1398542390.htm (一致 1件)
深夜にネオランガとか見てた00年位の話

の語順で行った方が良いんですかね
マークダウンの冒頭に差し込むのに良い表記があれば教えてほしいです!

 No.914

ところで >>912 はアップデートです

>>913
単に構造化文章として変則的になるなというだけの話でした

 No.915

>>914
>1770379965969-0.txt
試しに入れてみました…!様子見中…

 No.916

>>915
キタ━━━━(゚∀゚)━━━━!!
大丈夫そう!ありがとうございます!!
今のところログがあるのに届かないは
再発していない様子…

 No.917

不着!エロ文章規制が混じってるのか…?
やはり本文とは別に先にアラートだけのメールを送るべき?

---- mail start ----
仏頂面で裸エプロン着てるネオランガの島原夕姫をお願いします
[ https://may.2chan.net/b/src/1771042560383.png ]
## https://may.2chan.net/b/res/1387242731.htm (一致 1件)

# 以上:ネオランガ on ふたばmay(一致1, 新規1レス) https://may.2chan.net/b/futaba.php?mode=search&keyword=%83l%83I%83%89%83%93%83K

仏頂面で裸エプロン着てるネオランガの島原夕姫をお願いします
[ https://may.2chan.net/b/src/1771042560383.png ]
## https://may.2chan.net/b/res/1387242731.htm (一致 1件)

# 以上:夕姫 on ふたばmay(一致3, 新規3レス) https://may.2chan.net/b/futaba.php?mode=search&keyword=%97%5B%95P

# Summary
- ネオランガ on ふたばmay(一致1, 新規1レス)
- 夕姫 on ふたばmay(一致3, 新規3レス)


---- mail end ----

send_mail:success

 No.918

>>917
found threads[2] posts[3]
adopt post: https://may.2chan.net/b/res/1387242731.htm#1387278720
skip post(ng word:野崎): https://may.2chan.net/b/res/1387203730.htm#1387207627
skip post(ng word:野崎): https://may.2chan.net/b/res/1387203730.htm#1387206690
skip thread(no new posts): https://may.2chan.net/b/res/1387203730.htm
request url=https://may.2chan.net/b/futaba.php?mode=search&keyword=%82%E4%82%A4%82%D2 response_bytes=1778

あれ、もしかしてng wordって検索結果じゃなくてスレ全体見てます…?
検索結果の範囲以外の所に偶然ng wordが混じる事良くありそうなので
検索結果で出た範囲くらいで判定して欲しい気がしました…
今回は「野崎」が混じったスレの全然別の場所で「夕姫」が出ていたものでした
野崎と夕姫が近くにあるかどうかはスレ内判定ではなく
検索結果内の判定の方が用途上はありがたい感じですね…

 No.919

>>918
>あれ、もしかしてng wordって検索結果じゃなくてスレ全体見てます…?
536行目の通り1レス内しか見てない

 No.920

>>919
となると届かなかったのは別の理由ですか
やっぱりエロ文章規制…?

 No.921

>skip post(ng word:野崎): https://may.2chan.net/b/res/1387203730.htm#1387207627
>skip post(ng word:野崎): https://may.2chan.net/b/res/1387203730.htm#1387206690
>…128無念Nameとしあき26/02/14(土)03:18:15No.1387207627そうだねx4
> 1771006695364.jpg-(872329 B)
> >八月のシンデレラナインの野崎夕姫がw手コキしながらセックス奉仕してるのお願いします
No.1387206690が元レス、No.1387206690が引用レス
スレ内に「夕姫」単体で書き込んだレスはない

あるスレ内の投稿全てがskipの場合はスレ自体をskipする
>>918 のログならadoptがあるんだからsendmail logもあるのでは
sendmail logがあるのに届いてないならgoogle側の何かが疑わしい
>>917 も同様

 No.922

>>921
sakuraインターネットからgmailが無視される症状の一つなんでしょうね
困りますね…
自前で送ってるメールとかでも不着があるんじゃないかと不安になります

 No.923

エロ文章規制の可能性を回避する為に
先にアラート通知のみのメールを送って
追加で内容のメールを送るのはアリでしょうか…?
連続送付で余計ブロックされやすくなりますかね…

 No.924

# ランガイ on ふたばimg(エラー)
https://img.2chan.net/b/futaba.php?mode=search&keyword=%83%89%83%93%83K%83C
| Syntax error
# Summary
- ランガイ on ふたばimg(エラー)

何らかのエラーだったメールが届いた…
多分二次裏側がなんかテンポってたのだろうか…?

 No.925

>>923
とりあえず自分でなんとかしようとして下さい
そしたら手伝いまする
>>924
response jsonの中に必須キーがない場合にsyntax errorが出ます
>多分二次裏側がなんかテンポってたのだろうか…?
この推測が正しいです

 No.926

# 1通目: サブジェクトのみで内容のないメール
$r = sendmail_utf8(
$config['email_address'],
$subject,
'検索結果あり');
$r = $r ? 'success' : 'failure';
$mail_result = PHP_EOL.'send_mail:'.$r.PHP_EOL;

# 2通目: 内容ありのメール(今まで通り)
$r = sendmail_utf8(
$config['email_address'],
$subject,
$msg);
$r = $r ? 'success' : 'failure';
$mail_result = PHP_EOL.'send_mail:'.$r.PHP_EOL;

ここの二重化で行ける感じでしょうか…?

 No.927

>>926
いい感じ
$mail_result が2回目の時に上書きされちゃうけどsendmailコマンドが失敗するのは致命的な何かが起きたときや、環境を変えた時だからほぼ問題ないです

 No.928

File: 1771832231542.txt ( 24.5 KB , futaba_searchwatch.php.txt )

>>927
ありがとうございます!
とりあえずこれで置き換えてみました
様子見中…

 No.929

>>928
検索結果あり

しか届かなくなってしまって役立たずなので戻しました
2通同時に送るのはダメなようです…

 No.930

File: 1772196651234-0.txt ( 5.94 KB , log.txt )

File: 1772196651234-1.txt ( 3.09 KB , log0001.txt )

>>929
そもそも何かバグっている…?
logが役立たずになってしまっていた…
notified.txt
も更新されなくなっていたようです
うむむ…

 No.931

>>930
ううn?
>diff futaba_searchwatch.php 1771832231542.txt( >>928 )
>731a732,741
>>
>> # 1通目: サブジェクトのみで内容のないメール
>> $r = sendmail_utf8(
>> $config['email_address'],
>> $config['email_subject'].date(' Y-m-d H:i'),
>> '検索結果あり');
>> $r = $r ? 'success' : 'failure';
>> $mail_result = PHP_EOL.'send_mail:'.$r.PHP_EOL;
>>
>> # 2通目: 内容ありのメール(今まで通り)
diff取った感じここ以外は変更していないから、そこまでのことは起きないはずなのだけれど

 No.932

>>931
謎過ぎる…
自分でもそこまで不具合出るとは思ってませんでした…どういうことなの…

検索結果ありしか届かないと
何のことだか全くわからないので
検索ワードだけのメール(検索結果ではなく)
に変えるのも必要だと思いました

しかし今回の連続ヒットで
毎回検索結果アリしか届かなかったので
一瞬で2通送るのはそれだけでペナルティなのかもしれません
仮に2通両方送れるとしても先に本来の内容を送った後
後から検索ワードだけ飛ばす方が良いかもですね
後から送った方が無視されるという可能性を考えると
他にも同じサブジェクトは避けた方が良いとかあるかもしれません…

実は今までも別のワードで複数当たった場合
うち1個しか通知が来てなかったかも知れません…
なかなか困りますね…

 No.933

>>932
>実は今までも別のワードで複数当たった場合
>うち1個しか通知が来てなかったかも知れません…
私のコードの時点だとスクリプト1回の実行で複数の検索ワードに結果があってもメールの送信は1回です

即時2通送信がダメなら
cronかなんかに1回だけ実行のコードを登録してそれで5分後にメール送信とかかな



[戻る][板のトップ] Catalog Images[Post a Reply]
記事削除 [ ]
[ index / * / b / ai / navy / neoranga ] [ mod ] [ uploader ] [ home ]