[Building Sakai] MailSender

Omer Piperdi omer at rice.edu
Fri Jul 23 14:00:22 PDT 2010


Carl,

Here is the sample message source generated from MailSender..
See SEE BAD HEADER SECTION.. something is not RFC complaint.

'BAD HEADER SECTION, MIME error: error: unexpected end of preamble'

Thanks for looking into it..

Omer



Return-Path: <postmaster at owlspace-test.rice.edu>
Received: from localhost ([unix socket])
	 by cyrus1a.mail.rice.edu (Cyrus v2.3.16) with LMTPA;
	 Wed, 21 Jul 2010 14:11:55 -0500
X-Sieve: CMU Sieve 2.3
Received: from mh1.mail.rice.edu (mh1.mail.rice.edu [128.42.201.20])
	by cyrus1a.mail.rice.edu (Postfix) with ESMTP id 631472A80A4
	for <omer+badh at cyrus1a.mail.rice.edu>; Wed, 21 Jul 2010 14:11:55 -0500 
(CDT)
Received: by mh1.mail.rice.edu (Postfix)
	id 56356CD357; Wed, 21 Jul 2010 14:11:55 -0500 (CDT)
Delivered-To: omer+badh at rice.edu
Received: from mh1.mail.rice.edu (localhost.localdomain [127.0.0.1])
	by mh1.mail.rice.edu (Postfix) with ESMTP id 393E4CD354;
	Wed, 21 Jul 2010 14:11:55 -0500 (CDT)
X-Virus-Scanned: by amavis-2.6.0 at mh1.mail.rice.edu
X-Amavis-Alert: BAD HEADER SECTION, MIME error: error: unexpected end of
	preamble
Received: from mh1.mail.rice.edu ([127.0.0.1])
	by mh1.mail.rice.edu (mh1.mail.rice.edu [127.0.0.1]) (amavisd-new, port 
10024)
	with ESMTP id x+ZaddiFaM+M; Wed, 21 Jul 2010 14:11:55 -0500 (CDT)
