* [sup-devel] reading html mails
@ 2013-07-05 10:32 Ruthard Baudach
2013-07-05 12:02 ` Vojtech Aschenbrenner
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Ruthard Baudach @ 2013-07-05 10:32 UTC (permalink / raw)
To: Sup developer discussion
In the last years I'm receiving more and more emails containing only
html-formatted text and no plain text.
sup displays these emails as empty mails with an html attachment.
It would be great if sup was able to distinguish between actual html
attachments and such deficient mails, and would extract and display
the text part of these mails.
I'm not able to hack this myself at the moment, but perhaps someone
picks up the idea?
It's written a lot of times, but let me repeat it:
Good that sup is alive again!
Greetings to all
Ruthard
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-devel] reading html mails
2013-07-05 10:32 [sup-devel] reading html mails Ruthard Baudach
@ 2013-07-05 12:02 ` Vojtech Aschenbrenner
2013-07-05 13:15 ` Markus Klinik
2013-07-08 18:42 ` Whyme Lyu
2 siblings, 0 replies; 6+ messages in thread
From: Vojtech Aschenbrenner @ 2013-07-05 12:02 UTC (permalink / raw)
To: sup-devel
[-- Attachment #1.1: Type: text/plain, Size: 439 bytes --]
Excerpts from Ruthard Baudach's message of 2013-07-05 12:32:48 +0200:
> sup displays these emails as empty mails with an html attachment.
>
> It would be great if sup was able to distinguish between actual html
> attachments and such deficient mails, and would extract and display
> the text part of these mails.
This can be solved with mime-decode hook [1].
[1] https://github.com/sup-heliotrope/sup/wiki/Viewing-Attachments
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-devel] reading html mails
2013-07-05 10:32 [sup-devel] reading html mails Ruthard Baudach
2013-07-05 12:02 ` Vojtech Aschenbrenner
@ 2013-07-05 13:15 ` Markus Klinik
2013-07-08 18:42 ` Whyme Lyu
2 siblings, 0 replies; 6+ messages in thread
From: Markus Klinik @ 2013-07-05 13:15 UTC (permalink / raw)
To: Ruthard Baudach; +Cc: Sup developer discussion
Excerpts from Ruthard Baudach's message of 2013-07-05 12:32:48 +0200:
> In the last years I'm receiving more and more emails containing only
> html-formatted text and no plain text.
>
> sup displays these emails as empty mails with an html attachment.
>
> It would be great if sup was able to distinguish between actual html
> attachments and such deficient mails, and would extract and display
> the text part of these mails.
Hi,
I have a mime-decode hook for exactly this problem. It unfolds html
attachments if there is no plaintext part in an email.
$ cat mime-decode.rb
unless sibling_types.member? "text/plain"
case content_type
when "text/html"
`/usr/bin/elinks -dump '#{filename}'`
end
end
Best regards,
Markus
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-devel] reading html mails
2013-07-05 10:32 [sup-devel] reading html mails Ruthard Baudach
2013-07-05 12:02 ` Vojtech Aschenbrenner
2013-07-05 13:15 ` Markus Klinik
@ 2013-07-08 18:42 ` Whyme Lyu
2013-07-09 12:13 ` Ruthard Baudach
2 siblings, 1 reply; 6+ messages in thread
From: Whyme Lyu @ 2013-07-08 18:42 UTC (permalink / raw)
To: sup-devel
Excerpts from Ruthard Baudach's message of 2013-07-05 18:32:48 +0800:
> In the last years I'm receiving more and more emails containing only
> html-formatted text and no plain text.
I'm feeling the same pain here mainly due to unpolished in-house services
sending out html-only mails. More annoyingly, sup doesn't index these mails
since HTML is treated as attachments.
I've created an issue[1] on Github to talk about it further.
[1]: https://github.com/sup-heliotrope/sup/issues/101
--
-whyme http://randombu.gs/
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-devel] reading html mails
2013-07-08 18:42 ` Whyme Lyu
@ 2013-07-09 12:13 ` Ruthard Baudach
2013-07-09 21:02 ` Mark Alexander
0 siblings, 1 reply; 6+ messages in thread
From: Ruthard Baudach @ 2013-07-09 12:13 UTC (permalink / raw)
To: sup-devel
>== Auszüge aus der Nachricht von Whyme Lyu vom 2013-07-08 20:42:
> Excerpts from Ruthard Baudach's message of 2013-07-05 18:32:48 +0800:
> > In the last years I'm receiving more and more emails containing only
> > html-formatted text and no plain text.
>
> I'm feeling the same pain here mainly due to unpolished in-house services
> sending out html-only mails. More annoyingly, sup doesn't index these mails
> since HTML is treated as attachments.
What do you mean by "sup doesn't index" these mails -- I have no
problems with them except the annoying need of opening them manually,
that is solved with the mime-decode hook?
Greetings,
Ruthard
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [sup-devel] reading html mails
2013-07-09 12:13 ` Ruthard Baudach
@ 2013-07-09 21:02 ` Mark Alexander
0 siblings, 0 replies; 6+ messages in thread
From: Mark Alexander @ 2013-07-09 21:02 UTC (permalink / raw)
To: sup-devel
Excerpts from Ruthard Baudach's message of 2013-07-09 08:13:49 -0400:
> >== Auszüge aus der Nachricht von Whyme Lyu vom 2013-07-08 20:42:
> > I'm feeling the same pain here mainly due to unpolished in-house services
> > sending out html-only mails. More annoyingly, sup doesn't index these mails
> > since HTML is treated as attachments.
> What do you mean by "sup doesn't index" these mails -- I have no
> problems with them except the annoying need of opening them manually,
> that is solved with the mime-decode hook?
I can verify the problem on my installation of sup. It doesn't index
the HTML-only emails, i.e., it doesn't read the contents of the HTML
attachment to put those contents in the xapian index. The result is
that you can't search for words that appear in an HTML-only email and
expect that email to appear in the search results.
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-08-02 13:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-05 10:32 [sup-devel] reading html mails Ruthard Baudach
2013-07-05 12:02 ` Vojtech Aschenbrenner
2013-07-05 13:15 ` Markus Klinik
2013-07-08 18:42 ` Whyme Lyu
2013-07-09 12:13 ` Ruthard Baudach
2013-07-09 21:02 ` Mark Alexander
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox