filter_copy.cpp
Go to the documentation of this file.
1 //
2 // Copyright (C) 2001-2013 Graeme Walker <graeme_walker@users.sourceforge.net>
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // You should have received a copy of the GNU General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
16 // ===
17 //
18 // filter_copy.cpp
19 //
20 // A utility that can be installed as a "--filter" program to copy the message
21 // envelope into all spool sub-directories for use by "--pop-by-name".
22 //
23 // If the envelope in the parent directory has been copied at least once then
24 // it is removed and the program exits with a value of 100.
25 //
26 
27 #include "gdef.h"
28 #include "filter.h"
29 
30 bool filter_match( G::Path , std::string )
31 {
32  return true ;
33 }
34 
35 std::string filter_read_to( const std::string & )
36 {
37  return std::string() ;
38 }
39 
40 int main( int argc , char * argv [] )
41 {
42  return filter_main( argc , argv ) ;
43 }
44 
int filter_main(int argc, char *argv[])
Definition: filter.cpp:137
std::string filter_read_to(const std::string &)
Definition: filter_copy.cpp:35
bool filter_match(G::Path, std::string)
Definition: filter_copy.cpp:30
int main(int argc, char *argv[])
Definition: filter_copy.cpp:40
A Path object represents a file system path.
Definition: gpath.h:44