Return-Path: Delivered-To: apmail-james-server-user-archive@www.apache.org Received: (qmail 63763 invoked from network); 18 Jan 2011 22:10:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jan 2011 22:10:05 -0000 Received: (qmail 56253 invoked by uid 500); 18 Jan 2011 22:10:05 -0000 Delivered-To: apmail-james-server-user-archive@james.apache.org Received: (qmail 56100 invoked by uid 500); 18 Jan 2011 22:10:04 -0000 Mailing-List: contact server-user-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Users List" Reply-To: "James Users List" Delivered-To: mailing list server-user@james.apache.org Received: (qmail 56092 invoked by uid 99); 18 Jan 2011 22:10:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 22:10:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of apache@bago.org designates 74.125.82.177 as permitted sender) Received: from [74.125.82.177] (HELO mail-wy0-f177.google.com) (74.125.82.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Jan 2011 22:09:54 +0000 Received: by wyf22 with SMTP id 22so160808wyf.22 for ; Tue, 18 Jan 2011 14:09:34 -0800 (PST) Received: by 10.216.156.6 with SMTP id l6mr1705016wek.55.1295388574226; Tue, 18 Jan 2011 14:09:34 -0800 (PST) Received: from mail-ww0-f47.google.com (mail-ww0-f47.google.com [74.125.82.47]) by mx.google.com with ESMTPS id r38sm3278390weq.23.2011.01.18.14.09.33 (version=SSLv3 cipher=RC4-MD5); Tue, 18 Jan 2011 14:09:34 -0800 (PST) Received: by wwb39 with SMTP id 39so125628wwb.28 for ; Tue, 18 Jan 2011 14:09:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.227.133.16 with SMTP id d16mr2895410wbt.145.1295388572809; Tue, 18 Jan 2011 14:09:32 -0800 (PST) Received: by 10.227.9.197 with HTTP; Tue, 18 Jan 2011 14:09:32 -0800 (PST) X-Originating-IP: [78.134.14.200] In-Reply-To: <20cf304345becfd096049a25d73d@google.com> References: <20cf304345becfd096049a25d73d@google.com> Date: Tue, 18 Jan 2011 23:09:32 +0100 Message-ID: Subject: Re: SMTP for user->app notification From: Stefano Bagnara To: James Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 2011/1/18 : > I'm the developer of a web-based application and am looking into what it > would take for me to be able to provide each of my users with their own > application-specific email address so that they could send email to my site > that would then reformat the message into something more appropriate (much > like Posterous allows you to add blog entries via email). > > Is this a "use case" that is common for James, and if not, how easy is it to > hook into the framework system so that I don't have to poll a database > constantly (but can instead receive email "events" and react accordingly)? Yes. I have had this very use case solved by writing a custom mailet that does an HTTP call to the final website after having parsed the message. When interacting with a website I prefer to do this "mail to web" translation instead of embedding james in the application server and use simple java calls. At the most extreme you could write a simple mailet that POST the whole mimemessage AS-IS to a given use and leave all of the logic on the web side: this is up to you. Stefano --------------------------------------------------------------------- To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org For additional commands, e-mail: server-user-help@james.apache.org