Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb
Status: Accepted
Owner: [hidden email]
Labels: Type-Defect Priority-Medium GLASS-Seaside30 Version-3.0.5

New issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

Now that the GRGemStonePlatform>>seasideDeliverEmailMessage is fixed, it  
looks like it is not quite sending the correct information no submect in  
the email and includes the full email message as the message body:
=============================
From: aSSEmailAddress
To: aSSEmailAddress
To: aSSEmailAddress
Subject: Squeak Source -- Forgot Password
Date: Fri, 20 May 2011 09:36:35 -0700

Hi Dale Henrichs,

we received a request (presumeably by you) that you forgot
your password. To log into your account and to change your password please  
visit
the link
below:

        http://w2s2-gst-ss.eng.vmware.com/ss?_s=c_tbD517TX9eJf_3&_k=FctAvU5OTA2
EY2fS
       
If you didn't sent this request, please forget about this mail. Your
account-information won't be changed and you will be able to access your  
account
with your old password.

--
http://w2s2-gst-ss.eng.vmware.com/ss/

===============================
Only the bit starting at 'Hi Dale Henrichs' should be in the message  
body ...


Reply | Threaded
Open this post in threaded view
|

Re: Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb

Comment #1 on issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

ah.. this is my fault... I did not send in the last implementation of that  
method.

Here it is, but I will post everything directly to the store...



seasideDeliverEmailMessage: aWAEmailMessage


        | client |
        client := SendMail new.

        "user login information if applicable"
        self seasideSmtpUsername ifNotNilDo: [:username |
                client user: username.
                self seasideSmtpPassword ifNotNilDo: [:password |
                        client password: password]].

        "use HELO/EHLO ip address format [127.0.0.1] if local host name is ip"
        (self seasideIsIpAddress: client ownDomainName)
                ifTrue: [client ownDomainName: '[', client ownDomainName, ']'].

        "deliver the mail"
        client
                mailhostName: self seasideSmtpServer;
                smtpPort: self seasideSmtpPort;
                from: aWAEmailMessage from address greaseString;
                to: (String streamContents:[:str |
                        aWAEmailMessage recipientsAddresses do:[:addr | str nextPutAll: addr  
greaseString] separatedBy: [str nextPut:$;]]);
                subject: aWAEmailMessage subject greaseString;
                text: aWAEmailMessage body greaseString.

        client send.

Reply | Threaded
Open this post in threaded view
|

Re: Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb

Comment #2 on issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

Ah good, I was wondering whether you had run into this problem or not:)

It looks like SqueakSource3 makes use of the Reply-To header, so I have  
gone ahead and added headers support to the SendMail class ...

Reply | Threaded
Open this post in threaded view
|

Re: Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb

Comment #3 on issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

Also, the

From: aSSEmailAddress
To: aSSEmailAddress
To: aSSEmailAddress

headers indicate a problem within SqueakSource using SSEmailAddress instead  
of WAEmailAddress at some points. Don't try to fix that one, I'm onto it :)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb
Updates:
        Status: Fixed

Comment #4 on issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

Incorporated fix into Grease 1.0.6 (dkh.154)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb
Updates:
        Labels: -GLASS-Seaside30 -Version-3.0.5 GLASS-Grease Version-Grease1.0.5  
Fixed-Grease1.0.6

Comment #5 on issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

(No comment was entered for this change.)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb

Comment #6 on issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

I think, this fix introduced new problems. Since  
WAEmailMessage>>plainMessage is no more used (instead only  
WAEmailMessage>>body), we loose information, particularly there is no BCC  
recipients header. This make BCC recipients public as TO-recipients,  
because the (real) SMTP-Server will add them in the TO field, since they  
are not mentioned in a BCC field.

This will make all BCC-recipients viewable to all others!

Why not using SMTPMail>>plainMessage: and set it with  
WAEmailMessage>>plainMessage?


(Sorry for not providing a real fix here, I just wanted to ask first if I  
am totally wrong with my observation or not)

Reply | Threaded
Open this post in threaded view
|

Re: Issue 272 in glassdb: GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail message and missing subject

glassdb

Comment #7 on issue 272 by [hidden email]:  
GRGemStonePlatform>>seasideDeliverEmailMessage includes too much in mail  
message and missing subject
http://code.google.com/p/glassdb/issues/detail?id=272

Andreas,

It looks like you are correct ... by using recipientAddresses we are  
collapsing all of the recipients into the to field ...

If you have a fix, by all means share it!

I've opened Issue 312 for tracking this..