Re: [Trac] Options plugin to send email in html format?!?!

181 views
Skip to first unread message

Steffen Hoffmann

unread,
Aug 1, 2012, 8:43:54 AM8/1/12
to trac-...@googlegroups.com
On 31.07.2012 22:53, ynoslenav wrote:
> Hello,
>
> Options plugin to send email in html format on Trac 0.12?!?!
Hard to answer, if the question is barely understandable, if a question
at all. Do you mean, what options you need to set to get email in HTML
format from Trac(Notification) or TracAnnouncer, or something completely
different?

Sincerely,

Steffen Hoffmann

ynoslenav

unread,
Aug 1, 2012, 9:39:35 AM8/1/12
to trac-...@googlegroups.com
Can be any format provided it is html. I'm currently using the AnnouncerPlugin(Trac 0.12),  but I am with problem:


Any suggestions?

Steffen Hoffmann

unread,
Aug 1, 2012, 3:56:10 PM8/1/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 01.08.2012 15:39, wrote ynoslenav:
> Can be any format provided it is html. I'm currently using the
> AnnouncerPlugin(Trac 0.12), but I am with problem:
>
> https://groups.google.com/forum/?fromgroups#!topic/trac-users/Dk9_RqlqQ-Y <https://groups.google.com/forum/?fromgroups#%21topic/trac-users/Dk9_RqlqQ-Y>
>
> Any suggestions?

No, at least not yet. Your wording is still very short, but I think I do
understand your issue with some wiki text in announcements, that seem to
be in original format instead of being converted from wiki text to HTML
markup.

Sorry, but we have to repair special announcements for AccountManager
first. Since it's largely working, I judge this rather as nuisance than
as a serious problem.

You may be aware of general prejudice against HTML formatted email. And
the solid alternative is still plain text, that is preferred by many
professionals anyway. No judgment against you and your users, but don't
expect top-notch emails from Trac. This is simply no priority, unless
you provide solid patches, of course. Code rules.

Thanks for taking care. You'll always find some of working hard to
improve code quality and user experience.

Sincerely,

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAZidcACgkQ31DJeiZFuHc5qACfTuAqwPgHnL1mqgI9rOKauZNd
gesAoLK4bXm/wlbm/TXMWbGRcujRoApP
=/p1J
-----END PGP SIGNATURE-----

ynoslenav

unread,
Aug 1, 2012, 4:23:14 PM8/1/12
to trac-...@googlegroups.com
The Announcer Plugin does not keep the messages WikiFormatting format, then the body of the email shows plain text.

