# Email mode config improvements

**URL:** <https://discourse.slicer.org/t/email-mode-config-improvements/140>\
**Category:** Forum and website feedback\
**Created:** [April 13, 2017, 8:51pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140 "2017-04-13T20:51:04Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [April 13, 2017, 8:51pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/1 "2017-04-13T20:51:04Z")

</div>

Dear all,

I humbly submit that I dislike the new e-mail list.  
(No offense intended. But I cannot tell a lie.)

See attachment for what it looks like in html e-mail (Outlook).  
The topic content is overshadowed by heavy-handed formatting.

In txt e-mail (Claws) the content/formatting ratio is better.  
But the excerpt feature does not work. Also, there is no way  
to access images from a text e-mail client since they are  
neither attached nor is there a full URL link.

-Greg

PS: How can I see which e-mail is tied with which sub-forum?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/a/da471548a5c8efec2e70b5ba715ad29580f538ec.png)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 13, 2017, 8:53pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/2 "2017-04-13T20:53:48Z")

</div>

You can configure in the preferences ([https://discourse.slicer.org/users/lassoan/preferences](https://discourse.slicer.org/users/lassoan/preferences), Email section) what you would like to get in the notification email.

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 13, 2017, 9:40pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/3 "2017-04-13T21:40:54Z")

</div>

@gcsharp thanks for the feedback! I’d rather we hear it now than have disgruntled users or less participation. Hopefully there are enough knobs available to make some of this better. I made a few tweaks that I hope will improve the situation – let me know how this looks to you by email.

I’m including the changes here, so I can remember what I did (and others can change/revert if needed).

- “Takes up way too much space”
  - `email posts context` → 0

- “Only 10 characters visible” → shorten the title:
  - `email prefix` → “Slicer” (instead of defaulting to `title`, which is “3D Slicer Forum”)

- “Stupid and redundant”, “Redundant. I already know the sender”
- removed the following from “User Replied” “User Posted” “User Mentioned” “User Quoted” email templates (in admin settings):

```auto
%{header_instructions}

%{context}

%{respond_instructions}

```

- “Image should be attachment or link”
  - I don’t quite know how to deal with this right now, unfortunately. Images are linked out to remote resources (and stripped from very short messages to avoid spam filter). Will investigate.

> PS: How can I see which e-mail is tied with which sub-forum?

Email title. After the tweaks I think it should look like [Slicer/Forum feedback] (“Forum feedback” category), [Slicer/Support] (“Support” category), etc. We could potentially shorten names to get closer to the traditional [slicer-users] / [slicer-devel] length people are used to (unfortunately we can’t use the category “slug” in the title yet: [Add an optional category-specific [slug] for email subject lines. by icculus · Pull Request #4799 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/4799)).

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 13, 2017, 10:01pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/4 "2017-04-13T22:01:03Z")

</div>

(another test for me to view on my test account)

- try using %{topic\_slug} in the `email subject` setting

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 13, 2017, 10:03pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/5 "2017-04-13T22:03:49Z")

</div>

(Oops, well that was ugly 🙂, reverting)

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 14, 2017, 6:03am UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/6 "2017-04-14T06:03:34Z")

</div>

The current [Slicer[Development] ] subject line prefix does not look nice: spacing is inconsistent, many square brackets, etc.

It would be also nice to be consistent with subject line prefix of GitHub notifications. For example, this is an email subject sent by GitHub:

> Re: [Slicer/Slicer] WIP: Use header metadata to initialize volume scalar range (#702)

I think [SlicerForum/Category/Subcategory] would be a short and consistent subject line prefix, for example:

> [SlicerForum/Support] Some subject abc abc  
> [SlicerForum/Development] Some subject abc abc

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 14, 2017, 1:09pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/7 "2017-04-14T13:09:50Z")

</div>

> It would be also nice to be consistent with subject line prefix of GitHub notifications.

I agree, I tried a few iterations to get there but realized that the brackets around the category name are hard-coded in the template. So I reset it to ` [Slicer][Development]` as the least-bad option. If the PR I linked above is merged and deployed then we’ll have more flexibility: it allows using the category short name (“slug”) and does not include brackets.

The other option would be to rename some categories, for example we could call Development `slicer-devel` and tweak the email subject template to only show the category name. It would look exactly like the old emails.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 14, 2017, 1:32pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/8 "2017-04-14T13:32:25Z")

</div>

I think [Slicer][Development] or [SlicerForum][Development] would be good for now and [SlicerForum/Development] or [Slicer/Forum/Development] in the long term. The old slicer-devel is not the best as we can have many more categories now and it’s also not consistent with how we name organizations and projects (for example, we use SlicerRT and not slicer-rt).

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [April 14, 2017, 3:00pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/9 "2017-04-14T15:00:36Z")

</div>

Wow, much better. Thanks Isaiah! I didn’t know this was possible.

These settings are only available for admins, not for users, right?

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [April 14, 2017, 3:06pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/10 "2017-04-14T15:06:31Z")

</div>

Agree old-style is not necessary. My 2 cents: make as short as possible, so recipient can focus on content. So “Slicer” \> “Slicer Forum”, and “Dev” \> “Development” etc.

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [April 14, 2017, 3:49pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/11 "2017-04-14T15:49:03Z")

</div>

It seems the “Include an excerpt of replied to post in emails” function is no longer working.  
Is it possible to get the excerpt without the fancy excerpt header?

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 14, 2017, 6:15pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/12 "2017-04-14T18:15:05Z")

