ChrisRAoW / mautic-rss-to-email-bundle

Mautic plugin to send emails from RSS
103 stars 23 forks source link

content seems truncated #45

Closed donbowman closed 3 years ago

donbowman commented 3 years ago

My feed ( https://www.agilicus.com/feed/ ) has items as below.

I would like to send the entire content into the email. I've tried {feeditem:content}, but it sends the same info as {feeditem:description} which is the short overview.

I tried {feeditem:content:encoded} but that gives an error.

Can you suggest how I would achieve this goal? The parser seems fairly simple, if i read it correctly it should select each field by name and make them available.

<item>
<title>Add multi-factor authentication to old applications</title>
<link>https://www.agilicus.com/add-multi-factor-old-applications/</link>
<comments>https://www.agilicus.com/add-multi-factor-old-applications/#respond</comments>

<dc:creator><![CDATA[Don Bowman]]></dc:creator>
<pubDate>Sun, 08 Aug 2021 15:58:59 +0000</pubDate>
<category><![CDATA[Defense-In-Depth]]></category>
<category><![CDATA[web app security]]></category>
<guid isPermaLink="false">https://www.agilicus.com/?p=781717</guid>

<description><![CDATA[<a href="https://www.agilicus.com/add-multi-factor-old-applications/" title="Add multi-factor authentication to old applications" rel="nofollow"><img width="300" height="169" src="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png" class="webfeedsFeaturedVisual wp-post-image wp-stateless-item" alt="multi-factor" loading="lazy" style="display: block; margin-bottom: 5px; clear:both;max-width: 100%;" link_thumbnail="1" srcset="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png 300w, https://www.agilicus.com/www/392d6edb-multi-factor-768x432.png 768w, https://www.agilicus.com/www/392d6edb-multi-factor.png 795w" sizes="(max-width: 300px) 100vw, 300px" data-image-size="medium" data-stateless-media-bucket="agilicus" data-stateless-media-name="www/392d6edb-multi-factor.png" /></a>Your cyber insurance is up for review. IGet all applications authenticated with multi-factor, simply, quickly, compliantly.]]></description>
<content:encoded><![CDATA[<a href="https://www.agilicus.com/add-multi-factor-old-applications/" title="Add multi-factor authentication to old applications" rel="nofollow"><img width="300" height="169" src="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png" class="webfeedsFeaturedVisual wp-post-image wp-stateless-item" alt="multi-factor" loading="lazy" style="display: block; margin-bottom: 5px; clear:both;max-width: 100%;" link_thumbnail="1" srcset="https://www.agilicus.com/www/392d6edb-multi-factor-300x169.png 300w, https://www.agilicus.com/www/392d6edb-multi-factor-768x432.png 768w, https://www.agilicus.com/www/392d6edb-multi-factor.png 795w" sizes="(max-width: 300px) 100vw, 300px" data-image-size="medium" data-stateless-media-bucket="agilicus" data-stateless-media-name="www/392d6edb-multi-factor.png" /></a>
<p>Your cyber insurance is up for review. If you can get all applications authenticated with multi-factor, you can afford it. But, you have only managed to get the new ones done, leaving the miscellaneous. Let&#8217;s talk about how an authenticating proxy can get the rest done, with no work, no fuss. Become compliant right quick.</p>

<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube"><div class="wp-block-embed__wrapper">
<div class="nv-iframe-embed"><div class="container-lazyload preview-lazyload container-youtube js-lazyload--not-loaded"><a href="https://youtu.be/ZycdjJHmjpk" class="lazy-load-youtube preview-lazyload preview-youtube" data-video-title="Adding Multi-Factor Authentication to the older, forgotten applications" title="Play video &quot;Adding Multi-Factor Authentication to the older, forgotten applications&quot;">https://youtu.be/ZycdjJHmjpk</a><noscript>Video can&#8217;t be loaded because JavaScript is disabled: <a href="https://youtu.be/ZycdjJHmjpk" title="Adding Multi-Factor Authentication to the older, forgotten applications">Adding Multi-Factor Authentication to the older, forgotten applications (https://youtu.be/ZycdjJHmjpk)</a></noscript></div></div>
</div></figure>
]]></content:encoded>

<wfw:commentRss>https://www.agilicus.com/add-multi-factor-old-applications/feed/</wfw:commentRss>
<slash:comments>0</slash:comments>

</item>
ChrisRAoW commented 3 years ago

@donbowman Did you also tried {feeditem:content_full}?

See list of available token in the readme (https://github.com/ChrisRAoW/mautic-rss-to-email-bundle)

donbowman commented 3 years ago

sigh, how did i miss that. my apologies. it seems to get all.

i will close.

ChrisRAoW commented 3 years ago

@donbowman no problem. Glad it worked out! Good luck!