Font
[thread]1753[/thread]

Confixx 3 - Webmail: Falsche Darstellung von Umlauten (page 2)

Reader: 1


<< |< 1 2 3 >| >> 26 entries, 3 pages
renee
 2005-09-09 13:27
#17554 #17554
User since
2003-08-04
14371 articles
ModeratorIn
[Homepage] [default_avatar]
Du kannst ja auch mal ein
Code: (dl )
find /confixx/path -name email_message.php
machen...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
Alex
 2005-09-09 14:02
#17555 #17555
User since
2003-12-04
285 articles
BenutzerIn
[default_avatar]
Code: (dl )
find: /confixx/path: No such file or directory

???
<center>Schönen Gruß, Alex
Mit dem Computer geht alles viel schneller - es dauert nur ein bißchen länger!
</center>
Alex
 2005-09-09 14:09
#17556 #17556
User since
2003-12-04
285 articles
BenutzerIn
[default_avatar]
Habe die email_massage.php gefunden - hilft mir aber nicht weiter:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
<? 
#
#
#
$DEBUG=0;
#
#
#
include_once("auth.php");
include("email_functions.php");
include("email_config.php");
include("email_header.php");

$PHP_SELF = 'email_message.php';

if($id && e_connect()):
$header = imap_headerinfo($mbox, $id);
$mail_uniq = md5($header->subject . $header->date);
$date = dateFormat(strtotime($header->date),"datetime");
$subject = $header->subject ? decode_subject($header->subject) : "[".$lang_text["wbm_nosubject"]."]";
?>
<table width="430" class="tblbgcolor" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr><td class="titel-3" background="<?=$strSkinName?>/pics/bg_tbl_header.jpg"><b><? echo $subject; ?></b></td></tr>
<tr>
<td>

<? /* START - HEADERS */ ?>
<table class="tblbgcolor" width="100%" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr>
<td width="5%"><b><? echo $lang_text["wbm_sender"] ?></b></td>
<td><? echo htmlspecialchars(mimeHeaderDecode($header->fromaddress)); ?> (<a class="data" href="email_adlist.php?editID=new&from_email=<? echo urlencode(htmlspecialchars(mimeHeaderDecode($header->fromaddress))) ?>">&raquo; <? echo $lang_text['wbm_ad_adbook'] ?></a>)</td>
</tr><tr>
<td width="5%"><b><? echo $lang_text["wbm_to"] ?></b></td>
<td><? echo htmlspecialchars(mimeHeaderDecode($header->toaddress)); ?></td>
</tr>
<? if(isset($header->ccaddress)): ?>
<tr>
<td width="5%"><b><? echo $lang_text["wbm_cc"] ?></b></td>
<td><? echo htmlspecialchars(mimeHeaderDecode($header->ccaddress)); ?></td>
</tr>
<? endif; ?>
<tr>
<td width="5%"><b><? echo $lang_text["wbm_date"] ?></b></td>
<td><? echo $date; ?></td>
</tr>
</table>
<? /* END - HEADERS */ ?>

<? /* START - MENUE */ ?>
<table width="100%" class="tblbgcolor" border="1" cellpadding="0" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr>
<td align="center" width="33%"><? echo std_button(ltext("wbm_email_reply"), 'javascript:submitReplyForm()'); ?></td>
<td align="center" width="33%"><? echo std_button(ltext("wbm_email_fwd"), 'javascript:submitForwardForm()'); ?></td>
<td align="center" width="33%"><? echo std_button(ltext("wbm_email_del"), "javascript:deleteOneMessage($id)"); ?></td>
</tr>
<tr>
<td align="center"><? echo std_button(ltext("wbm_email_viewsource"), "javascript:location.href='email_viewsource.php?id=$id'"); ?></td>
<td align="center"><? echo std_button(ltext("wbm_email_download"), "javascript:location.href='email_attach.php?id=$id&part=0&uniq=$mail_uniq&inline=0&filename=email.txt'"); ?></td>
<td align="center"><? echo std_button(ltext("wbm_email_print"), "javascript:self.print()"); ?></td>
</tr>
</table>
<? /* END - MENUE */ ?>