</div>

> [@Initial presentation](https://discourse.slicer.org/t/initial-presentation/100/29):
>
> These settings are only available for admins, not for users, right?

Yeah, but squeaky wheel gets grease to the extent that tweaks are possible.

> [@Initial presentation](https://discourse.slicer.org/t/initial-presentation/100/31):
>
> It seems the “Include an excerpt of replied to post in emails” function is no longer working.  
> Is it possible to get the excerpt without the fancy excerpt header?

How’s this now? I put `%{context}` back, so 1 reply is included again, and leaving out `%{header_instructions}` appears to control the fancy formatting in the footer too.

As far as images: there are no options for attachments and/or inline Content-ID references. This may be intentional, to cut email cost (bulk, high-quality remailer isn’t free). So, hopefully images can be solved client-side. Technically the image URL is there in both the HTML and text versions, it’s just an `<img>` tag with no `<a>`. I realize these have minor downsides, but my suggestions:

- For Outlook: [enable remote content by sender domain](https://www.benchmarkemail.com/help-FAQ/answer/how-do-i-enable-my-email-client-to-display-images).
- For Claws, several plugins for image viewing, which should understand the tag.

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [April 17, 2017, 1:09pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/13 "2017-04-17T13:09:19Z")

</div>

I should have been more clear. The problem is that the \< img\> tag is a relative link. For example:

\< img src="//cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex002/uploads/slicer/original/1X/5ba5eb12ead7aa7295b5d2cada1c3c504730005d.png" width=“690” height=“456”\>

Outlook works fine. But I don’t know how this can work in text e-mail, there is no reference to the server in the header.

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 18, 2017, 3:17pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/14 "2017-04-18T15:17:56Z")

</div>

I see. That does seem wrong, and there is no option that I’ve found to change it. I posted a message to the Discourse support site asking for help:

> **[Full URL for image in text/plain emails](https://meta.discourse.org/t/full-url-for-image-in-text-plain-emails/61198)**
>
> In the the text/plain version of emails from Discourse, URLs are relative. For example, the email notification for this post has the full URL in text/html, but only the relative URL in text/plain. example email...

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 19, 2017, 1:13pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/15 "2017-04-19T13:13:52Z")

</div>

@gcsharp unfortunately, in the short term (1-2 months), I don’t think there’s going to be a solution to this. It appears to be a bug that no one paid attention to for `text/plain` emails (I would guess because “text mode”). The fix looks simple, but even if they change the code soon, it will likely take some time before such a code update would be deployed to the production servers.

One possible temporary solution is to apply a filter locally to messages from [discoursemail.com](http://discoursemail.com) to prepend the full URL:

[http://www.claws-mail.org/faq/index.php/Filtering\_and\_Processing\_of\_Messages#Can\_a\_filter\_modify\_the\_contents\_of\_a\_message.3F](http://www.claws-mail.org/faq/index.php/Filtering_and_Processing_of_Messages#Can_a_filter_modify_the_contents_of_a_message.3F)

---

<div class="post-metadata">

**Author:** ![gcsharp](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gcsharp/32/863_2.png) [@gcsharp](https://discourse.slicer.org/u/gcsharp)\
**Post date:** [April 20, 2017, 1:52pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/16 "2017-04-20T13:52:35Z")

</div>

Thank you Isaiah, the URL is not a show stopper, as I can switch to web  
browser to see images, but I really appreciate.

The “Include an excerpt of replied to post in emails” seems to no longer  
work at all. (I have never seen an excerpt in text, but now also missing in  
html). Any idea what is happening?

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [April 20, 2017, 2:03pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/17 "2017-04-20T14:03:48Z")

</div>

Hi Greg,

> [@](#):
>
> The “Include an excerpt of replied to post in emails” seems to no longer  
> work at all. (I have never seen an excerpt in text, but now also missing in  
> html). Any idea what is happening?

Maybe I’m misunderstanding. Would you mind to forward me a few messages (inorton @ bwh)? Do you see a “Previous Replies” section with 1 previous message quoted? It seems to be working correctly on my test account for both the `text/plain` and `text/html` sections – here’s what I get on my test account (which is in mailing list mode) for [this message](https://discourse.slicer.org/t/saving-images-from-slicer-views-in-headless-compute-node/138/11):

```auto
mike_i:
So thanks to you (and your older self from 6 years ago

Fair enough!

If it turns out you need to solve the other problem, for example extracting rendered 3D views from a headless Slicer I checked and a docker image that exposes a vnc connection for Xdummy works for me (you don't need to connect to it, just running the server seems to be enough).

-- 
Previous Replies

Thanks very much for the advice. Unfortunately, my project requires the linux machine to run automatically without a VNC connection to it. However, you did help me find a solution using a different method through an old post you made:
https://sourceforge.net/p/teem/mailman/message/27766556/

I think that approach is going to work. So thanks to you (and your older self from 6 years ago) I think the problem is solved! I'll keep you updated on my progress.

Mike

Posted by mike_i on 04/19/2017

```

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [January 30, 2018, 1:14pm UTC](https://discourse.slicer.org/t/email-mode-config-improvements/140/18 "2018-01-30T13:14:08Z")

</div>

A post was split to a new topic: [Whole heart data set](https://discourse.slicer.org/t/whole-heart-data-set/1974)