Received: from sakai25-dev.rice.edu (sakai25-dev.rice.edu [128.42.127.4])
	(using TLSv1 with cipher RC4-MD5 (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: sakai)
	by mh1.mail.rice.edu (Postfix) with ESMTPSA id CE825CD353;
	Wed, 21 Jul 2010 14:11:54 -0500 (CDT)
Date: Wed, 21 Jul 2010 14:11:54 -0500 (CDT)
From: Sakai Administrator <sakai at rice.edu>
Message-ID: <374434499.14.1279739514707.JavaMail.cwis at sakai25-dev.rice.edu>
Subject: site a: Test Email
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_Part_12_955653489.1279739514701"
Content-Transfer-Encoding: 8bit
X-Mailer: sakai-mailsender
To: undisclosed-recipients:;
X-DSPAM-Result: Innocent
X-DSPAM-Processed: Wed Jul 21 14:11:55 2010
X-DSPAM-Confidence: 0.6522
X-DSPAM-Probability: 0.0000
X-DSPAM-Signature: 2294,4c47467b256231371211852

------=_Part_12_955653489.1279739514701
Content-Type: multipart/alternative;
	boundary="----=_Part_13_637993710.1279739514701"

------=_Part_13_637993710.1279739514701
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

Test Email
------=_Part_13_637993710.1279739514701
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

Test Email
------=_Part_13_637993710.1279739514701--

------=_Part_12_955653489.1279739514701--






On 7/23/2010 9:46 AM, Carl Hall wrote:
> Hi Omer,
>
> If the output below is what is showing in your email client, it looks
> like the header is messed up.  3D is the escaped equivalent of =.  I
> think someone else saw something like this.  I'll try to get some unit
> tests in there to check this out.
>
>
> On Wed, Jul 21, 2010 at 1:50 PM, Omer Piperdi <omer at rice.edu
> <mailto:omer at rice.edu>> wrote:
>
>     Hi Carl,
>
>     I was able to deploy fine with our 2.7.x install..
>     We are wondering if there is any settings for changing MIME type in
>     email body..  We are seeing both html and text body in GMail and Apple
>     mail.. (even though part of the body has alternative MIME type)
>
>     See example below..
>
>     ------=3D_Part_3_1225438970.1279732094009
>     Content-Type: multipart/alternative;=20
>     =09boundary=3D"----=3D_Part_4_1584594060.1279732094010"
>
>     ------=3D_Part_4_1584594060.1279732094010
>     Content-Type: text/plain; charset=3DUTF-8
>     Content-Transfer-Encoding: 7bit
>
>     f sdafdsafdsf dsafds
>     ------=3D_Part_4_1584594060.1279732094010
>     Content-Type: text/html; charset=3DUTF-8
>     Content-Transfer-Encoding: 7bit
>
>     f sdafdsafdsf dsafds
>     ------=3D_Part_4_1584594060.1279732094010--
>
>     ------=3D_Part_3_1225438970.1279732094009--
>
>
>     Thanks
>     Omer
>
>     On 7/20/2010 4:14 PM, Carl Hall wrote:
>      > The trunk of mailsender has been updated to work with kernel
>      > artifacts.  Since 2.5 is EOL, the 1.4 branch of mailsender will
>      > continue to serve the<= 2.5 branches and trunk will go forward with
>      > kernel dependencies.  I tried to make things work with build profiles
>      > that detect k1/pre-k1 but it was tedious and unrewarding (for me,
>      > anyway).
>      >
>      > I have also updated the base pom to use the 'pure pom' strategy
>      > meaning mailsender can be built independent of a particular Sakai
>      > installation.  Go forward, test and report!
>      >
>      > Thanks,
>      > Carl
>      >
>      >
>      > On Tue, Jul 20, 2010 at 1:28 AM, Seth Theriault<slt at columbia.edu
>     <mailto:slt at columbia.edu>>  wrote:
>      >> Carl Hall wrote:
>      >>
>      >>> Seth Theriault and I are working on getting trunk to play nice
>      >>> with kernel and pre-kernel configurations.  I hope to have
>      >>> this pom refactoring done in the next week or so.  I'll try to
>      >>> post again when done as we can always use more eyes on the
>      >>> project.
>      >>
>      >> Locally, I have Mailsender trunk (r69070) working against the 2.6
>      >> maintenance branch using the attached patch. It basically makes
>      >> the necessary pom.xml modifications to build against a
>      >> kernel-enabled (1.0.x in this case) build.
>      >>
>      >> People might want to try it while the pom refactoring is in
>     progress.
>      >>
>      >> Seth
>      >>
>      >> Index: mailsender/impl/pom.xml
>      >> ===================================================================
>      >> --- mailsender/impl/pom.xml     (revision 69070)
>      >> +++ mailsender/impl/pom.xml     (working copy)
>      >> @@ -82,53 +82,25 @@
>      >>
>      >> <!-- sakai -->
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-authz-api</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-kernel-api</artifactId>
>      >> </dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-component-api</artifactId>
>      >> +<dependency>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-component-manager</artifactId>
>      >> </dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-entity-api</artifactId>
>      >> -</dependency>
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-event-api</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-kernel-util</artifactId>
>      >> </dependency>
>      >> <dependency>
>      >> <groupId>org..sakaiproject</groupId>
>      >> <artifactId>sakai-mailarchive-api</artifactId>
>      >> </dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-memory-api</artifactId>
>      >> -</dependency>
>      >> <dependency>
>      >> <groupId>org..sakaiproject</groupId>
>      >> <artifactId>sakai-message-api</artifactId>
>      >> </dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-site-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-tool-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-user-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-util-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-util</artifactId>
>      >> -</dependency>
>      >>
>      >> <!-- testing -->
>      >> <dependency>
>      >>
>      >> Index: mailsender/api/pom.xml
>      >> ===================================================================
>      >> --- mailsender/api/pom.xml      (revision 69070)
>      >> +++ mailsender/api/pom.xml      (working copy)
>      >> @@ -38,30 +38,18 @@
>      >> <artifactId>commons-logging</artifactId>
>      >> </dependency>
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-authz-api</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-kernel-api</artifactId>
>      >> </dependency>
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-component-api</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-component-manager</artifactId>
>      >> </dependency>
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-site-api</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-kernel-util</artifactId>
>      >> </dependency>
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-tool-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-user-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-util-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> <groupId>${sakai.spring.groupId}</groupId>
>      >> <artifactId>${sakai.spring..artifactId}</artifactId>
>      >> </dependency>
>      >>
>      >> Index: mailsender/pom.xml
>      >> ===================================================================
>      >> --- mailsender/pom.xml  (revision 69070)
>      >> +++ mailsender/pom.xml  (working copy)
>      >> @@ -21,7 +21,7 @@
>      >> <parent>
>      >> <artifactId>master</artifactId>
>      >> <groupId>org.sakaiproject</groupId>
>      >> -<version>2.5.6</version>
>      >> +<version>2.6-SNAPSHOT</version>
>      >> </parent>
>      >> <groupId>org.sakaiproject.mailsender</groupId>
>      >> <artifactId>mailsender-base</artifactId>
>      >> @@ -77,11 +77,6 @@
>      >> <artifactId>mailsender-impl</artifactId>
>      >> <version>${pom.version}</version>
>      >> </dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-util</artifactId>
>      >> -<version>${sakai.version}</version>
>      >> -</dependency>
>      >>
>      >> <dependency>
>      >> <groupId>javax.activation</groupId>
>      >>
>      >> Index: mailsender/tool/pom.xml
>      >> ===================================================================
>      >> --- mailsender/tool/pom.xml     (revision 69070)
>      >> +++ mailsender/tool/pom.xml     (working copy)
>      >> @@ -100,32 +100,16 @@
>      >>
>      >> <!-- Sakai Dependencies -->
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-user-api</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-kernel-api</artifactId>
>      >> </dependency>
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-util</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-component-manager</artifactId>
>      >> </dependency>
>      >> <dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-util-api</artifactId>
>      >> +<groupId>org.sakaiproject.kernel</groupId>
>      >> +<artifactId>sakai-kernel-util</artifactId>
>      >> </dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-entity-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-authz-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-content-api</artifactId>
>      >> -</dependency>
>      >> -<dependency>
>      >> -<groupId>org.sakaiproject</groupId>
>      >> -<artifactId>sakai-tool-api</artifactId>
>      >> -</dependency>
>      >> </dependencies>
>      >> </project>
>      >>
>      >>
>      > _______________________________________________
>      > sakai-dev mailing list
>      > sakai-dev at collab.sakaiproject.org
>     <mailto:sakai-dev at collab.sakaiproject.org>
>      > http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>      >
>      > TO UNSUBSCRIBE: send email to
>     sakai-dev-unsubscribe at collab.sakaiproject.org
>     <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a
>     subject of "unsubscribe"
>      >
>      >
>      >
>      >
>     _______________________________________________
>     sakai-dev mailing list
>     sakai-dev at collab.sakaiproject.org
>     <mailto:sakai-dev at collab.sakaiproject.org>
>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
>     TO UNSUBSCRIBE: send email to
>     sakai-dev-unsubscribe at collab.sakaiproject.org
>     <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a
>     subject of "unsubscribe"
>
>
> !DSPAM:2294,4c49b1e4256233146618935!


More information about the sakai-dev mailing list