Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

GM2.2RC1 Header Issues And Broken Links

Quote Reply
GM2.2RC1 Header Issues And Broken Links
Hi.

Installed 2.1.0 (my live version):

Sent a mail from this and found that from console the from address was correctly displayed.

Upgraded to 2.2RC1 and on sending mail found that the from address for any sender is nobody@server.sample.com

This difference is also noted in the header files as noted below with the point of diff marked in red:

2.1.0 (which is also the case for a test install of 2.1.1)

Return-Path: <user@sample.com>
Received: from localhost (localhost [127.0.0.1]) (uid 99) by
server.sample.com with local; Sat, 11 Oct 2003 05:13:22
+0530
Date: Sat, 11 Oct 2003 05:13:21 +0530

2.2RC1

Return-Path: <nobody@server.sample.com>
Received: from localhost (localhost [127.0.0.1]) (uid 99) by
server.sample.com with local; Sat, 11 Oct 2003 06:25:53
+0530
Date: Sat, 11 Oct 2003 06:25:53 +0530

So the maillog will never have the user@sample.com and it will have nobody@server.sample.com for all GM users (2.2RC1)

How to get this to have user@sample.com instead of nobody@server.sample.com

Email>Undeliverables is linking to email.cgi which is eliminated in 2.2 so that link in Admin is broken.

Thnx

Anup
Quote Reply
Re: [anup123] GM2.2RC1 Header Issues And Broken Links In reply to
Thanks for the bug reports, these bugs have been fixed.

Adrian
Quote Reply
Re: [brewt] GM2.2RC1 Header Issues And Broken Links In reply to
Hey Adrian,

Any chance you can post a diff or let us know where to fix these bugs?

Thanks,
Charlie
Quote Reply
Re: [Chaz] GM2.2RC1 Header Issues And Broken Links In reply to
admin/GT/Mail/Send.pm:
Code:
@@ -226,7 +226,7 @@
# If the email address is safe, we set the envelope via -f so bounces are handled properly.
my $from = $self->{mail}->{head}->get('return-path') || $self->{mail}->{head}->get('from');
my $envelope = '';
- if ($from =~ /^([\w\-\.]+\@[\w\-\.]+)$/) {
+ if ($from =~ /<?([\w\-\.]+\@[\w\-\.]+)>?/) {
$envelope = "-f $1";
}
elsif (($from eq '<>') or ($from eq '')) {

This bug only affects you if you're using sendmail (as opposed to smtp) to send mail, and your smtp daemon is actually sendmail (as opposed to qmail, etc).

Adrian

Last edited by:

brewt: Oct 12, 2003, 6:59 PM
Quote Reply
Re: [brewt] GM2.2RC1 Header Issues And Broken Links In reply to
Perfect, thanks!

~Charlie
Quote Reply
Re: [brewt] GM2.2RC1 Header Issues And Broken Links In reply to
Thnx. It worked.

Anup


=_= =_= =_= =_= =_= =_=


You can chain me, you can torture me, you can even destroy this body, but you will never imprison my mind.
-Mahatma Gandhi