<?
$structure = imap_fetchstructure($mbox, $id);
$structarr = headerArray($structure);
$partscount = sizeof($structure->parts);
$attachNumber=0;
if( ($partscount > 1) || ($structure->type == TYPEMULTIPART && $structarr["parameters"]["boundary"]) )
{
?>
<table class="tblbgcolor" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<?
for($i=1; $i<=$partscount; $i+=2){
?>
<tr>
<?
for($j=$i; $j<=$i+1; $j++){
$ha = headerArray($structure->parts[$j]);
if($ha){
$fn = '';
if($ha["dparameters"]["filename"]){
$fn = $ha["dparameters"]["filename"];
}
if($ha["parameters"]["name"]){
$fn = $ha["parameters"]["name"];
}
if(!$fn){
$fn = $lang_text["wbm_unknown"];
}
$inline = showInLine($ha["type"]) ? 1 : 0;
$attachNumber++;
?>
<td>
<a class="data"<? if($inline): ?> target="_blank"<? endif; ?>
href="email_attach.php?id=<? echo $id; ?>&part=<? echo $j; ?>&uniq=<? echo $mail_uniq; ?>&inline=<? echo $inline; ?>">
<img src="<?=$strSkinName?>/webmail_icons/attach.gif" border="0" align="absmiddle">
<?
echo $fn;
?>
</a> (<? echo sizeFormat($ha['bytes']); ?>)</td>
<?
}
}
?>
</tr>
<?
}
?>
</table>
<?
}
/*
echo "<pre>"; print_r($structure);
$z = imap_fetchbody($mbox, $id, $a);
print_r($z);
if(count($structure->parts)){
foreach($structure->parts as $part){
print_r(headerArray($part));
}
}else{
print_r(headerArray($structure));
}
echo "</pre>";
*/
?>
<table class="tblbgcolor" width="100%" border="1" cellpadding="3" cellspacing="0" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<?
if( ($partscount > 1) || ($structure->type == TYPEMULTIPART && $structarr["parameters"]["boundary"]) ){
for($i=0; $i<=$partscount; $i++){
$ha = headerArray($structure->parts[$i]);
if($i == 0 || showInLine($ha['type'], false)){
$body = imap_fetchbody($mbox, $id, ($i+1));
show_mail( $body, $ha['type'], $ha['encoding'] );
if($i == 0){
$reply_body = $body;
}
}
}
}else{
$ha = headerArray($structure);
show_mail( $reply_body = imap_fetchbody($mbox, $id, 1), $ha['type'], $ha['encoding'] );
}
?>
</table>

</td></tr></table>
<?
$date = explode(" ", $date);
$time = $date[1];
$date = $date[0];
if($sig_pos = strrpos($reply_body, "-- "))
{
$reply_body = substr($reply_body, 0, $sig_pos-1);
}
/* REPLY-FORM */
$reply_zitat = str_replace("%date%",$date,$lang_text["wbm_rezitat"]);
$reply_zitat = str_replace("%time%",$time,$reply_zitat);
$reply_zitat = $reply_zitat."\n&gt; ".str_replace("\n","\n&gt; ",(htmlspecialchars($reply_body))."\n");
if(trim($header->reply_toaddress))
{
$reply_sender = htmlspecialchars(mimeHeaderDecode($header->reply_toaddress));
}
else
{
$reply_sender = htmlspecialchars(mimeHeaderDecode($header->fromaddress));
}
echo "<form action=\"email_neu.php\" name=replyForm method=post>\n";
echo "<input type=hidden name=copy_mail value=\"".htmlspecialchars($date)."\">\n";
echo "<input type=hidden name=copy_to value=\"$reply_sender\">\n";
echo "<input type=hidden name=copy_subject value=\"Re: ".htmlspecialchars($subject)."\">\n";
echo "<input type=hidden name=copy_body value=\"".htmlspecialchars($reply_zitat)."\">";
echo "</form>\n";
/* FORWARD-FORM */
if(isset($replyTo))
{
$fwd_sender = $replyTo;
}
else
{
$fwd_sender = $sender;
}
$fwd_zitat = str_replace("%date%",$date,$lang_text["wbm_fwdzitat"]);
$fwd_zitat = str_replace("%time%",$time,$fwd_zitat);
$fwd_sender = str_replace("\n","",$fwd_sender);
$fwd_sender = str_replace("\r","",$fwd_sender);
$fwd_sender = str_replace("\0","",$fwd_sender);
$fwd_zitat = str_replace("%sender%",$fwd_sender,$fwd_zitat);
$fwd_zitat = $fwd_zitat."\n&gt; ".str_replace("\n","\n&gt; ",(htmlspecialchars($reply_body))."\n");
echo "<form action=\"email_neu.php\" name=forwardForm method=post>\n";
echo "<input type=hidden name=copy_mail value=\"".htmlspecialchars($date)."\">\n";
echo "<input type=hidden name=copy_subject value=\"Fw: ".htmlspecialchars($subject)."\">\n";
echo "<input name=copy_body type=hidden value=\"".htmlspecialchars($fwd_zitat)."\">";
if ($attachNumber){
echo "<input type=hidden name=forwardid value=\"".htmlspecialchars($id)."\">\n";
}
echo "</form>\n";
imap_close($mbox);
endif;
include("email_footer.php");
?>
<center>Schönen Gruß, Alex
Mit dem Computer geht alles viel schneller - es dauert nur ein bißchen länger!
</center>
esskar
 2005-09-09 14:17
