root/db/filing_exception.hh

Revision 19beb87b09eead3ac023e509e8df964ec8d55566, 1.2 KB (checked in by Antti-Juhani Kaijanaho <antti-juhani@…>, 2 years ago)

Implement #16: Posting by email is now possible (requires server setup)

User-visible points:

– a user may send email to group@…, and this email

will be processed as a posting to that group

– crossposting is not supported
– if the user is not allowed to post to the group, or some other

problem ensues, a bounce message is generated by the server MTA

Operator-visible points:

– There is a new configuration option (unix-socket) which names the

Unix domain socket to be used for injecting emails as posts.

– The operator should arrange for email sent to group@…

to be delivered to the new (alue-)inject-email command, with the
following environment variables defined:

LOCAL=group (the local part)
SENDER= (the envelope sender address)

– The command is built as inject-email but installed as

alue-inject-email.

Signed-off-by: Antti-Juhani Kaijanaho <antti-juhani@…>

  • Property mode set to 100644
Line 
1/*  This file is part of Alue, the multiprotocol Internet discussion daemon
2
3    Copyright © 2009, 2010 Antti-Juhani Kaijanaho
4
5    Alue is free software: you can redistribute it and/or modify it
6    under the terms of the GNU General Public License as published by
7    the Free Software Foundation, either version 3 of the License, or
8    (at your option) any later version.
9
10    Alue is distributed in the hope that it will be useful, but
11    WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13    General Public License for more details.
14
15    You should have received a copy of the GNU General Public License
16    along with Alue.  If not, see <http://www.gnu.org/licenses/>.
17
18 */
19
20#ifndef GUARD_DB_FILING_EXCEPTION_HH
21#define GUARD_DB_FILING_EXCEPTION_HH
22
23#include <exception>
24#include <string>
25
26namespace db
27{
28
29        class filing_exception : public std::exception
30        {
31                std::string s;
32        public:
33                filing_exception(std::string s) : s(s) {}
34                ~filing_exception() throw () {}
35               
36                const char *what() const throw() { return s.c_str(); }
37        };
38}
39
40
41#endif /* GUARD_DB_FILING_EXCEPTION_HH */
Note: See TracBrowser for help on using the browser.