Olyno / SkEmail

Skript addon to send emails
8 stars 3 forks source link

Content of email can't be viewed #43

Closed HC-Emro closed 4 years ago

HC-Emro commented 4 years ago

Versions: 1.15.2 PaperMC

I'm using skript version last version of Skript I'm using SkEmail version last 1.7

I got a java error without reloading error:

.... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! [Skript] Severe Error: .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! Something went horribly wrong with Skript. .... [22:39:09 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either. .... [22:39:09 ERROR]: #!#! It looks like you are using some plugin(s) that alter how Skript works (addons). .... [22:39:09 ERROR]: #!#! Here is full list of them: .... [22:39:09 ERROR]: #!#! skRayFall v1.9.20 (https://sk.rayfall.net/) Vixio v2.0.4 (http://vixio.space) TuSKe v1.8.2-Pikachu-Patch-3 (github.com/Tuke-Nuke/TuSKe) ThatPacketAddon v1.0-BETA.3 (tlatoani.us/thatpacketaddon) Skacket v1.0.2 Skellett v1.9.8 (https://forums.skunity.com/resources/skellett.24/) Skore v1.0.1 SharpSK v1.6.3 Skent v1.9 RandomSk v2.7.2 skript-mirror v2.0.0-SNAPSHOT (https://github.com/btk5h/skript-mirror) skUtilities v0.9.2 (https://tim740.github.io/) SkBee v1.3.0 SkQuery v3.6.5 SkEmail v1.7 .... [22:39:09 ERROR]: #!#! We could not identify which of those are specially related, so this might also be Skript issue. .... [22:39:09 ERROR]: #!#! You should try disabling those plugins one by one, trying to find which one causes it. .... [22:39:09 ERROR]: #!#! If the error doesn't disappear even after disabling all listed plugins, it is probably Skript issue. .... [22:39:09 ERROR]: #!#! In that case, you will be given instruction on how should you report it. .... [22:39:09 ERROR]: #!#! On the other hand, if the error disappears when disabling some plugin, report it to author of that plugin. .... [22:39:09 ERROR]: #!#! Only if the author tells you to do so, report it to Skript's issue tracker. .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! Stack trace: .... [22:39:09 ERROR]: #!#! java.lang.ClassCastException: com.sun.mail.imap.IMAPInputStream cannot be cast to javax.mail.internet.MimeMultipart .... [22:39:09 ERROR]: #!#! at com.olyno.skemail.Utils.getTextFromMessage(Utils.java:16) .... [22:39:09 ERROR]: #!#! at com.olyno.skemail.expressions.ExprBodyOfEmail.convert(ExprBodyOfEmail.java:39) .... [22:39:09 ERROR]: #!#! at com.olyno.skemail.expressions.ExprBodyOfEmail.convert(ExprBodyOfEmail.java:21) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convert(Converters.java:391) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.registrations.Converters.convertUnsafe(Converters.java:382) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:104) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.expressions.base.SimplePropertyExpression.get(SimplePropertyExpression.java:55) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.expressions.base.PropertyExpression.get(PropertyExpression.java:75) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:102) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.VariableString.toString(VariableString.java:477) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:726) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.VariableString.getArray(VariableString.java:1) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.effects.EffBroadcast.execute(EffBroadcast.java:66) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.Effect.run(Effect.java:52) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:89) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.lang.Trigger.execute(Trigger.java:57) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical.execute(EvtPeriodical.java:96) .... [22:39:09 ERROR]: #!#! at ch.njol.skript.events.EvtPeriodical$1.run(EvtPeriodical.java:110) .... [22:39:09 ERROR]: #!#! at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftTask.run(CraftTask.java:99) .... [22:39:09 ERROR]: #!#! at org.bukkit.craftbukkit.v1_15_R1.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:468) .... [22:39:09 ERROR]: #!#! at java.lang.Thread.run(Thread.java:748) .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! Version Information: .... [22:39:09 ERROR]: #!#! Skript: 2.5-alpha3 (latest) .... [22:39:09 ERROR]: #!#! Flavor: skriptlang-github .... [22:39:09 ERROR]: #!#! Date: 2020-03-28 .... [22:39:09 ERROR]: #!#! Bukkit: 1.15.2-R0.1-SNAPSHOT .... [22:39:09 ERROR]: #!#! Minecraft: 1.15.2 .... [22:39:09 ERROR]: #!#! OS: Linux amd64 4.9.0-12-amd64 .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! Current node: null .... [22:39:09 ERROR]: #!#! Current item: broadcast "The content of last email is %the body of {_mails::1}(as javax.mail.Message)%" .... [22:39:09 ERROR]: #!#! Current trigger: Every 10 second (every 10 seconds) (.secu.sk, line 1) .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! Language: english .... [22:39:09 ERROR]: #!#! Link parse mode: LENIENT .... [22:39:09 ERROR]: #!#! .... [22:39:09 ERROR]: #!#! End of Error. .... [22:39:09 ERROR]: #!#!

My code is:

Every 10 second: set {_mails::*} to last 2 mails broadcast "The content of %body of {_mails::1}%"

I want to see the content of the mail, How Can I Do ?

issue-label-bot[bot] commented 4 years ago

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.77. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Olyno commented 4 years ago

This issue doesn't respect the template, I close it.