#17557 #17557
User since
2003-08-04
7321 articles
ModeratorIn

user image
wenn ich das schon seh
Code: (dl )
$mail_uniq = md5($header->subject . $header->date);

wird mir ganz schlecht...
renee
 2005-09-09 14:18
#17558 #17558
User since
2003-08-04
14371 articles
ModeratorIn
[Homepage] [default_avatar]
[quote=Alex,09.09.2005, 12:02]
Code: (dl )
find: /confixx/path: No such file or directory

???[/quote]
Ja, /confixx/path muss natuerlich durch den Pfad zu Confixx bei Dir ersetzt werden...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
Alex
 2005-09-09 14:28
#17559 #17559
User since
2003-12-04
285 articles
BenutzerIn
[default_avatar]
is ja gut, habe es ja gefunden...
was sagt euch php-spezialisten nun der code?
gibt es da was, was auf das Problem hindeutet?
<center>Schönen Gruß, Alex
Mit dem Computer geht alles viel schneller - es dauert nur ein bißchen länger!
</center>
pq
 2005-09-09 15:06
#17560 #17560
User since
2003-08-04
12209 articles
Admin1
[Homepage]
user image
[quote=esskar,08.09.2005, 20:08]nee... outlook ist wohl einer der besten mua's...[/quote]
*lol*
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem
esskar
 2005-09-09 15:19
#17561 #17561
User since
2003-08-04
7321 articles
ModeratorIn

user image
[quote=pq,09.09.2005, 13:06]*lol*[/quote]
was Darstellung angeht, schon...
renee
 2005-09-09 15:33
#17562 #17562
User since
2003-08-04
14371 articles
ModeratorIn
[Homepage] [default_avatar]
In dieser Datei steht nichts...

Ich nehme mal an (ich kenne Confixx auch nur von User-Seite), dass die entscheidende Funktion die mimeHeaderDecode in email_config.php (muesste im gleichen Verzeichnis sein) ist...

Oder mach mal ein
Code: (dl )
grep "Content-Transfer-Encoding: 8bit" /path/to/directory/with/php_files/*


Das sollte Dir dann sagen, wo das Encoding eingestellt wird...
OTRS-Erweiterungen (http://feature-addons.de/)
Frankfurt Perlmongers (http://frankfurt.pm/)
--

Unterlagen OTRS-Workshop 2012: http://otrs.perl-services.de/workshop.html
Perl-Entwicklung: http://perl-services.de/
esskar
 2005-09-09 15:55
#17563 #17563
User since
2003-08-04
7321 articles
ModeratorIn

user image
eher so

grep "8bit" /path/to/directory/with/php_files/*
<< |< 1 2 3 >| >> 26 entries, 3 pages



View all threads created 2005-09-08 20:54.