Not logged in. · Lost password · Register

All posts by Ulmix (8)

topic: Kein Absender bei Mails (zumindest beim Versand mittels mail())  in the forum: Support Bug reports and troubleshooting
Ulmix #1
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
Hi Yves,
bin Deiner Bitte quasi in vorauseilendem Gehorsam gefolgt: Habe mittlerweile (aus anderen Gründen) den Server gewechselt und auf dem neuen Server besteht das Problem nicht mehr.
topic: PDF Plugin  in the forum: Customising UNB Modifications and plug-ins Plug-in gallery
Ulmix #2
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7378
Gotta say sorry:
I moved the whole board to another server and now the pdf-download works fine.
So, once again thanks for the great work!
topic: PDF Plugin  in the forum: Customising UNB Modifications and plug-ins Plug-in gallery
Ulmix #3
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7369
Hi,
first of all a big thanks from me, too.
Unfortunately the problem I had with Arial as font type is not fixed by the update. Even worse: now I have the problem with all the fonts. Instead of opening the pdf, Adobe Reader (version 7) tells me, that the pdf file is irrevocably damaged and cannot be opened.
As I said, with the old version I had this problem, too but only when using Arial as font type. Did you change anything in the code that could effect the generated pdf-files?
Can you help me with this problem? It seems as though the plugin works fine on your site.
Thanks in advance.
topic: Kein Absender bei Mails (zumindest beim Versand mittels mail())  in the forum: Support Bug reports and troubleshooting
Ulmix #4
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7324
Das kann ich leider nicht sagen, weil ich den Server nicht selbst administriere. Aber vermutlich ist die entsprechende Option aktiviert - zumindest ist der Effekt ja da...
Ich habe mir selbst jetzt eben durch die entsprechende Änderung im Code geholfen.
Dir auf jeden Fall Danke für Deine Hilfe.
topic: Kein Absender bei Mails (zumindest beim Versand mittels mail())  in the forum: Support Bug reports and troubleshooting
Ulmix #5
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7317
Quote by Yves:
Welches Mailprogramm kommt denn in den genannten Fällen zum Einsatz? Dem müsste man mal den Fehler melden und sie darum bitten, das zu korrigieren.

Interessanterweise ist das in meinem Fall ausgerechnet qmail - also das Programm des Server-Entwicklers, von dem Du glaubtest die Info zu haben...
topic: Kein Absender bei Mails (zumindest beim Versand mittels mail())  in the forum: Support Bug reports and troubleshooting
Ulmix #6
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7313
Hi,
habe nochmal ein bisschen gesucht und muss zugeben, dass Du recht hast.

Wohingegen selfphp (http://www.selfphp.info/funktionsreferenz/mail_funktionen/…) lediglich ein einfaches \n angibt, verlangt der offizielle Standard (RFC 2822, Nr. 2.2 ff.; http://www.faqs.org/rfcs/rfc2822) ein vollständiges CRLF, also \r\n.

Ein weiteres bisschen Aufklärung liefert die offizielle PHP-Dokumentation:
Anmerkung:  Wenn E-Mails nicht ankommen, versuchen Sie bitte, nur das LF-Zeichen (\n) zu verwenden. Einige UNIX-MTAs (mail transfer agents) ersetzen leider LF durch CRLF (\r\n) automatisch (wodurch das CR-Zeichen verdoppelt wird, wenn CRLF verwendet wird). Dies sollte aber nur in Ausnahmefällen geschehen, da es gegen RFC 2822 verstößt.
(http://www.php.net/manual/de/function.mail.php)

Vor diesem Hintergrund verstehe ich es, wenn Du am standardkonformen Code festhalten möchtest. Vielleicht kannst Du aber trotzdem einen entsprechenden Hinweis irgendwo in die Dokumentation mit aufnehmen.
topic: Kein Absender bei Mails (zumindest beim Versand mittels mail())  in the forum: Support Bug reports and troubleshooting
Ulmix #7
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 7141
Hi,

hatte ebenfalls das Problem, dass der gewünschte Absender als Teil des Textes der Nachricht erschien. Nach ein bisschen Suchen habe ich das Problem schließlich gefunden:

Das Problem ist - wie Morty bereits festgestellt hat - die Leerzeile im Header. Ursache ist, dass in der mail.lib.php in den Zeilen 120 und 122 jeweils ein /r/n steht. Dadurch werden jeweils zwei Zeilenumbrüche eingefügt. Und aufgrund der entstehenden Leerzeile wird der Absender (und ggf. auch die Reply-to-Adresse) nicht mehr als Teil des Headers interpretiert.
jeweils eine Leerzeile eingefügt. Dadurch wird der Abesender (und ggf. auch die Reply-to-Adresse) dann nicht mehr zum Header der Email gezählt. Die Lösung ist dann auch einfach aus dem \r\n jeweils das \r zu streichen, so dass durch das verbleibende \n jeweils nur ein Zeilenumbruch eingefügt wird und die Leerzeile dementsprechend nicht entsteht.

Der Code für den Header (Zeilen 118 - 122 der mail.lib.php) muss also wie folgt aussehen:

    $headers = 'Content-Type: text/plain; charset="' . $UNB['CharSet'] . '"';
        if (rc('smtp_sender'))
            $headers .= "\n" . 'From: "' . rc('forum_title') . '" <' . rc('smtp_sender') . '>';
        if ($from != '')
            $headers .= "\n" . 'Reply-to: ' . $from;

Vielleicht kann Yves diese Korrektur ja in die nächste Version übernehmen.
topic: PDF Plugin  in the forum: Customising UNB Modifications and plug-ins Plug-in gallery
Ulmix #8
Member since Oct 2006 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 6560
Hi,

first of all thanks for prviding this plug-in. It's a great help.

Using it, I came accross the following two problems:

- Selecting "Arial" as a font produces pdf-files which cannot be opened with Acrobat. When selecting another font this problem does not accur. Could this be because there is no Arial in the font-directory?

- Unfortunately the link to the pdf file (next to the Thread-topic) does not work. It only produces a nearly empty pdf-file. As far as I can see, this is because the link is missing the thread-id (forum.php?req=pdf&id=). At least the pdf output works fine, when I enter the URL manually and add the thread id.

Both are only minor problems in my eyes. But maybe you can never the less find the time to fix them.
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
This board is powered by the Unclassified NewsBoard software, 20120620-dev, © 2003-2011 by Yves Goergen
Page created in 242.9 ms (148.3 ms) · 98 database queries in 129.2 ms
Current time: 2013-05-18, 13:42:36 (UTC +02:00)