Difference between revisions of "LlTargetedEmail/ja"

From Second Life Wiki
Jump to navigation Jump to search
m
m
 
Line 5: Line 5:
|p2_type=string|p2_name=subject
|p2_type=string|p2_name=subject
|p3_type=string|p3_name=message
|p3_type=string|p3_name=message
|func_footnote=The entire message (including the address, subject and other miscellaneous fields) can't be longer than 4096 bytes combined.
|func_footnote=アドレス、件名、その他の雑多なフィールドを含むメッセージ全体の長さは合計で4096バイトを超えてはいけません。
|func_desc=Sends an email to the owner (selected by {{LSLP|target}}) of an object with {{LSLP|subject}} and {{LSLP|message}}.
|func_desc=指定された{{LSLP|target}}のオブジェクトの所有者に{{LSLP|subject}}{{LSLP|message}}を含むメールを送信します。
|return_text
|return_text
|spec=The target parameter selects which agent the email is sent to
|spec=ターゲットパラメータは、メールを送信する対象のエージェントを選択します。
{{LSL_Constant/llTargetedEmail}}
{{LSL_Constant/llTargetedEmail}}
The {{LSLP|message}} is prefixed with information about the prim sending the email.
{{LSLP|message}} は、メールを送信するprimに関する情報が前置きされます。
{{{!}}{{Prettytable}}
{{{!}}{{Prettytable}}
{{!}}-{{Hl2}}
{{!}}-{{Hl2}}
Line 32: Line 32:
</pre>
</pre>
{{!}}}
{{!}}}
|caveats=* Originally this function was intended to enable sending email to either the object owner or creator; however, the ability to email creators was removed to avoid abuse scenarios.
|caveats=* 当初、この関数はオブジェクトの所有者またはクリエーターにメールを送信できるように意図されていましたが、クリエーターにメールを送信する機能は悪用のシナリオを回避するために削除されました。
* There is a limit to the number of email messages an object can send in a given amount of time.
* 一定の時間内にオブジェクトが送信できるメールの数には制限があります。
* There is a limit of 500 messages from a single agent's objects in a one hour period.
* 1時間あたりの単一のエージェントのオブジェクトからのメッセージは500件の制限があります。
* The 4096 byte size limit includes the subject line and automatically added text.  The practical maximum body size is approximately 3600 bytes.
* 4096バイトのサイズ制限には件名と自動的に追加されるテキストが含まれます。実用上の最大本文サイズは約3600バイトです。
* (Sept-2008) The Email Throttle was modified slightly, Per {{User|Prospero Linden}}'s comments: "there has long been a throttle that makes a single script sleep for 20 seconds after sending an email. The new throttle is per user... some were using many, many different scripts to send spam. (the new throttle applies) when the destination is outside of Second Life. I know that messages within the same region were not throttled (beyond the 20-second delay), and I *believe* that messages between different sims were not throttled (between the 20-second delay)."
* (2008年9月) Email Throttleはわずかに変更されました。{{User|Prospero Linden}}のコメントによれば、「メールを送信した後、単一のスクリプトが20秒間スリープするスロットルが以前から存在していました。新しいスロットルはユーザーごとに適用されます... 一部のユーザーはスパムを送信するために多くの異なるスクリプトを使用していました。(新しいスロットルは) Second Lifeの外部宛ての場合に適用されます。同じリージョン内のメッセージは(20秒の遅延を超えて)スロットルされなかったはずですし、*異なるsim間のメッセージも(20秒の遅延を超えて)スロットルされていなかったと私は *信じています」。
* Due to the bug {{Jira|SVC-23}} (present since 2005), objects may stop receiving emails completely until either the region is restarted or the object crosses a region boundary (resetting the script doesn't help).  Emails sent may eventually be received after a restart/region-cross.  Hence, don't rely on this function for reliable inter-region messaging.
* バグ{{Jira|SVC-23}}(2005年以来存在)により、オブジェクトはリージョンが再起動されるか、オブジェクトがリージョン境界を越えるまで、完全にメールを受信しなくなることがあります(スクリプトをリセットしても効果がありません)。送信されたメールは再起動/リージョン越境後に最終的に受信される可能性があります。したがって、信頼性のあるリージョン間メッセージングのためにこの関数に頼らないでください。
* Due to the bug {{Jira|SVC-391}} llEmail will silently fail (no mail will arrive) when non-ascii characters are present in the subject. However, non-ascii characters in the message body will be replaced by "?".
* バグ{{Jira|SVC-391}}のため、件名に非ASCII文字が含まれている場合、llEmailは静かに失敗します(メールは届きません)。ただし、メッセージ本文に非ASCII文字が含まれている場合、それらは「?」に置き換えられます。
|constants
|constants
|examples=
|examples=
Line 61: Line 61:
</syntaxhighlight>
</syntaxhighlight>
|also_functions=
|also_functions=
{{LSL DefineRow||[[llEmail]]}}
{{LSL DefineRow||[[llEmail/ja]]}}
|permission
|permission
|negative_index
|negative_index

Latest revision as of 16:36, 22 November 2023

要約

関数: llTargetedEmail( integer target, string subject, string message );

指定されたtargetのオブジェクトの所有者にsubjectmessageを含むメールを送信します。

• integer target
• string subject
• string message

アドレス、件名、その他の雑多なフィールドを含むメッセージ全体の長さは合計で4096バイトを超えてはいけません。

仕様

ターゲットパラメータは、メールを送信する対象のエージェントを選択します。

Constant Val Select the email destination
TARGETED_EMAIL_OBJECT_OWNER 2 send email to the owner of the current object

message は、メールを送信するprimに関する情報が前置きされます。

Template Example
Object-Name: *prim*
Region: *simname* (*simpos.x*, *simpos.y*)
Local-Position: (*primpos.x*, *primpos.y*, *primpos.z*)

*message*
Object-Name: Object
Region: Gibson (254976, 256000)
Local-Position: (117, 129, 50)

The real message starts here.

警告

  • この関数は 20.0 秒間、スクリプトを停止します。
  • 当初、この関数はオブジェクトの所有者またはクリエーターにメールを送信できるように意図されていましたが、クリエーターにメールを送信する機能は悪用のシナリオを回避するために削除されました。
  • 一定の時間内にオブジェクトが送信できるメールの数には制限があります。
  • 1時間あたりの単一のエージェントのオブジェクトからのメッセージは500件の制限があります。
  • 4096バイトのサイズ制限には件名と自動的に追加されるテキストが含まれます。実用上の最大本文サイズは約3600バイトです。
  • (2008年9月) Email Throttleはわずかに変更されました。Prospero Lindenのコメントによれば、「メールを送信した後、単一のスクリプトが20秒間スリープするスロットルが以前から存在していました。新しいスロットルはユーザーごとに適用されます... 一部のユーザーはスパムを送信するために多くの異なるスクリプトを使用していました。(新しいスロットルは) Second Lifeの外部宛ての場合に適用されます。同じリージョン内のメッセージは(20秒の遅延を超えて)スロットルされなかったはずですし、*異なるsim間のメッセージも(20秒の遅延を超えて)スロットルされていなかったと私は *信じています」。
  • バグSVC-23(2005年以来存在)により、オブジェクトはリージョンが再起動されるか、オブジェクトがリージョン境界を越えるまで、完全にメールを受信しなくなることがあります(スクリプトをリセットしても効果がありません)。送信されたメールは再起動/リージョン越境後に最終的に受信される可能性があります。したがって、信頼性のあるリージョン間メッセージングのためにこの関数に頼らないでください。
  • バグSVC-391のため、件名に非ASCII文字が含まれている場合、llEmailは静かに失敗します(メールは届きません)。ただし、メッセージ本文に非ASCII文字が含まれている場合、それらは「?」に置き換えられます。
All Issues ~ Search JIRA for related Bugs

サンプル

string emailSubject = "Someone touched me!";

default
{
    touch_start(integer num_detected)
    {
        // llSay(PUBLIC_CHANNEL, "Sending eMail report now, this will take ~20 seconds.");

        key id = llDetectedKey(0);
        string name = llDetectedName(0);

        llTargetedEmail(TARGETED_EMAIL_OBJECT_OWNER, emailSubject,
            "I was touched by: '" + name + "' (" + (string)id + ").");

        // llSay(PUBLIC_CHANNEL, "Email has been sent.");
    }
}

関連項目

関数

•  llEmail/ja

特記事項

Search JIRA for related Issues

Signature

function void llTargetedEmail( integer target, string subject, string message );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。