Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
新規関数 OnDeleteMailNotArrive を追加した。
未達の場合に削除できる関数。
  • Loading branch information
ambergon committed Nov 21, 2023
1 parent 3098b02 commit e85f1e5
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 4 deletions.
9 changes: 9 additions & 0 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,15 @@ notifypluginを使用して削除します。
それ以前に起動された場合に削除するなどでしょう。


#### 未達ならばメール削除:OnDeleteMailNotArrive
```
\![notifyplugin,MailBox,OnDeleteMail,メールID]
```
- notifypluginを使用して実行。
- まだ届いていない場合のみ指定したメールを削除する。
- OnMailsStatus を経由せずに処理できる利点がある。


#### ゴーストが送信済みのすべてのメールIDの取得:OnGetAllMailID
raisepluginを使用して呼び出す。

Expand Down
10 changes: 10 additions & 0 deletions code/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,16 @@ extern "C" __declspec(dllexport) HGLOBAL __cdecl request(HGLOBAL h, long *len){
}


//未達ならメールを削除する。
//引数0 : メールID
} else if ( strcmp( ID , "OnDeleteMailNotArrive" ) == 0 ) {
if ( Reference0 != NULL ){
int mailStatus = StatusMail( Sender , Reference0 );
if( mailStatus == 1 ){
DeleteMail( Sender , Reference0 );
}
}

//メールの状態を確認する機能
//第0引数 メールID
} else if ( strcmp( ID , "OnStatusMail" ) == 0 ) {
Expand Down
Binary file modified main.dll
Binary file not shown.
4 changes: 2 additions & 2 deletions updates.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
charset,Shift_JIS
file,.gitignored3ce2eae6ca9390e93d78856c30465f8size=263date=2023-11-08T19:59:55
file,ReadMe.mdd3bda92d0b76fb6d676ac53567b37cd0size=7313date=2023-11-21T09:20:32
file,ReadMe.md551c367e1c2ce99aa1c0b0291c1a28fbsize=7616date=2023-11-21T18:32:40
file,descript.txta320ac241729338b90de6ff34dca6d46size=404date=2023-11-20T19:56:41
file,developer_options.txt7ca5010be2d3da4867a2ad073fcc2932size=68date=2023-11-11T07:43:28
file,install.txt546820c355858cd0b2302fe5fea5b0fbsize=43date=2023-11-05T22:29:36
file,main.dll4097cbbde921025ef4881d42b38cc6edsize=5538592date=2023-11-19T20:49:33
file,main.dll0f8542e9fd95fdb4459d090bb0deb5cbsize=5538592date=2023-11-21T18:21:03
4 changes: 2 additions & 2 deletions updates2.dau
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.gitignored3ce2eae6ca9390e93d78856c30465f8size=263date=2023-11-08T19:59:55charset=Shift_JIS
ReadMe.mdd3bda92d0b76fb6d676ac53567b37cd0size=7313date=2023-11-21T09:20:32
ReadMe.md551c367e1c2ce99aa1c0b0291c1a28fbsize=7616date=2023-11-21T18:32:40
descript.txta320ac241729338b90de6ff34dca6d46size=404date=2023-11-20T19:56:41
developer_options.txt7ca5010be2d3da4867a2ad073fcc2932size=68date=2023-11-11T07:43:28
install.txt546820c355858cd0b2302fe5fea5b0fbsize=43date=2023-11-05T22:29:36
main.dll4097cbbde921025ef4881d42b38cc6edsize=5538592date=2023-11-19T20:49:33
main.dll0f8542e9fd95fdb4459d090bb0deb5cbsize=5538592date=2023-11-21T18:21:03

0 comments on commit e85f1e5

Please sign in to comment.