Marc Geisinger
2006-08-17 06:02:12 UTC
Hi,
i have a php script that is sending mails using groupwise. To do this i
entered our GW-server as relayhost in my postfix/main.cf.
The mail is build comletely by my script, not using any mail class or
anything. This script worked without problems. But lately I had problems
with the attachments names in my mails (sent with this script):
GW-Client did no longer show the attachment names but only part.000,
part.001 and so on.
After searching and trying around for a while, i found the error today:
when adding an attachment to the mail (mutlipart/mixed), i add a new
header with the content-type, the transfer encoding and the content
disposition.
Following RFC 2183 (http://www.faqs.org/rfcs/rfc2183), 2.3, the filename
parameter is added to the content-disposition header
Content-Disposition: attachment; filename=genome.jpeg;
But doing it like this, the filename is no longer recognised by
groupwise (seems to be since GW7 SP1 was installed here). Checking other
mails i finally found out, that within them, the filename is in the
content-type header. Putting the filename there will make my script work
again, with showing the attachments filenames in my GW client.
So my mails only work correct, if they are not formed like they should
be formed. I'm not sure if this is a SP1 problem, but it could possibly
be, because the date SP1 was installed was around the day i first got
this problem (was not to cencerned first, because all was still under
development and it could have been another change that caused this).
i have a php script that is sending mails using groupwise. To do this i
entered our GW-server as relayhost in my postfix/main.cf.
The mail is build comletely by my script, not using any mail class or
anything. This script worked without problems. But lately I had problems
with the attachments names in my mails (sent with this script):
GW-Client did no longer show the attachment names but only part.000,
part.001 and so on.
After searching and trying around for a while, i found the error today:
when adding an attachment to the mail (mutlipart/mixed), i add a new
header with the content-type, the transfer encoding and the content
disposition.
Following RFC 2183 (http://www.faqs.org/rfcs/rfc2183), 2.3, the filename
parameter is added to the content-disposition header
Content-Disposition: attachment; filename=genome.jpeg;
But doing it like this, the filename is no longer recognised by
groupwise (seems to be since GW7 SP1 was installed here). Checking other
mails i finally found out, that within them, the filename is in the
content-type header. Putting the filename there will make my script work
again, with showing the attachments filenames in my GW client.
So my mails only work correct, if they are not formed like they should
be formed. I'm not sure if this is a SP1 problem, but it could possibly
be, because the date SP1 was installed was around the day i first got
this problem (was not to cencerned first, because all was still under
development and it could have been another change that caused this).