Guess it was not a good idea to change the TracNotification by AnnouncerPlugin. :(

A plugin to send messages in rich text format was more than happy ?!? \o/ 


Thanks

Steffen Hoffmann

unread,
Aug 1, 2012, 5:26:49 PM8/1/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01.08.2012 22:23, ynoslenav wrote:
> The Announcer Plugin does not keep the messages WikiFormatting
> format, then the body of the email shows plain text.

Hm, if you installed it, you can look at <trac-site>/wiki/TracIni for
supported options of all installed plugins. This is most relevant here:

[announcer]
default_email_format

Accepted values are 'text/plain' and 'html'.

You've certainly read the wiki documentation for Announcer, haven't you?

> Guess it was not a good idea to change the TracNotification by
> AnnouncerPlugin. :(
>

Sure, if that formatting thing is more important to you than i.e. per-user
opt-in/-out and other configuration options, well then stick to
TracNotification, please.

> A plugin to send messages in rich text format was more than happy ?!?
> \o/

Don't get that. What do you mean?

Steffen Hoffmann


[1] http://trac-hacks.org/wiki/AnnouncerPlugin#EmailConfig
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAZnxgACgkQ31DJeiZFuHe9RgCfSRWWqOmz1gd9JhOj1agUQ9tG
h4cAni4z5oopfH41cV8eYE9oX84zJ2Sp
=IK3u
-----END PGP SIGNATURE-----

ynoslenav

unread,
Aug 2, 2012, 8:46:40 AM8/2/12
to trac-...@googlegroups.com


Em quarta-feira, 1 de agosto de 2012 18h26min49s UTC-3, hasienda escreveu:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01.08.2012 22:23, ynoslenav wrote:
> The Announcer Plugin does not keep the messages WikiFormatting
> format, then the body of the email shows plain text.

Hm, if you installed it, you can look at <trac-site>/wiki/TracIni for
supported options of all installed plugins. This is most relevant here:

[announcer]
default_email_format

This property is already enabled. 

Accepted values are 'text/plain' and 'html'.

You've certainly read the wiki documentation for Announcer, haven't you?

> Guess it was not a good idea to change the TracNotification by
> AnnouncerPlugin. :(
>

Sure, if that formatting thing is more important to you than i.e. per-user
opt-in/-out and other configuration options, well then stick to
TracNotification, please.

> A plugin to send messages in rich text format was more than happy ?!?
> \o/

Don't get that. What do you mean?

For example support Rich Text gmail.com 

ynoslenav

unread,
Aug 2, 2012, 8:51:01 AM8/2/12
to trac-...@googlegroups.com
Steffen, 

Here best explains the problem of AnnouncerPlugin:

Hello,

I'm using the AnnouncerPlugin on a couple of Trac installations to send HTML emails, and it's not properly formatting ticket updates that have Wiki formatting in them.  For example, if I put in the Wiki text:

Test of `formatting` in '''announcer'''
  * Including
  * Bulleted
  * Lists

It will display in the ticket something like this:

Test of formatting in announcer

    • Including
    • Bulleted
    • Lists
But in my email like this:

Test of `formatting` in '''announcer''' * Including * Bulleted * Lists

Has anybody else seen this?  Is there a configuration option I'm missing somewhere?  Or is this something I should report as a bug?

Thanks,

------Scott.

Olaf Meeuwissen

unread,
Aug 2, 2012, 7:21:41 PM8/2/12
to trac-...@googlegroups.com
ynoslenav <ivanels...@gmail.com> writes:

> Steffen,
>
> Here best explains the problem of AnnouncerPlugin:
>
> Hello,
>
> I'm using the AnnouncerPlugin on a couple of Trac installations to send HTML emails, and it's
> not properly formatting ticket updates that have Wiki formatting in them. For example, if I
> put in the Wiki text:
>
> Test of `formatting` in '''announcer'''
> * Including
> * Bulleted
> * Lists
>
> It will display in the ticket something like this:
>
> Test of formatting in announcer
>
> ☆ Including
> ☆ Bulleted
> ☆ Lists
> But in my email like this:
>
> Test of `formatting` in '''announcer''' * Including * Bulleted * Lists

So all the formatting of the text/plain version of the wiki text is
still there as expected but the text has been reflowed. That is, only
white space and end-of-line characters have been changed.

> Has anybody else seen this? Is there a configuration option I'm missing somewhere? Or is
> this something I should report as a bug?

I have never this but could it be that your mail reader is doing the
reflowing? Can you look at the raw mail message?

Hope this helps,
--
Olaf Meeuwissen, LPIC-2 FLOSS Engineer -- AVASYS CORPORATION
FSF Associate Member #1962 Help support software freedom
http://www.fsf.org/jf?referrer=1962

Steffen Hoffmann

unread,
Aug 3, 2012, 12:53:33 AM8/3/12
to trac-...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02.08.2012 14:51, ynoslenav wrote:
> Steffen,
>
> Here best explains the problem of AnnouncerPlugin:
[...]

Yes, I know that, because I'm subscribed to the list.
Still my previous note applies, that fixing existing functional
deficiencies (private/single user announcements) has priority before
fixing formatting issues.

It looks like the wiki formatting is just disregarded and taken as
plain-text instead of being put through a wiki rendering process before
inclusion into the email body. So this shouldn't be especially hard to fix.

Yours,

Steffen Hoffmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlAbWUsACgkQ31DJeiZFuHc/NQCgyMgCXKlICbky1S75NPAZN6mt
ixEAoNsiQSBMYnPEP5RgeeshwHHLC7mD
=u6T8
-----END PGP SIGNATURE-----
Reply all
Reply to author
Forward
0 new messages