• R/O
  • SSH
  • HTTPS

dietmemorer: Commit


Commit MetaInfo

Revision24 (tree)
Time2008-01-23 14:54:44
Authoryaggy

Log Message

mailbody空の判定を変更

Change Summary

Incremental Difference

--- trunk/src/mail_analizer.rb (revision 23)
+++ trunk/src/mail_analizer.rb (revision 24)
@@ -281,8 +281,7 @@
281281 end
282282
283283 # ヘルプ要求っぽかったら、ヘルプ送信
284- if MailAnalizer.in_ary(@@sub_help, mailsub) \
285- or mailbody == nil or mailbody == "" then
284+ if MailAnalizer.in_ary(@@sub_help, mailsub) then
286285 sth.finish
287286 Debug.p "send help."
288287 send_help(mailfrom, smtpserver, smtpfrom)
@@ -290,8 +289,7 @@
290289 end
291290
292291 # グラフ要求っぽかったら、グラフ送信
293- if MailAnalizer.in_ary(@@sub_graph, mailsub) \
294- or mailbody == nil or mailbody == "" then
292+ if MailAnalizer.in_ary(@@sub_graph, mailsub) then
295293 sth.finish
296294 Debug.p "send graph."
297295 send_graph(mailfrom, smtpserver, smtpfrom)
@@ -299,8 +297,7 @@
299297 end
300298
301299 # 体重グラフ要求っぽかったら、体重グラフ送信
302- if MailAnalizer.in_ary(@@sub_wgraph, mailsub) \
303- or mailbody == nil or mailbody == "" then
300+ if MailAnalizer.in_ary(@@sub_wgraph, mailsub) then
304301 sth.finish
305302 Debug.p "send weight graph."
306303 send_wgraph(mailfrom, smtpserver, smtpfrom)
@@ -308,8 +305,7 @@
308305 end
309306
310307 # 体脂肪グラフ要求っぽかったら、体脂肪グラフ送信
311- if MailAnalizer.in_ary(@@sub_fgraph, mailsub) \
312- or mailbody == nil or mailbody == "" then
308+ if MailAnalizer.in_ary(@@sub_fgraph, mailsub) then
313309 sth.finish
314310 Debug.p "send fat graph."
315311 send_fgraph(mailfrom, smtpserver, smtpfrom)
@@ -317,8 +313,7 @@
317313 end
318314
319315 # リセット要求っぽかったら、当日のデータ全消去
320- if MailAnalizer.in_ary(@@sub_reset, mailsub) \
321- or mailbody == nil or mailbody == "" then
316+ if MailAnalizer.in_ary(@@sub_reset, mailsub) then
322317 sth.finish
323318 Debug.p "send reset."
324319 send_reset(mailfrom, smtpserver, smtpfrom)
@@ -325,6 +320,14 @@
325320 return
326321 end
327322
323+ # ボディが空だったら、ヘルプ送信
324+ if nil == mailbody or "" == mailbody then
325+ sth.finish
326+ Debug.p "send help."
327+ send_help(mailfrom, smtpserver, smtpfrom)
328+ return
329+ end
330+
328331 Debug.p "subject"
329332 Debug.p mailsub
330333
Show on old repository browser