OSDN Git Service

PukiWiki/1.4/ちょっと便利に/更新時の差分だけをメールで送信
authorarino <arino>
Mon, 27 Oct 2003 02:43:19 +0000 (11:43 +0900)
committerarino <arino>
Mon, 27 Oct 2003 02:43:19 +0000 (11:43 +0900)
file.php
pukiwiki.ini.php

index e8a77e7..5cf3287 100644 (file)
--- a/file.php
+++ b/file.php
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: file.php,v 1.33 2003/09/24 00:38:43 arino Exp $
+// $Id: file.php,v 1.34 2003/10/27 02:43:19 arino Exp $
 //
 
 // ¥½¡¼¥¹¤ò¼èÆÀ
@@ -94,7 +94,7 @@ function file_write($dir,$page,$str,$notimestamp=FALSE)
 {
        global $post,$update_exec;
        global $_msg_invalidiwn;
-       global $notify,$notify_to,$notify_from,$notify_subject,$notify_header;
+       global $notify,$notify_diff_only,$notify_to,$notify_from,$notify_subject,$notify_header;
        global $smtp_server,$smtp_auth;
        
        if (!is_pagename($page))
@@ -150,6 +150,11 @@ function file_write($dir,$page,$str,$notimestamp=FALSE)
        
        if ($notify and $dir == DIFF_DIR)
        {
+               if ($notify_diff_only)
+               {
+                       // º¹Ê¬¤À¤±¤òÁ÷¿®¤¹¤ë
+                       $str = preg_replace('/^[^-+].*$/m','',$str);
+               }
                if ($smtp_auth)
                {
                        pop_before_smtp();
index 69f16f7..435ff24 100644 (file)
@@ -2,7 +2,7 @@
 /////////////////////////////////////////////////
 // PukiWiki - Yet another WikiWikiWeb clone.
 //
-// $Id: pukiwiki.ini.php,v 1.48 2003/09/24 07:28:51 arino Exp $
+// $Id: pukiwiki.ini.php,v 1.49 2003/10/27 02:43:19 arino Exp $
 //
 // PukiWiki setting file
 
@@ -216,6 +216,8 @@ $no_proxy = array(
 ////////////////////////////////////////////////
 // ¥Ú¡¼¥¸¤Î¹¹¿·»þ¤Ë¥á¡¼¥ë¤òÁ÷¿®¤¹¤ë
 $notify = 0;
+// º¹Ê¬¤À¤±¤òÁ÷¿®¤¹¤ë
+$notify_diff_only = 0;
 // To:¡Ê°¸Àè¡Ë
 $notify_to = 'xxx@yyy.zz';
 // From:¡ÊÁ÷¤ê¼ç¡Ë