28 lines
779 B
Plaintext
28 lines
779 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Mail - Mark as Unread
|
||
|
//:: mail_markunread.nss
|
||
|
//:: Copyright (c) 2003 Jake E. Fitch
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
Mark the message as unread.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Jake E. Fitch (Milambus Mandragon)
|
||
|
//:: Created On: Jan. 6, 2004
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
#include "mail_include"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oMailman = GetNearestObjectByTag("Mailman", oPC);
|
||
|
|
||
|
int iMessageID = GetLocalInt(oMailman, "mail_Message");
|
||
|
|
||
|
SetCampaignInt(DBName, "R" + IntToString(iMessageID), FALSE);
|
||
|
|
||
|
DeleteLocalInt(oMailman, "mail_LastOption");
|
||
|
DeleteLocalInt(oMailman, "mail_LastMessage");
|
||
|
}
|