slurdge / goeland

An alternative to rss2email written in golang with many filters
MIT License
169 stars 11 forks source link

includelink filter doesn't work #212

Closed joe2xyz closed 2 months ago

joe2xyz commented 2 months ago

Hi folks,

Thank you for Goeland. It's FANTASTIC software!!!

I'm trying to get rss2email experience - by getting a single e-mail per each new post in RSS feed.

I configured Goeland like this:

...

[sources.xyz]
url = "https://.../"
type = "feed"
filters = ["unseen", "retrieve", "includesourcetitle", "includelink", "untrack"]
allow-insecure = false

...

[pipes.xyz]
disabled = false
source = "xyz"
destination = "email"
email_title = "xyz: {{.EntryTitle}}"
email_to = ["to@example.com"]
email_cc = []
email_bcc = []
email_from = "xyz <from@example.>"
# email_title =

...

But I'm getting e-mails with plain text - with no links to the post.

Is it a bug?

Thank you.

Desktop

slurdge commented 2 months ago

Hello,

Thank you for your kind words.

But I'm getting e-mails with plain text - with no links to the post.

Every email is sent both as HTML & plain text, can you check that you are indeed receiving both of them by looking at the source of the email ? Maybe your client does prefer plain text ? Alternatively, can you attach here a screenshot of what the email looks like ?

Thanks !

joe2xyz commented 2 months ago

HI @slurdge , Thank you for the answer.

Apologies, I didn't want to say plain text (I'm getting HTML). I wanted to say that I'm getting just text. The e-mail doesn't include a link to the post. In other words, if I want to see the post, I need to visit the site and search for the post.

billy-mar commented 2 months ago

@slurdge I can confirm that the configuration above sends text only - without to the post that the RSS feed refers to.

slurdge commented 2 months ago

@billy-mar @joe2xyz That's very strange, I just tested and it seems to work. Have you included

include-title = true

in the email section ? Or else you won't have any titles (and thus no links).

joe2xyz commented 2 months ago

Thank you, that was the problem. I had include-header = false. I looked at template HTML and I realized how the include switches work. I also realized that I can create my own template so I don't have the graphical logo on the top which is the reason why I disabled the header.

Thank you!

joe2xyz commented 2 months ago

I had include-header = false. THANK YOU!!!