Ticket #232: sf.email.txt

File sf.email.txt, 21.4 kB (added by maia@…, 3 years ago)

the email that caused the formatting oddness

Line 
1mysql> select contents from maia_mail where id=418178;
2+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
3| contents                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
4+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
5|X-Greylist: whitelisted by SQLgrey-1.6.5
6Received: from lists-outbound.sourceforge.net (lists-outbound.sourceforge.net [66.35.250.225])
7        by darkside.crazeecanuck.homelinux.net (Postfix) with ESMTP id 3FE93D6B087
8        for <ed@crazeecanuck.homelinux.net>; Thu, 28 Jul 2005 15:12:16 -0400 (EDT)
9Received: from projects.sourceforge.net (sc8-sf-list1-b.sourceforge.net [10.3.1.7])
10        by sc8-sf-spam2.sourceforge.net (Postfix) with ESMTP
11        id 6145612F60; Thu, 28 Jul 2005 12:12:16 -0700 (PDT)
12Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.91] helo=mail.sourceforge.net)
13        by sc8-sf-list1.sourceforge.net with esmtp (Exim 4.30)
14        id 1DyDmX-00008k-Hu
15        for mrpostman-developers@lists.sourceforge.net; Thu, 28 Jul 2005 12:11:01 -0700
16Received: from smtp1.kodak.com ([192.232.121.200])
17        by mail.sourceforge.net with esmtp (Exim 4.44)
18        id 1DyDmW-0007OO-2m
19        for mrpostman-developers@lists.sourceforge.net; Thu, 28 Jul 2005 12:11:01 -0700
20Received: from roc-us-e1000-112.kodak.com (roc-us-e1000-112.kodak.com [192.232.121.192])
21        by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id j6SJAwV21692
22        for <mrpostman-developers@lists.sourceforge.net>; Thu, 28 Jul 2005 15:10:58 -0400 (EDT)
23Received: from (155.50.95.109) by roc-us-e1000-112.kodak.com via smtp
24         id 378a_66ab985c_ff9b_11d9_9125_0002b3c946b6;
25        Thu, 28 Jul 2005 15:11:29 -0400
26Mime-Version: 1.0 (Apple Message framework v733)
27Content-Transfer-Encoding: 7bit
28Message-Id: <4AC78E2E-6DDF-49FA-A6F3-2BCF909FAEC8@houchin.us>
29Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
30To: mrpostman-developers@lists.sourceforge.net
31From: Scott Houchin <scott@houchin.us>
32X-Mailer: Apple Mail (2.733)
33X-Spam-Score: 0.0 (/)
34X-Spam-Report: Spam Filtering performed by sourceforge.net.
35        See http://spamassassin.org/tag/ for more details.
36        Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001
37        0.0 SF_CHICKENPOX_PERIOD   BODY: Text interparsed with .
38        0.0 SF_CHICKENPOX_SLASH    BODY: Text interparsed with /
39        0.0 SF_CHICKENPOX_APOSTROPHE BODY: Text interparsed with '
40        0.0 AWL                    AWL: From: address is in the auto white-list
41Subject: [Mrpostman-developers] Partial fix for delete bug in simple.script/mail.php
42Sender: mrpostman-developers-admin@lists.sourceforge.net
43Errors-To: mrpostman-developers-admin@lists.sourceforge.net
44X-BeenThere: mrpostman-developers@lists.sourceforge.net
45X-Mailman-Version: 2.0.9-sf.net
46Precedence: bulk
47Reply-To: mrpostman-developers@lists.sourceforge.net
48List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/mrpostman-developers>,
49        <mailto:mrpostman-developers-request@lists.sourceforge.net?subject=unsubscribe>
50List-Id: <mrpostman-developers.lists.sourceforge.net>
51List-Post: <mailto:mrpostman-developers@lists.sourceforge.net>
52List-Help: <mailto:mrpostman-developers-request@lists.sourceforge.net?subject=help>
53List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/mrpostman-developers>,
54        <mailto:mrpostman-developers-request@lists.sourceforge.net?subject=subscribe>
55List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum=mrpostman-developers>
56Date: Thu, 28 Jul 2005 15:10:55 -0400
57
58Hi,
59
60First, thanks to everyone who contributed to MrPostman. This is a 
61wonderful solution!
62
63I am using simple.script and mail.php on my website, but have been 
64having a problem with message deletion. Only one message would get 
65deleted each time MrPostman checked my mail, even though the 
66MrPostman logs seem to indicate that it's deleting all of the 
67messages. If I used my web browser to access mail.php, I got exactly 
68the same result: only one message deleted each time.
69
70After a bit of debugging, I discovered a bug in mail.php. Line 126, 
71the HTML that generates the delete checkbox for each message, should be:
72
73                 <td><input type="checkbox" name="uid[]" value="<?=
74$msg->uid?>" /></td>
75
76The difference is the addition of "[]" as part of the name of the 
77<input>. In PHP, request inputs of the same name go into an 
78associative array by their actual name. If you just use the name, 
79they end up overwritting each other. Thus while MrPostman thought it 
80was deleting all messages, it was really only deleting the last 
81message in the list. Adding the PHP syntax for "add this to the end 
82of an array" to the name makes it work as intended.
83
84I'm stuck though in how to modify simple.script to reflect the 
85modified name. I'm guessing I have to modify line 68 (params["uid#" & 
86i] = msg.id) within the delete subroutine, but I'm not sure what 
87syntax these script files are in and if it's really just as simple as 
88turning it into:
89
90         params["uid[]#" & i] = msg.id
91
92
93Thanks,
94Scott Houchin
95
96
97
98
99
100-------------------------------------------------------
101SF.Net email is Sponsored by the Better Software Conference & EXPO September
10219-22, 2005 * San Francisco, CA * Development Lifecycle Practices
103Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
104Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
105_______________________________________________
106Mrpostman-developers mailing list
107Mrpostman-developers@lists.sourceforge.net
108https://lists.sourceforge.net/lists/listinfo/mrpostman-developers
109 |
110+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1111 row in set (0.00 sec)
112
113mysql>