> For the complete documentation index, see [llms.txt](https://wiki.lucysecurity.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.lucysecurity.com/lucy-wiki-de/anleitungen/reporting-plugin/gmail-bereitstellen.md).

# Gmail bereitstellen

{% hint style="info" %}
Navigieren Sie zu Vorfälle -> Plugin herunterladen -> Gmail-Add-on
{% endhint %}

***

### 1. Plugin-Dateien herunterladen

Navigieren Sie zu **Vorfälle** und klicken Sie auf die **Plugin herunterladen** Schaltfläche und wählen Sie dann die Option "Gmail Addon".

<figure><img src="https://2098106789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2FN89h523OHYZWopzjrgeg%2Fimage.png?alt=media&amp;token=e8fc990f-59c6-46f7-9a2e-05c942bbf8a8" alt=""><figcaption></figcaption></figure>

Das Add-on wird als Google App bereitgestellt, daher enthält der Download zwei Dateien in einem Archiv:

1. `code.js` - Der Runtime-Code des Plugins.
2. `appsscript.json` - Die Metadaten des Plugins.

***

### 2. Ein neues Google-Projekt erstellen

Gehen Sie zu <https://script.google.com/> und erstellen Sie eine **Neues Projekt**.

<figure><img src="https://2098106789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2FDQqylyBJThEVXwiBfI9W%2Fimage.png?alt=media&amp;token=45732c6d-db0b-40c6-b2d3-55cd4e7ee7d9" alt="" width="563"><figcaption></figcaption></figure>

***

### 3. Code.gs bearbeiten

Wenn sich das Projekt öffnet, kopieren Sie den Inhalt von `code.js` in den Arbeitsbereich und klicken Sie auf das **Speichern** Symbol. Wenn im Arbeitsbereich vor dem Einfügen bereits Code vorhanden ist, entfernen Sie ihn zuerst.

<figure><img src="https://2098106789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2FFhHJRuVP24bX5TfnCFul%2Fimage.png?alt=media&amp;token=8b441849-2469-4b05-bbc6-28dc3789133b" alt=""><figcaption><p>Die Datei heißt standardmäßig Code.gs</p></figcaption></figure>

***

### 4. appsscript.json bearbeiten

Wählen Sie als Nächstes das **Projekteinstellungen** Symbol aus den Optionen links aus und aktivieren Sie die Option "Metadaten 'appsscript.json' im Editor anzeigen". Hier sollten Sie auch Ihre Zeitzone auswählen.

<figure><img src="https://2098106789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2FSXhZAesHrZkjYRp0D8Z5%2Fimage.png?alt=media&amp;token=a63c6e36-7981-40c0-8dc4-8796f0ad1bd1" alt="" width="563"><figcaption></figcaption></figure>

Kehren Sie zum Code-Editor zurück und fügen Sie den Inhalt der `appscript.json` Datei, die Sie heruntergeladen haben, in die `appscript.json` Datei im Editor ein. Wenn im Arbeitsbereich vor dem Einfügen bereits Code vorhanden ist, entfernen Sie ihn zuerst.

<figure><img src="https://2098106789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2Fkh8xdBHQ8EAiLBoYMBoa%2Fimage.png?alt=media&amp;token=29d60e94-a0ae-43b5-8b18-50a7ab191689" alt=""><figcaption></figcaption></figure>

#### Metadaten-Optionen

Die meisten Felder in diesem Objekt sollten unverändert bleiben, aber es gibt einige, die Sie vor der Bereitstellung dieses Projekts überprüfen sollten.

**Name:** Der Name des Add-ons in Ihrem E-Mail-Client. Dieser Name erscheint, wenn Sie den Mauszeiger über die Schaltfläche bewegen.

**Logo-URL:** Ein Link zum Bild der Schaltfläche. Standardmäßig wird ein von uns gehostetes Bild verwendet, aber Sie können Ihr eigenes Bild hosten und hier darauf verlinken.

**Primäre und sekundäre Farbe:** Passen Sie das Farbschema an. Dieses Feld akzeptiert Hex-Codes, verwenden Sie ein [Hex-Code-Tool Ihrer Wahl](https://www.google.com/search?q=color+hex+code+tool) um die Farben zu finden, die Ihnen gefallen.

***

### 5. Das Projekt bereitstellen

Klicken Sie auf **Bereitstellen** und wählen Sie "Neue Bereitstellung". Stellen Sie sicher, dass der Add-on-Typ sowohl **Add-on** und **Web-App**ist und dass die unten für die Web-App angezeigten Optionen ausgewählt sind. Wenn alles korrekt aussieht, klicken Sie auf **Bereitstellen** und klicken Sie dann auf "Fertig".

<figure><img src="https://2098106789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2F5Pxz2nryjCSneAQpm4Mf%2Fimage.png?alt=media&amp;token=8251be23-a52e-44df-8246-2cd6fe39ad82" alt=""><figcaption></figcaption></figure>

***

### 6. Das Add-on installieren

Klicken Sie auf **Bereitstellen** noch einmal und wählen Sie diesmal "Testbereitstellungen" aus, dann wählen Sie "Installieren".

<figure><img src="https://2098106789-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVYPsDfg76rUuy4DWfSsJ%2Fuploads%2F35TqVPArut2W7Q5AGBOL%2Fimage.png?alt=media&amp;token=bf04352e-ee0a-4345-b6d9-73c8a5cc378a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.lucysecurity.com/lucy-wiki-de/anleitungen/reporting-plugin/gmail-bereitstellen.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
