More info from Michael:
---------- Forwarded message ---------- From: Michael D'Auria michael.dauria@gmail.com Date: Jan 23, 2006 11:23 AM Subject: Re: Email Headers are shown in other email clients such as GMail... To: Jason random.numbers@gmail.com
What i just tried is to hard code the "\n" right into the creation of the MAIL_mime instance and it seemed to work. This makes me believe that the sendmail.inc cannot see the configuration file.
: Michael :.
On 1/23/06, Jason random.numbers@gmail.com wrote:
I'm glad it worked. I'm not actually a dev on this project though, so I'll forward this to the list so hopefully it can get taken care of.
To the list: Aparently setting the "$rcmail_config['mail_header_delimiter']" parameter to "\n" doesn't alieviate the extra carriage return issues with php's mail() function. Read below for more info.
Thanks, Jason
On 1/23/06, Michael D'Auria michael.dauria@gmail.com wrote:
Your hard coded replace worked, whereas the configuration change did not. So i guess i would mark this as a bug at the moment, for the record i am using the latest cvs snapshot.
Thanks for the fix!
.: Michael :.
On 1/23/06, Jason < random.numbers@gmail.com> wrote:
Interesting, yes, I would think that it would have solved your problem. I ran into this before that configuration parameter existed, so I didn't remember it was there. If you try the str_replace() solution, and it works, but setting the header delimiter to "\n" doesn't work, email the mailing list again with the info because that sounds like it could be a bug.
On 1/23/06, Michael D'Auria michael.dauria@gmail.com wrote:
I thought that the configuration: $rcmail_config['mail_header_delimiter'] = "\n"; would have fixed my problem, but i guess not.
I will try both methods and see what i can do.
Thanks!
.: Michael :.
On 1/23/06, Jason < random.numbers@gmail.com> wrote:
This has to do with the difference between Windows and *nix line endings. I'm guessing you're using *nix and you don't have RC configured to use a sendmail server. You can fix this one of two ways. You can either edit the file
"program/steps/mail/sendmail.inc"
and replace every occurrence of "$header_str = $MAIL_MIME->txtHeaders($headers);" with "$header_str
=
str_replace("\r", '',
$MAIL_MIME->txtHeaders($headers));". This will
remove the extra carriage returns that are inserted by php's mail() function. The second option is to configure RC to use a sendmail server. If you're running one on the same box you can probably set "$rcmail_config['smtp_server'] = 'localhost';" and "$rcmail_config['smtp_port'] = 25;", or whatever is appropriate for your situation.
Jason
On 1/23/06, Michael D'Auria < michael.dauria@gmail.com> wrote:
Hello all!
I really like the way this email client looks and acts, having AJAX
allows
users to feel close to their desktop at all times. I would really
like
to
allow the users that i host to take advantage of this software, but
i
have
found a couple of issues with it at the moment.
Whenever i send a message the headers are not hidden as with other
clients:
From: < michael@testing.com > Cc: michael.test@gmail.com Message-ID:
< c5a40c8d3e4a8525545c3ba8825199cb@localhost>
X-Sender: michael@testing.com
User-Agent: RoundCube Webmail
sdfgfdghfdhghg
Also, the name comes up as "unknown sender" but i know i have set
the c
flag
when creating user accounts with vpopmail...
.: Michael :.