friendica/friendica — pull request #136 by annando (2012-03-15 21:32:39+00:00)
Title: Mail improvements, item caching and so on

my changes are the following:

database.sql: In this file a field was missing. I added it.

htconfig.php: I added two configuration options (see below) so I added it here as well.

include/delivery.php: There was a bug that a mail reply hadn't the "Re:" in the subject. It is fixed. Additionally I did some code cleanup.

include/email.php: I added some more stuff from my syncom project: GPG detection, respecting format=flowed" and a attribution line detection. The last one converts many "XYZ wrote ..." into [quote=XYZ]. It can detect many german and english lines by now.

include/html2bbcode.php: I had problems with some mails with a font size in it. So I deactivated some size conversions.

include/msgclean.php: These are the new functions that detects attribution lines, GPG header, format=flowed and so on. The comments are german by now. I have to translate them. But since it is stable I first wanted to commit these changes to later deliver the translated comments

include/notifier.php: Here are the same changes like in the delivery.php

include/poller.php and include/text.php: Like I said above I added two configuration options. The first one changes the behaviour with the priority setting with ostatus contacts. If set to true the priority is respected. The default is - of course - to not respect it. I added it because I'm still having problems with ostatus and I guess I'm not the only one.

The second is a new cache system. I saw that especially on servers with a not so powerful CPU the bbcode conversion is really slow. So I added the option that the converted code is written to a cache directory. The files are kept for 24 hours and are deleted by the poller.php. In some cases it speeds up the time for displaying the network twice or even three times. Of course it is deactivated by default.

I did a small changes to the diabook style because of an addon I made. Additionally I changed the tag color. The tag color should be reverted but it would be great if the other change would be kept.

The changes in the template files are really minor. These are only some additional line breaks and can be reverted. I would do so If i knew how to do it in git :)