From 747f415ed0c13943d7bbb53678f90935ad556c4b Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 7 Sep 2024 19:56:19 +1000 Subject: [PATCH] initial commit of file from CVS for smeserver-mailsorting on Sat Sep 7 19:56:19 AEST 2024 --- .gitignore | 4 + Makefile | 21 + README.md | 16 +- additional/CHANGELOG.git | 40 ++ additional/COPYING | 340 ++++++++++++++ additional/README.md | 1 + additional/smeserver-mailsorting.spec | 286 ++++++++++++ contriborbase | 1 + createlinks | 21 + root/etc/cron.weekly/mailsorting | 59 +++ .../events/actions/mailsorting-cleanup | 41 ++ .../events/actions/mailsorting-update-user | 90 ++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 163 +++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../e-smith/web/functions/userpanel-mailsort | 142 ++++++ .../templates-user/.mailfilter/00setup | 35 ++ .../templates-user/.mailfilter/10header | 9 + .../e-smith/templates-user/.mailfilter/15log | 1 + .../templates-user/.mailfilter/25options | 45 ++ .../templates-user/.mailfilter/35WordFilter | 44 ++ .../templates-user/.mailfilter/40global | 164 +++++++ .../e-smith/templates-user/.mailfilter/60user | 164 +++++++ .../templates-user/.mailfilter/90default | 36 ++ .../templates-user/.procmailrc/00setup | 21 + .../templates-user/.procmailrc/10header | 24 + .../e-smith/templates-user/.procmailrc/15log | 47 ++ .../templates-user/.procmailrc/25options | 6 + .../templates-user/.procmailrc/40global | 166 +++++++ .../e-smith/templates-user/.procmailrc/60user | 167 +++++++ .../templates-user/.procmailrc/90default | 23 + .../e-smith/templates-user/.qmail/50Filter | 32 ++ .../e-smith/templates-user/.qmail/76Filter | 36 ++ .../e-smith/web/functions/userpanel-mailsort | 180 +++++++ root/usr/lib/.gitignore | 0 .../esmith/FormMagick/Panel/mailsort.pm | 439 ++++++++++++++++++ smeserver-mailsorting.spec | 339 ++++++++++++++ 59 files changed, 6609 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 additional/CHANGELOG.git create mode 100644 additional/COPYING create mode 100644 additional/README.md create mode 100644 additional/smeserver-mailsorting.spec create mode 100644 contriborbase create mode 100644 createlinks create mode 100644 root/etc/cron.weekly/mailsorting create mode 100644 root/etc/e-smith/events/actions/mailsorting-cleanup create mode 100644 root/etc/e-smith/events/actions/mailsorting-update-user create mode 100644 root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/etc/e-smith/templates-user/.mailfilter/00setup create mode 100644 root/etc/e-smith/templates-user/.mailfilter/10header create mode 100644 root/etc/e-smith/templates-user/.mailfilter/15log create mode 100644 root/etc/e-smith/templates-user/.mailfilter/25options create mode 100644 root/etc/e-smith/templates-user/.mailfilter/35WordFilter create mode 100644 root/etc/e-smith/templates-user/.mailfilter/40global create mode 100644 root/etc/e-smith/templates-user/.mailfilter/60user create mode 100644 root/etc/e-smith/templates-user/.mailfilter/90default create mode 100644 root/etc/e-smith/templates-user/.procmailrc/00setup create mode 100644 root/etc/e-smith/templates-user/.procmailrc/10header create mode 100644 root/etc/e-smith/templates-user/.procmailrc/15log create mode 100644 root/etc/e-smith/templates-user/.procmailrc/25options create mode 100644 root/etc/e-smith/templates-user/.procmailrc/40global create mode 100644 root/etc/e-smith/templates-user/.procmailrc/60user create mode 100644 root/etc/e-smith/templates-user/.procmailrc/90default create mode 100644 root/etc/e-smith/templates-user/.qmail/50Filter create mode 100644 root/etc/e-smith/templates-user/.qmail/76Filter create mode 100644 root/etc/e-smith/web/functions/userpanel-mailsort create mode 100644 root/usr/lib/.gitignore create mode 100644 root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/mailsort.pm create mode 100644 smeserver-mailsorting.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbb3a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2697c8c --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-mailsorting +# $Id: Makefile,v 1.1 2020/06/10 10:04:38 brianr Exp $ +NAME := smeserver-mailsorting +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index 36fe698..4cea421 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-mailsorting +# smeserver-mailsorting -SMEServer Koozali developed git repo for smeserver-mailsorting smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-mailsorting smecontribs + +## Wiki +
https://wiki.koozali.org/Mailsorting + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-mailsorting&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
diff --git a/additional/CHANGELOG.git b/additional/CHANGELOG.git new file mode 100644 index 0000000..399a44e --- /dev/null +++ b/additional/CHANGELOG.git @@ -0,0 +1,40 @@ +commit 3966ffe4535843d7b3c2654299e543aa3350cc27 +Author: Stephane de Labrusse +Date: Tue Dec 2 07:32:45 2014 +0100 + + sievesupport disabled by default + +commit b9f552f3a0aed34f14feee0e59b722351bb7be0c +Author: Stephane de Labrusse +Date: Tue Dec 2 01:19:37 2014 +0100 + + * Tue Dec 2 2014 stephane de Labrusse 1.4-2.sme + - allow the possibility to use sieve script if no rules has matched. + - Code developed by Mats Schuh + +commit 2acccdf718159f4bf6090a11d28a77b4e1e54aa9 +Author: mats-ng +Date: Sun Nov 30 02:01:59 2014 +0100 + + Modified user template for .procmailrc to deliver mails through dovecot if Sieve is enabled for the server and if procmail doesn't match rules + Added sieve detection for user .mailfilter file. Mail is sent further to dovecot if sieve is enabled for the server and if maildrop doesn't match rules + The use of sieve is enable by default, can be disable by user 'db accounts setprop user Sieve disabled' signal-event mailsorting-conf + Code developed by Mats Schuh + +commit 0b1b68419e6281e42be1209f189681b5175c88a9 +Author: Stephane de Labrusse +Date: Wed Sep 3 17:55:25 2014 +0200 + + first release to sme9 + +commit 90281b42942c78a1cac1cf7c8bda587549421a78 +Author: Stephane de Labrusse +Date: Wed Sep 3 17:52:55 2014 +0200 + + first release to sme9 + +commit bea9d8cf84cb171ef66b76b885750b8fde02e5b8 +Author: Stephane de Labrusse +Date: Mon Jun 23 18:48:25 2014 +0200 + + first commit to SME Server 9 diff --git a/additional/COPYING b/additional/COPYING new file mode 100644 index 0000000..196760e --- /dev/null +++ b/additional/COPYING @@ -0,0 +1,340 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Library General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) 19yy + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) 19yy name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General +Public License instead of this License. diff --git a/additional/README.md b/additional/README.md new file mode 100644 index 0000000..a83d563 --- /dev/null +++ b/additional/README.md @@ -0,0 +1 @@ +smeserver-mailsorting is a contrib for SME Server, a Linux distro oriented server. see http://wiki.contribs.org diff --git a/additional/smeserver-mailsorting.spec b/additional/smeserver-mailsorting.spec new file mode 100644 index 0000000..0f7d44d --- /dev/null +++ b/additional/smeserver-mailsorting.spec @@ -0,0 +1,286 @@ +# $Id: smeserver-mailsorting.spec,v 1.7 2013/12/11 21:01:28 unnilennium Exp $ +# Authority: dungog +# Name: Stephen Noble + +Summary: Lets users configure procmail or maildrop rules. +%define name smeserver-mailsorting +Name: %{name} +%define version 1.4 +%define release 2 +Version: %{version} +Release: %{release}%{?dist} +License: GPL +URL: http://www.dungog.net/sme +Group: SMEserver/addon +Source: %{name}-%{version}.tar.gz +BuildArchitectures: noarch +BuildRoot: /var/tmp/%{name}-%{version} +Requires: e-smith-release >= 9.0, +Requires: perl-Unicode-IMAPUtf7 +Requires: e-smith-formmagick >= 1.4.0-12 +#Requires: smeserver-userpanel, userpanel causes endless problems +BuildRequires: e-smith-devtools >= 1.13.1-03 +AutoReqProv: no + +%description +SME Server enhancement to enable procmail or maildrop filtering for users. +Optionally provides user panels where users can create mail rules for themselves + +%changelog +* Tue Dec 2 2014 stephane de Labrusse 1.4-2.sme +- allow the possibility to use sieve script if no rules has matched. +- Code developed by Mats Schuh + +* Mon Jun 23 2014 stephane de Labrusse 1.4-1.sme +- Initial release to sme9 + +* Wed Dec 11 2013 JP Pialasse 1.2-45.sme +- fix bug as admin .procmail was not created [SME: 8023] + +* Fri Nov 29 2013 JP Pialasse 1.2-44.sme +- fix admin patch + +* Wed Nov 28 2013 Steph DL 1.2-43.sme +- fix [SME: 8023] [SME: 8024] + +* Thu Oct 09 2013 John Crisp 1.2-42.sme +- remove space from TO_ [SME: 6061] [SME: 2264] + +* Sun Jul 14 2013 JP Pialasse 1.2-41.sme +- apply locale 2013-07-14 patch +- documentation fix [SME: 7586] +- copy keeped even if forward [SME: 6847] + + +* Sun Mar 06 2011 SME Translation Server 1.2-40.sme +- apply locale 2011-03-06 patch + +* Sun May 23 2010 SME Translation Server 1.2-39.sme +- apply locale 2010-05-23 patch + +* Tue Mar 02 2010 SME Translation Server 1.2-38.sme +- apply locale 2010-03-02 patch + +* Tue Oct 27 2009 SME Translation Server 1.2-37.sme +- apply locale 2009-10-27 patch + +* Mon Aug 24 2009 SME Translation Server 1.2-36.sme +- apply locale 2009-08-24 patch + +* Fri Jun 12 2009 Stephen Noble 1.2-35 +- don't escape spaces in folder names with zarafa enabled [SME: 5164] + +* Wed May 20 2009 SME Translation Server 1.2-34.sme +- apply locale 2009-05-20 patch + +* Mon Apr 27 2009 SME Translation Server 1.2-33.sme +- apply locale 2009-04-27 patch + +* Sun Mar 22 2009 Stephen Noble 1.2-32 +- qmail FilterOrder enabled lets maildrop filter before forwarding [SME: 5044] + +* Tue Mar 03 2009 SME Translation Server xyz 1.2-31 +- apply locale 2009-03-03 patch + +* Sun Mar 1 2009 Jonathan Martens 1.2-30 +- Apply 1 Mar 2009 locale patch [SME: 5018] + +* Sat Feb 21 2009 Stephen Noble 1.2-29 +- remove drop down to select folders [SME: 5016] + +* Sat Feb 21 2009 Stephen Noble 1.2-28 +- procmail sort to zarafa folders if enabled [SME: 5016] + +* Thu Jan 1 2009 Jonathan Martens 1.2-27 +- Apply 1 Jan 2009 locale patch [SME: 4900] + +* Tue Oct 14 2008 Jonathan Martens 1.2-26 +- Apply 14 Oct 2008 locale patch + +* Mon Sep 29 2008 Stephen Noble - 1.2-25 +- remove internal forwarding [SME: 4605] + +* Sat Sep 27 2008 Stephen Noble - 1.2-24 +- move .qmail fragment after SME forwarding [SME: 4602] + +* Sat Sep 27 2008 Stephen Noble - 1.2-23 +- Apply 27 Sep 2008 locale patch + +* Tue Jul 1 2008 Jonathan Martens 1.2-22 +- Apply 1 July 2008 locale patch + +* Thu May 21 2008 Jonathan Martens 1.2-21 +- Apply 21 May 2008 locale patch +- Updating the release number (it was lagging behind about 10) + +* Mon May 5 2008 Jonathan Martens 1.2-20 +- Apply 5 May 2008 locale patch + +* Sun Apr 27 2008 Jonathan Martens 1.2-19 +- Add common tags to e-smith-formmagick's general + +* Tue Apr 22 2008 Jonathan Martens 1.2-18 +- Added 22 April 2008 locale patch + +* Tue Apr 1 2008 Shad L. Lords 1.2-17 +- Update to UTF-8 translations + +* Fri Mar 14 2008 Stephen Noble - 1.2-16 +- block generation of procmail/maildrop rules [SME: 4051] + +* Fri Mar 14 2008 Stephen Noble - 1.2-15 +- update locale 2008-03-14 + +* Wed Mar 12 2008 Shad L. Lords - 1.2-14 +- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] + +* Tue Mar 11 2008 Stephen Noble - 1.2-13 +- Add 2008-03-11 locale patch + +* Sat Mar 07 2008 Stephen Noble - 1.2-12 +- prepare en lexicons for pootle translations + +* Tue Dec 25 2007 Stephen Noble 1.2-11 +- french translation fix + +* Tue Dec 25 2007 Stephen Noble 1.2-10 +- add french translation, thanks Sylvain Gomez + +* Mon Oct 29 2007 Stephen Noble 1.2-9 +- add spanish translation, thanks Normando Hall [SME 3503] + +* Sun Jul 29 2007 Stephen Noble 1.2-8 +- Add Requires perl-Unicode-IMAPUtf7 [SME: 3218] + +* Thu Jul 05 2007 Stephen Noble 1.2-7 +- touch processmail db, thanks dclarke + +* Wed Jun 13 2007 Stephen Noble 1.2-6 +- add global maildrop delete duplicate db value + +* Wed Jun 13 2007 Stephen Noble +- update .tar.gz to current version + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Sat Mar 17 2007 Stephen Noble +- retry mail in .qmail [sme 2733] +- [1.2-5] + +* Wed Feb 28 2007 Stephen Noble +- remove Requires: smeserver-userpanel +- [1.2-4] + +* Tue Jan 9 2007 Stephen Noble +- remove .* after TO_ macro [sme 2264] +- Existing mail folders search improved [sme 2265] +- [1.2-3] + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Mon Oct 30 2006 Stephen Noble +- improved german support, thanks Dietmar +- Unicode-IMAPUtf7 support [sme 1446] +- [1.2-2] + +* Sat Oct 21 2006 Stephen Noble +- FormMagick version +- [1.2-1] + +* Thu Aug 24 2006 Stephen Noble +- remove strict check on mailrule criterion [sme 1643] +- fix log rotation +- maildrop matching improved, [sme 1642] +- allow for spaces in folder names for maildrop [sme 1640] +- [0.9-6] + +* Sat May 6 2006 Stephen Noble +- default shell for maildrop set to /bin/bash +- [contribs 1378] thanks mweinber neddix.de +- [0.9-5] + +* Wed Apr 6 2006 Stephen Noble +- delete duplicates +- globally enabled for procmail, works ok +- per user for maildrop, worked ok for user A, but started deleting mail for user B +- [0.9-4] + +* Thu Mar 9 2006 Stephen Noble +- remove preun actions +- [0.9-3] + +* Thu Mar 9 2006 Stephen Noble +- Requires: smeserver-userpanel +- bypass admin's .qmail +- [0.9-2] + +* Sun Sep 25 2005 Stephen Noble +- initial release +- [0.9-1] + +%prep +%setup + +%build +perl createlinks + +LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) +for lexicon in $LEXICONS +do + /sbin/e-smith/validate-lexicon $lexicon +done + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +echo "%doc COPYING" >> %{name}-%{version}-filelist + +%clean + +%pre +%preun + +%post +#new installs +if [ $1 = 1 ] ; then + echo '' + echo '#############################################################' + echo ' Please visit the url below to apprehend all the db commands' + echo ' http://wiki.contribs.org/Mailsorting#Configuration ' + echo '#############################################################' + echo '' +fi + +#upgrades (and new installs) +/bin/touch /home/e-smith/db/processmail +# this one is essential to avoid to lose mails !!!! +/sbin/e-smith/signal-event mailsorting-conf +if [ -d /etc/e-smith/events/conf-userpanel ] ; then + /sbin/e-smith/signal-event conf-userpanel +fi + +%postun +#uninstall +if [ $1 = 0 ] ; then + +echo '' +echo '##################################' +echo 'to disable procmail or maildrop' +echo 'config delprop qmail FilterType' +echo 'signal-event email-update' +echo '##################################' +echo '' + + DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` + for db in $DBS ; do + /sbin/e-smith/db $db delete userpanel-mailsort 2>/dev/null + done +fi + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root) diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/createlinks b/createlinks new file mode 100644 index 0000000..cbc9833 --- /dev/null +++ b/createlinks @@ -0,0 +1,21 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); +use File::Basename; +use File::Path; + +event_link("mailsorting-cleanup", "user-delete", "65"); + +event_link("mailsorting-update-user", 'mailsorting-conf', "20"); +event_link("qmail-update-user", 'mailsorting-conf', "30"); + +event_link("mailsorting-update-user", "email-update-quick", "20"); +event_link("mailsorting-update-user", "email-update", "20"); +event_link("mailsorting-update-user", "user-create", "60"); +event_link("mailsorting-update-user", "user-modify", "60"); +event_link("mailsorting-update-user", "bootstrap-console-save", "60"); + +my $event="smeserver-mailsorting-update"; +event_link("mailsorting-update-user", $event, "20"); +event_link("qmail-update-user", $event, "30"); + diff --git a/root/etc/cron.weekly/mailsorting b/root/etc/cron.weekly/mailsorting new file mode 100644 index 0000000..8f30dc4 --- /dev/null +++ b/root/etc/cron.weekly/mailsorting @@ -0,0 +1,59 @@ +#!/usr/bin/perl -w + +#---------------------------------------------------------------------- +# Author: stephen noble dungog.net +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +#---------------------------------------------------------------------- + +package esmith; + +use strict; +use Errno; +use esmith::config; +use esmith::util; +use esmith::db; + +my %conf; +tie %conf, 'esmith::config'; + +my %accounts; +tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + #get list of users + my @userAccounts = (); + foreach (keys %accounts) + { + push (@userAccounts, $_) + if (db_get_type(\%accounts, $_) eq "user" || $_ eq "admin"); + } + + #for each user + my $userName = ''; + foreach $userName (sort @userAccounts) + { + my $path = ($userName eq 'admin')? "/home/e-smith":"/home/e-smith/files/users/$userName"; + + foreach ('procmail','mailfilter') + { + if (-f "$path/$_.log.2") + { + unlink("$path/$_.log.2"); + } + + if (-f "$path/$_.log.1") + { + system("/bin/mv $path/$_.log.1 $path/$_.log.2"); + } + + if (-f "$path/$_.log") + { + system("/bin/mv $path/$_.log $path/$_.log.1"); + } + } + } + +exit (0); diff --git a/root/etc/e-smith/events/actions/mailsorting-cleanup b/root/etc/e-smith/events/actions/mailsorting-cleanup new file mode 100644 index 0000000..72317da --- /dev/null +++ b/root/etc/e-smith/events/actions/mailsorting-cleanup @@ -0,0 +1,41 @@ +#!/usr/bin/perl -w + +#---------------------------------------------------------------------- +# copyright (C) 1999-2001 e-smith, inc. +# +# Author: Stephen Noble +# Contributor: Darrell May +# +#---------------------------------------------------------------------- + +package esmith; + +use strict; +use Errno; +use esmith::config; +use esmith::util; +use esmith::db; + +my %processmail; +tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + +my $event = $ARGV [0]; +my $userName = $ARGV [1]; +die "Username argument missing." unless defined ($userName); + + db_delete(\%processmail, $userName); + + #get all users rules + my @userRules = (); + foreach (sort keys %processmail) + { + push (@userRules, $_) + if (db_get_type(\%processmail, $_) eq "$userName"); + } + + foreach (sort @userRules) + { + db_delete(\%processmail, $_); + } + +exit (0); diff --git a/root/etc/e-smith/events/actions/mailsorting-update-user b/root/etc/e-smith/events/actions/mailsorting-update-user new file mode 100644 index 0000000..18537c0 --- /dev/null +++ b/root/etc/e-smith/events/actions/mailsorting-update-user @@ -0,0 +1,90 @@ +#!/usr/bin/perl -w + +#---------------------------------------------------------------------- +# copyright (C) 1999-2005 Mitel Networks Corporation +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +#---------------------------------------------------------------------- + +package esmith; + +use strict; +use Errno; +use esmith::ConfigDB; +use esmith::AccountsDB; +use esmith::templates; + +my $accountsdb = esmith::AccountsDB->open_ro or + die "Could not open accounts db\n"; + +my $event = shift; +my $userName = shift; +my @users; + +if (defined $userName) +{ + my $user = $accountsdb->get($userName); + die + "Account $userName is not a user account; update mailsorting failed.\n" + unless ($user && $user->prop('type') eq "user" || $userName eq "admin"); + @users = ($user); + my $geekmode = $user->prop('geekmode') || 'disabled'; + if($geekmode eq "enabled"){ + print "User $userName in geek mode, do not update mailfilter and procmail rules.\n"; + exit; + } +} +else +{ + @users = ( $accountsdb->users ); + push(@users, $accountsdb->get('admin')); +} + +foreach my $userName (@users) +{ + $userName = $userName->key; + my $geekmode = $accountsdb->get_prop ($userName,'geekmode') || 'disabled'; + if ( $geekmode eq "enabled" ) + { + print "User $userName in geek mode, do not update mailfilter and procmail rules.\n"; + next; + } + + for my $dotfile ( qw(.procmailrc .mailfilter) ) + { + my $pathtohome = ($userName eq 'admin')? "/home/e-smith":"/home/e-smith/files/users/$userName"; + + esmith::templates::processTemplate ( + { + MORE_DATA => + { + USERNAME => $userName , + }, + TEMPLATE_PATH => "/$dotfile", + TEMPLATE_EXPAND_QUEUE => + [ + "/etc/e-smith/templates-user-custom", + "/etc/e-smith/templates-user", + ], + OUTPUT_PREFIX => $pathtohome, + UID => $userName, + GID => $userName, + PERMS => 0600, + } ); + }; +} + +exit (0); diff --git a/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..c436b9c --- /dev/null +++ b/root/etc/e-smith/locale/bg/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Обработка на поща + + + configure your email sorting + настройка на сортирането на поща + + + FORM_TITLE + Правила за сортиране на поща + + + FORM_DESCRIPTION + Правилата се изпълняват при пристигането на поща във Вашата кутия на сървъра и не зависят от пощенския клиент. Текущите Ви правила, ако имате такива са показани тук. + + + ADD_RULE + Добави ново правило ]]> + + + CURRENT_RULES + Текущи правила + + + REMOVE_DESCRIPTION + Ще премахнете правило + + + ERROR_UPDATING + Грешка при обновяване + + + CREATE_RULE_DESCRIPTION + Изберете част от съобщението за проверка. Можете да проверявате спрямо ел. адрес, заглавната част, относно-то, или размера на съобщението. Размерите са в байтове. Изтрийте, сортирайте или препратете при съвпадение. Второто съвпадение е по желание, но ако се използва тогава и двете проверки трябва да са изпълнени. + + + MODIFY_RULE_DESCRIPTION + Промяна на правило.

Можете да промените реда в който правилата се обработват като промените числото в полето за ред на изпълнение. Приоритета се определя от ASCII стойността, и трябва да е уникален. например, правило user101 се изпълнява първо, след което user5 и тогава user99

]]>
+
+ + BASIS + Проверка спрямо + + + 2ND_BASIS + 2-ра проверка + + + CRITERION + Правило + + + 2ND_CRITERION + 2-ро правило + + + DELIVER + ел. адрес (ако се препраща) + + + EMAIL + ел. адрес (ако се препраща) + + + FOLDER + Папка (ако се сортира) + + + COPY_TO + Преп + + + COPY + Копиране + + + 2ND_ACTION + 2-ро действие + + + SORT + Сортирай в папка с поща + + + FORWARD + Препращане на писмо + + + DELETE + Изтриване на писмо + + + INBOX + Прати в папката Входящи + + + PRIORITY + Последователност на изпълнение на правилата + + + Subject + Относно + + + TO_ + До + + + From + От + + + headers + Заглавна част на писмо + + + sizegt + Размер по-голям от + + + sizelt + Размер по-малък от + + + ERROR_FORWARD_NO_EMAIL + Грешка: Изисква папка за да сортира в нея или ел. адрес за да препрати към + + + NO_RULES + Нямате никакви правила + + + FILTERTYPE_DISABLED + Сортирането на пощата беше изключена, моля, обърнете с към администратора. + + + USER_DISABLED + Сортирането на поща беше изключено за този потребител, моля, обърнете се към администратора. + +
diff --git a/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..046ab61 --- /dev/null +++ b/root/etc/e-smith/locale/da/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Behandl post + + + configure your email sorting + opsæt din postsortering + + + FORM_TITLE + Postsorteringsregler + + + FORM_DESCRIPTION + Regler udføres når e-post ankommer i din postkasse på serveren, og er uafhængig af din e-postklient. Dine nuværende regler, hvis du har nogen, er listet nedenfor. + + + ADD_RULE + tilføj ny regel ]]> + + + CURRENT_RULES + Nuværende regler + + + REMOVE_DESCRIPTION + Du er ved at fjerne en regel + + + ERROR_UPDATING + Fejl ved opdatering + + + CREATE_RULE_DESCRIPTION + Vælg del af mailen til test. Du kan matche mellem dele af en emailadresse, overskrift, emne eller størrelsen af email. Størrelse angive i bytes. Slet, sorter eller videresend alle der matcher. Den anden match er valgfri. og hvis den bruges skal begge regler matche. + + + MODIFY_RULE_DESCRIPTION + Ændre din regel.

Du kan ændre den rækkefølge reglerne udføres i ,ved at ændre talværdien for sorteringrækkefølgen. Prioriteten er bestemt af ascii værdien, og skal være entydig, det vil sige regel bruger101 kommer først, dernæst bruger5 så bruger99

]]>
+
+ + BASIS + Sammenlign med + + + 2ND_BASIS + Anden match + + + CRITERION + Regel + + + 2ND_CRITERION + Anden regel + + + DELIVER + email adresse (hvis videresend) + + + EMAIL + email adresse (hvis videresend) + + + FOLDER + Mappe (hvis sortering) + + + COPY_TO + VS + + + COPY + Kopier + + + 2ND_ACTION + Anden handling + + + SORT + Sorter til postmappe + + + FORWARD + Videresend email + + + DELETE + Slet email + + + INBOX + Send til min indbakke + + + PRIORITY + Rækkefølge for eksekvering af regler + + + Subject + Emne + + + TO_ + Til + + + From + Fra + + + headers + Email overskrift + + + sizegt + Størrelse større end + + + sizelt + Størrelse mindre end + + + ERROR_FORWARD_NO_EMAIL + Fejl: Kræver en mappe at kunne sortere til, eller en e-post adresse at videresende til + + + NO_RULES + Du har ikke defineret nogen regler + + + FILTERTYPE_DISABLED + Sortering af mail er deaktiveret, kontakt din administrator. + + + USER_DISABLED + Sortering af mail er deaktiveret for denne bruger, kontakt din administrator. + +
diff --git a/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..e016c4d --- /dev/null +++ b/root/etc/e-smith/locale/de/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Prozessiere E-Mail + + + configure your email sorting + E-Mail-Verteilung konfigurieren + + + FORM_TITLE + E-Mail Verteilungsregeln + + + FORM_DESCRIPTION + Regeln werden ausgeführt, wenn E-Mail in Ihrem Posteingang auf dem Server eintrifft, diese Regeln sind unabhängig von Ihrem E-Mail-Client. Ihre Regeln sind unten aufgeführt, sofern welche angelegt wurden. + + + ADD_RULE + Neue Regel hinzufügen ]]> + + + CURRENT_RULES + Aktuelle Regeln + + + REMOVE_DESCRIPTION + Sie sind dabei, eine Regel zu löschen + + + ERROR_UPDATING + Fehler beim Aktualisieren + + + CREATE_RULE_DESCRIPTION + Geben Sie an, welcher Teil der E-Mail analysiert werden soll. Dabei können Sie zwischen Teil der E-Mail-Adresse, Kopfzeile, Betreff oder der Größe der E-Mail wählen. Die Größe wird in Bytes angegeben und kann anhand der E-Mail Logdateien verfolgt werden. Gefundene Treffer können gelöscht, verschoben oder weitergeleitet werden. Eine zweite Analyse ist optional. Wenn Sie eingesetzt wird, müssen beide Regeln für das Ausführen einer Aktion erfüllt sein. + + + MODIFY_RULE_DESCRIPTION + Ändern Sie die Regelung.

Die Reihenfolge, nach der die Regeln abgearbeitet werden, können Sie ändern, wenn Sie den Wert für die Startreihenfolge der Regeln verändern. Die Priorität folgt eindeutigen Eingaben im ascii-Modus, z.B.: zuerst Regel Benutzer101, dann Benutzer5, dann Benutzer99

]]>
+
+ + BASIS + 1. Analyse von + + + 2ND_BASIS + 2. Analyse von + + + CRITERION + 1. Suchtext + + + 2ND_CRITERION + 2. Suchtext + + + DELIVER + E-Mail Adresse (bei Weiterleitung) + + + EMAIL + E-Mail Adresse (bei Weiterleitung) + + + FOLDER + Ordner (bei Verteilung) + + + COPY_TO + Weiterleiten + + + COPY + Kopieren + + + 2ND_ACTION + zweite Aktion + + + SORT + In Mailordner verschieben + + + FORWARD + E-Mail weiterleiten + + + DELETE + E-Mail löschen + + + INBOX + In meinen Posteingang senden + + + PRIORITY + Reihenfolge der Regelausführung + + + Subject + Betreff + + + TO_ + An + + + From + Von + + + headers + E-Mail Kopfzeile + + + sizegt + Größe größer als + + + sizelt + Größe weniger als + + + ERROR_FORWARD_NO_EMAIL + Fehler: Es ist ein Zielverzeichnis für die Sortierung erforderlich oder eine E-Mail Adresse an die weitergeleitet werden soll + + + NO_RULES + Sie haben keine Regeln definiert + + + FILTERTYPE_DISABLED + Die E-Mail-Verteilung wurde auf diesem Server deaktiviert, wenden Sie sich bitte an Ihren Administrator. + + + USER_DISABLED + Die E-Mail-Verteilung wurde für diesen Benutzer deaktiviert, wenden Sie sich bitte an Ihren Administrator. + +
diff --git a/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..e3a3d17 --- /dev/null +++ b/root/etc/e-smith/locale/el/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + διεύθυνση email + + + EMAIL + διεύθυνση email + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Αντιγραφή + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Subject + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..4ba11eb --- /dev/null +++ b/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,163 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, + and are independent of your email client. + Your current rules, if you have any are listed below. + + + + ADD_RULE + + Add new rule + ]]> + + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against + part of an email address, header, subject, or the email size. + Size is in bytes. Delete, sort or Forward any matches. + The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + + Modify your rule. +

+ You can change the order in which rules are evaluated by altering the numeric value + in order of rule execution. + Priority is determined by ascii value, and must be unique. + eg rule user101 goes first, then user5 then user99 +

+ ]]> +
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + email address (if forwarding) + + + EMAIL + email address (if forwarding) + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Copy + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Subject + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..387181a --- /dev/null +++ b/root/etc/e-smith/locale/es/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Procesar Email + + + configure your email sorting + configurar procesaminto de su email + + + FORM_TITLE + Reglas de procesamiento de correo + + + FORM_DESCRIPTION + Las reglas son ejecutadas cuando un email llega a su casilla en el servidor, y es independiente de su cliente de correo. Si ya tiene reglas definidas, las mismas son mostradas debajo. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Reglas actuales + + + REMOVE_DESCRIPTION + Esta a punto de eliminar una regla + + + ERROR_UPDATING + Error en la actualización + + + CREATE_RULE_DESCRIPTION + Seleccione el elemento del email para hacer coincidir. Puede hacer coincidir una parte de la dirección de email, cabecera, asunto, o tamaño. El tamaño es en bytes. Elimine, Ordene o Redireccione cualquier coincidencia. La segunda coincidencia es opcional, pero si la utiliza, deben coincidir ambas reglas. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Elemento + + + 2ND_BASIS + 2º Elemento + + + CRITERION + Regla + + + 2ND_CRITERION + 2º regla + + + DELIVER + dirección de correo electrónico + + + EMAIL + dirección de correo electrónico + + + FOLDER + Folder (if sorting) + + + COPY_TO + Redirigir + + + COPY + Copiar + + + 2ND_ACTION + 2º Acción + + + SORT + Enviar a carpeta de email + + + FORWARD + Redirigir email + + + DELETE + Eliminar email + + + INBOX + Enviar a mi bandeja de entrada + + + PRIORITY + Orden de ejecución + + + Subject + Asunto + + + TO_ + Destinatario + + + From + Remitente + + + headers + Cabeceras + + + sizegt + Tamaño mayor que + + + sizelt + Tamaño menor que + + + ERROR_FORWARD_NO_EMAIL + Error: Se requiere una carpeta para ordenar en la misma o una dirección de email para reenviar + + + NO_RULES + No tiene reglas definidas + + + FILTERTYPE_DISABLED + El procesamiento de correo en este servidor ha sido deshabilitado, contacte con el administrador. + + + USER_DISABLED + El procesamiento de correo para este usuario ha sido deshabilitado, contacte al administrador. + +
diff --git a/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..8de5730 --- /dev/null +++ b/root/etc/e-smith/locale/et/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + Seadista oma e-posti filtreerimist + + + FORM_TITLE + E-posti sorteerimise reeglid + + + FORM_DESCRIPTION + Reeglid rakendatakse kui saabub email sinu meilboxi ja on sõltumatu sinu emaili kliendist. Sinu olemasolevad reeglid on näidatud allpool. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Olemasolevad reeglid + + + REMOVE_DESCRIPTION + Soovid reeglit kustutada + + + ERROR_UPDATING + Uuendamisel ilmnes viga + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + Reegel + + + 2ND_CRITERION + 2 reegel + + + DELIVER + e-maili aadress + + + EMAIL + e-maili aadress + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Kopeeri + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Edasta e-posti + + + DELETE + Kustuta e-posti + + + INBOX + Saada minu inbox-i + + + PRIORITY + Reeglite käivitamise järjekord + + + Subject + Teema + + + TO_ + Kellele + + + From + Kellelt + + + headers + E-posti päised + + + sizegt + Suurem kui + + + sizelt + Väiksem kui + + + ERROR_FORWARD_NO_EMAIL + Viga: Requires a folder to sort to or email address to forward to + + + NO_RULES + Sul pole reegleid lisatud + + + FILTERTYPE_DISABLED + E-posti sorteerimine selles serveris on keelatud, kontakteeru oma administraatoriga. + + + USER_DISABLED + E-posti sorteerimine sellel kasutajal on keelatud, kontakteeru oma administraatoriga. + +
diff --git a/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..5d1c347 --- /dev/null +++ b/root/etc/e-smith/locale/fr/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Traiter le courrier + + + configure your email sorting + Configurer le tri de vos courriels + + + FORM_TITLE + Règles de tri des courriels + + + FORM_DESCRIPTION + Les règles sont exécutées au fur et à mesure que les emails arrivent dans votre boite email sur le serveur, et sont indépendantes de votre client de messagerie. Vos règles en cours d'utilisation sont affichées ci-dessous (si vous en avez créé). + + + ADD_RULE + Ajouter une nouvelle règle ]]> + + + CURRENT_RULES + Règles en cours d'utilisation + + + REMOVE_DESCRIPTION + Vous êtes sur le point de supprimer une règle + + + ERROR_UPDATING + Erreur pendant la mise à jour + + + CREATE_RULE_DESCRIPTION + Sélectionnez la partie de l'email que vous voulez tester. Vous pouvez rechercher tout ou partie d'une adresse email, entête, sujet, ou taille de l'email. La taille est en octets. Supprimez, triez, transmettez toutes concordances. La seconde concordance est facultative, mais si elle est utilisée, les 2 règles doivent concorder. + + + MODIFY_RULE_DESCRIPTION + Modifiez votre règle.

Vous pouvez changer l'ordre d'exécution des règles en modifiant la valeur numérique dans l'Ordre d'exécution. La priorité est déterminée par une valeur ASCII et doit être unique. exemple : la règle user101 sera prioritaire sur user5 et user99 car 1<5<9

]]>
+
+ + BASIS + Concordance + + + 2ND_BASIS + 2ème concordance + + + CRITERION + Règle + + + 2ND_CRITERION + 2ème règle + + + DELIVER + adresse électronique (si transfert) + + + EMAIL + adresse électronique (si transfert) + + + FOLDER + Dossier (si déplacement) + + + COPY_TO + Tr + + + COPY + Copier + + + 2ND_ACTION + 2ème action + + + SORT + Déplacer l'email dans le dossier + + + FORWARD + Transférer l'email à + + + DELETE + Supprimer l'email + + + INBOX + Envoyer dans la Boîte de réception + + + PRIORITY + Ordre d'exécution + + + Subject + Sujet + + + TO_ + Destinataire + + + From + De + + + headers + Entêtes email + + + sizegt + Taille supérieure à + + + sizelt + Taille inférieure à + + + ERROR_FORWARD_NO_EMAIL + Erreur: Nécessite un dossier pour le tri ou une adresse email pour le transfert + + + NO_RULES + Vous n'avez aucunes règles définies + + + FILTERTYPE_DISABLED + Le tri d'email a été désactivé sur ce serveur, veuillez contacter votre administrateur. + + + USER_DISABLED + Le tri d'email pour cet utilisateur a été désactivé sur ce serveur, veuillez contacter votre administrateur. + +
diff --git a/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..196dd39 --- /dev/null +++ b/root/etc/e-smith/locale/he/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + email address (if forwarding) + + + EMAIL + email address (if forwarding) + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + העתקה + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Subject + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..6984ef0 --- /dev/null +++ b/root/etc/e-smith/locale/hu/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + e-mail cím + + + EMAIL + e-mail cím + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Másol + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Tárgy + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..e4be53a --- /dev/null +++ b/root/etc/e-smith/locale/id/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + Alamat IP tidak valid untuk DNS forwarder + + + EMAIL + Alamat IP tidak valid untuk DNS forwarder + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Salin + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Subject + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..bbcef17 --- /dev/null +++ b/root/etc/e-smith/locale/it/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Elaborazione Mail + + + configure your email sorting + configura l'ordinamento della posta + + + FORM_TITLE + Regole di ordinamento Email + + + FORM_DESCRIPTION + Le regole sono eseguite sul server all'arrivo di un messaggio e sono indipendenti dal client email usato. Le tue regole, se ce ne sono, sono elencate sotto. + + + ADD_RULE + Aggiungi una nuova regola ]]> + + + CURRENT_RULES + Regole correnti + + + REMOVE_DESCRIPTION + Stai rimuovendo una regola + + + ERROR_UPDATING + Errore nell'aggiornamento + + + CREATE_RULE_DESCRIPTION + Selezionare la parte di messaggio da controllare. Si può utilizzare per il confronto parte del messaggio, l'intestazione, l'oggetto o la dimensione del messaggio. Dimensione in bytes. Cancella, ordina o inoltra ciascuna delle corrispondenzei. La seconda corrisponenza è facoltativa, ma se utilizzata entrambe le condizioni devono essere soddisfatte. + + + MODIFY_RULE_DESCRIPTION + Modifica la regola.

è possibile cambiare l'ordine con il quale le regole vengono eseguite modificando il valore numerito relativo. La priorità è determinata in base ai valori ascii e ogni valore deve essere univoco. Per esempio, la regola user101 sarà eseguita per prima, seguita da user5 e quindi user99

]]>
+
+ + BASIS + Confronta con + + + 2ND_BASIS + Seconda corrispondenza + + + CRITERION + Regola + + + 2ND_CRITERION + Seconda regola + + + DELIVER + Indirizzo e-mail (in caso di inoltro) + + + EMAIL + Indirizzo e-mail (in caso di inoltro) + + + FOLDER + Cartella (in caso di ordinamento) + + + COPY_TO + Inoltra + + + COPY + Copia + + + 2ND_ACTION + Seconda azione + + + SORT + Smista nella cartella + + + FORWARD + Inoltra mail + + + DELETE + Elimina mail + + + INBOX + Invia nella mia Posta in arrivo + + + PRIORITY + Ordine di esecuzione delle regole + + + Subject + Oggetto + + + TO_ + A + + + From + Da + + + headers + Headers email + + + sizegt + Dimensione maggiore di + + + sizelt + Dimensione minore di + + + ERROR_FORWARD_NO_EMAIL + Errore: è necessaria una cartella di destinazione o un indirizzo di destinazione + + + NO_RULES + Non ci sono regole definite + + + FILTERTYPE_DISABLED + Lo smistamento posta su questo server è stato disattivato, si prega di contattare l'amministratore. + + + USER_DISABLED + Lo smistamento posta per questo utente è stato disattivato, si prega di contattare l'amministratore. + +
diff --git a/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..e6cc608 --- /dev/null +++ b/root/etc/e-smith/locale/ja/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + メールアドレス + + + EMAIL + メールアドレス + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + コピー + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + 件名 + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..d3f2284 --- /dev/null +++ b/root/etc/e-smith/locale/nb/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + epostadresse + + + EMAIL + epostadresse + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Kopier + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Emne + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..13c6685 --- /dev/null +++ b/root/etc/e-smith/locale/nl/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Verwerk E-mail + + + configure your email sorting + instellen van uw e-mail sortering + + + FORM_TITLE + E-mail sorteer regels + + + FORM_DESCRIPTION + Regels worden uitgevoerd als de e-mail arriveert in uw brievenbus op de server en is onafhankelijk van uw e-mail client software. Uw huidige regels, als u die hebt, worden hieronder weergegeven. + + + ADD_RULE + Nieuwe regel toevoegen ]]> + + + CURRENT_RULES + Huidige regels + + + REMOVE_DESCRIPTION + U gaat een regel verwijderen + + + ERROR_UPDATING + Fout bij wijzigen + + + CREATE_RULE_DESCRIPTION + Kies het deel van de e-mail om getest te worden. U kunt vergelijken met een deel van het e-mail adres, berichtkop, onderwerp of de omvang. De omvang is in bytes. Verwijder, sorteer of doorsturen bij elke overeenkomst. De tweede vergelijking is optioneel maar als beide regels worden gebruikt moeten ze ook overeenkomen. + + + MODIFY_RULE_DESCRIPTION + Uw regel aanpassen.

U kunt de volgorde waarin de regels actief zijn en evalueren wijzigen door het nummer voor de regel te veranderen. Prioriteit is bepaald door de ascii waarde en moet uniek zijn. Bijvoorbeeld regel user101 gaat eerst, dan user5 en dan user99

]]>
+
+ + BASIS + Vergelijk met + + + 2ND_BASIS + 2e Vergelijking + + + CRITERION + De regel + + + 2ND_CRITERION + 2e regel + + + DELIVER + e-mailadres (in geval van doorsturen) + + + EMAIL + e-mailadres (in geval van doorsturen) + + + FOLDER + Map (in geval van sorteren) + + + COPY_TO + Ds + + + COPY + Kopie + + + 2ND_ACTION + 2e Actie + + + SORT + Sorteer naar e-mail map + + + FORWARD + Stuur e-mail door + + + DELETE + Verwijder e-mail + + + INBOX + Stuur naar mijn postvak in + + + PRIORITY + Volgorde van regel uitvoering + + + Subject + Onderwerp + + + TO_ + Aan + + + From + Van + + + headers + E-mail berichtkoppen + + + sizegt + Omvang meer dan + + + sizelt + Omvang minder dan + + + ERROR_FORWARD_NO_EMAIL + Fout: Er is een map nodig om naar te sorteren of een e-mailadres om het bericht naar door te sturen + + + NO_RULES + U hebt geen regels gedefineerd + + + FILTERTYPE_DISABLED + E-mail sortering is op deze server uitgeschakeld, neem contact op met uw systeembeheerder. + + + USER_DISABLED + E-mail sortering is voor deze gebruiker uitgeschakeld, neem contact op met uw systeembeheerder. + +
diff --git a/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..b07ffd3 --- /dev/null +++ b/root/etc/e-smith/locale/pl/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + adres e-mail + + + EMAIL + adres e-mail + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Kopiuj + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Temat + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..9b20c54 --- /dev/null +++ b/root/etc/e-smith/locale/pt-br/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Processamento de e-mail + + + configure your email sorting + configure a ordenação do seu e-mail + + + FORM_TITLE + Regras de ordenação do e-mail + + + FORM_DESCRIPTION + Regras são executadas quando o e-mail chega em sua caixa postal no servidor, e são independentes do seu cliente de e-mail. Suas regras atuais, se você tiver alguma, estão listadas abaixo. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Regras atuais + + + REMOVE_DESCRIPTION + Você está para remover uma regra + + + ERROR_UPDATING + Erro atualizando + + + CREATE_RULE_DESCRIPTION + Selecione a parte do e-mail a ser testada. Você pode testar contra uma parte do endereço de e-mail, cabeçalho, assunto ou o tamanho do e-mail. Tamanho é em bytes. Apagar, ordenar ou encaminhar qualquer ocorrencia. A segunda ocorrencia é opcional, mas se usada ambas as regras devem validar. + + + MODIFY_RULE_DESCRIPTION + Modificar sua regra.

Você pode mudar a ordem em que as regras são avalidadas alterando o valor numérico da ordem de execução da regra. A prioridade é determinada por um valor ASCII e deve ser única. Exemplo: regra usuario101 vem primeiro, depois usuario5 e só após usuario99

]]>
+
+ + BASIS + Comparar contra + + + 2ND_BASIS + Segunda comparação + + + CRITERION + A regra + + + 2ND_CRITERION + Segunda regra + + + DELIVER + Endereço de e-mail (se encaminhando) + + + EMAIL + Endereço de e-mail (se encaminhando) + + + FOLDER + Pasta (se ordenando) + + + COPY_TO + Fwd + + + COPY + Copiar + + + 2ND_ACTION + Segunda ação + + + SORT + Ordenar para pasta de e-mail + + + FORWARD + Encaminhar e-mail + + + DELETE + Apagar e-mail + + + INBOX + Enviar para minha Inbox + + + PRIORITY + Ordem de execução da regra + + + Subject + Assunto + + + TO_ + Para + + + From + De + + + headers + Cabeçalhos de e-mail + + + sizegt + Tamanho maior que + + + sizelt + Tamanho menor que + + + ERROR_FORWARD_NO_EMAIL + Erro: precisa de uma pasta como destino para ordenação ou de um endereço de e-mail para encaminhar + + + NO_RULES + Você não tem regras definidas + + + FILTERTYPE_DISABLED + Ordenação de e-mail neste servidor foi desabilitado, por favor contacte seu administrador. + + + USER_DISABLED + Ordenação de e-mail para este usuário foi desabilitado, por favor contacte seu administrador. + +
diff --git a/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..035e30c --- /dev/null +++ b/root/etc/e-smith/locale/pt/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Processamento de e-mail + + + configure your email sorting + configure a ordenação do seu e-mail + + + FORM_TITLE + Regras de ordenação do e-mail + + + FORM_DESCRIPTION + Regras são executadas quando o e-mail chega em sua caixa postal no servidor, e são independentes do seu cliente de e-mail. Suas regras atuais, se você tiver alguma, estão listadas abaixo. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Regras atuais + + + REMOVE_DESCRIPTION + Você está para remover uma regra + + + ERROR_UPDATING + Erro atualizando + + + CREATE_RULE_DESCRIPTION + Selecione a parte do e-mail a ser testada. Você pode testar contra uma parte do endereço de e-mail, cabeçalho, assunto ou o tamanho do e-mail. Tamanho é em bytes. Apagar, ordenar ou encaminhar qualquer ocorrencia. A segunda ocorrencia é opcional, mas se usada ambas as regras devem validar. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Comparar contra + + + 2ND_BASIS + Segunda comparação + + + CRITERION + A regra + + + 2ND_CRITERION + Segunda regra + + + DELIVER + endereço de e-mail + + + EMAIL + endereço de e-mail + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Copiar + + + 2ND_ACTION + Segunda ação + + + SORT + Ordenar para pasta de e-mail + + + FORWARD + Encaminhar e-mail + + + DELETE + Apagar e-mail + + + INBOX + Enviar para minha Inbox + + + PRIORITY + Ordem de execução da regra + + + Subject + Assunto + + + TO_ + Para + + + From + De + + + headers + Cabeçalhos de e-mail + + + sizegt + Tamanho maior que + + + sizelt + Tamanho menor que + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + Você não tem regras definidas + + + FILTERTYPE_DISABLED + Ordenação de e-mail neste servidor foi desabilitado, por favor contacte seu administrador. + + + USER_DISABLED + Ordenação de e-mail para este usuário foi desabilitado, por favor contacte seu administrador. + +
diff --git a/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..47c36e1 --- /dev/null +++ b/root/etc/e-smith/locale/ro/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Procesează mailurile + + + configure your email sorting + configurează sortarea emailurilor + + + FORM_TITLE + Reguli de sortare mail + + + FORM_DESCRIPTION + Regulile sunt executate pe măsura sosirii emailurilor pe server și sunt independente de clientul de mail.Regulile curente sunt listate mai jos (dacă există) + + + ADD_RULE + Adaugă regulă nouă ]]> + + + CURRENT_RULES + Reguli curente + + + REMOVE_DESCRIPTION + Sunteți pe cale să ștergeți o regulă + + + ERROR_UPDATING + Eroare de actualizare + + + CREATE_RULE_DESCRIPTION + Selectați partea de mail ce trebuie testată.Puteți verifica contra unei părți din mail, antet, subiect, dimensiune. Dimensiunea este in octeți. Șterge, sortează sau retransmite în caz de potrivire. Potrivirea secundară este opțională, dar dacă există regulile trebuie să se potrivească împreună. + + + MODIFY_RULE_DESCRIPTION + Modifică regula.

Puteți schimba ordinea în care regulile sunt evaluate prin modificarea valuorii numerice in ordinea dorită de execuție. Prioritatea e determinată de valuarea ascii și trebuie să fie unică. De ex.regula user101 este prima, apoi user5 urmată de user99

]]>
+
+ + BASIS + Confuntă cu + + + 2ND_BASIS + Potrivre secundară + + + CRITERION + Regula + + + 2ND_CRITERION + Regula secundară + + + DELIVER + adresă e-mail + + + EMAIL + adresă e-mail + + + FOLDER + Folder (if sorting) + + + COPY_TO + Trimite + + + COPY + Copiază + + + 2ND_ACTION + Acțiune secundară + + + SORT + Sortează în directorul + + + FORWARD + Retrimite email + + + DELETE + Șterge email + + + INBOX + Trimite în căsuța de recepție + + + PRIORITY + Ordine de execuție reguli + + + Subject + Subiect + + + TO_ + Către + + + From + De la + + + headers + Antete email + + + sizegt + Dimensiune mai mare de + + + sizelt + Dimensiune mai mică de + + + ERROR_FORWARD_NO_EMAIL + Eroare: Este necesar un director destinație sau o adresă destinație pentru sortare + + + NO_RULES + Nu sunt reguli definite + + + FILTERTYPE_DISABLED + Sortarea mailurilor pe acest server a fost oprită, contactați administratorul. + + + USER_DISABLED + Sortarea mailurilor pentru acest utilizator a fost oprită, contactați administratorul. + +
diff --git a/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..de0f753 --- /dev/null +++ b/root/etc/e-smith/locale/ru/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Обработать почту + + + configure your email sorting + настроить сортировку вашей почты + + + FORM_TITLE + Правила сортировки почты + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Текущие правила + + + REMOVE_DESCRIPTION + Вы собираетесь удалить правило + + + ERROR_UPDATING + Ошибка обновления + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Не совпадает + + + 2ND_BASIS + 2-е совпадение + + + CRITERION + Правило + + + 2ND_CRITERION + 2-е правило + + + DELIVER + адрес электронной почты + + + EMAIL + адрес электронной почты + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Копировать + + + 2ND_ACTION + 2-е действие + + + SORT + Сортировать в папку почты + + + FORWARD + Переслать письмо + + + DELETE + Удалить письмо + + + INBOX + Отправить в мои входящие + + + PRIORITY + Порядок применения правил + + + Subject + Тема + + + TO_ + Кому + + + From + От + + + headers + Заголовки письма + + + sizegt + Размер более чем + + + sizelt + Размер менее чем + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + Вы не определили правила + + + FILTERTYPE_DISABLED + Сортировка почты была отключена на этом сервере, пожалуйста, обратитесь к администратору. + + + USER_DISABLED + Сортировка почты была отключена для этого пользователя, пожалуйста, обратитесь к администратору. + +
diff --git a/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..a7a3c6e --- /dev/null +++ b/root/etc/e-smith/locale/sl/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + e-poštni naslov + + + EMAIL + e-poštni naslov + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Kopiraj + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Subject + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..d7b7b9b --- /dev/null +++ b/root/etc/e-smith/locale/sv/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Behandla e-post + + + configure your email sorting + konfigurera din e-postsortering + + + FORM_TITLE + Sorteringsregler för e-post + + + FORM_DESCRIPTION + Reglerna exekveras när e-post anländer i din postlåda på servern och är ej knutna till din e-postklient. Dina nuvarande regler, om du har några, listas nedan. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Nuvarande regler + + + REMOVE_DESCRIPTION + Du håller på att ta bort en regel + + + ERROR_UPDATING + Fel vid uppdateringen + + + CREATE_RULE_DESCRIPTION + Välj vilken del av e-postmeddelandet som du vill matcha. Du kan matcha mellan del av e-postadressen, huvud, ämne eller e-poststorlek. Storlek i bytes. Radera, sortera eller vidarebefordra alla matchningar. Den andra matchningen är valfri men om den används måste båda reglerna matcha. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Matcha mot + + + 2ND_BASIS + 2:a matchningen + + + CRITERION + Regeln + + + 2ND_CRITERION + Andra regeln + + + DELIVER + e-postadress + + + EMAIL + e-postadress + + + FOLDER + Folder (if sorting) + + + COPY_TO + Vbf + + + COPY + Kopiera + + + 2ND_ACTION + 2:a åtgärden + + + SORT + Sortera till e-postfoldern + + + FORWARD + Vidarebefordra e-post + + + DELETE + Radera e-post + + + INBOX + Skicka till min inkorg + + + PRIORITY + Ordning på regelkörning + + + Subject + Ämne + + + TO_ + Till + + + From + Från + + + headers + E-posthuvuden + + + sizegt + Storlek större än + + + sizelt + Storlek mindre än + + + ERROR_FORWARD_NO_EMAIL + Fel: Det krävs en mapp att sortera till eller en e-postadress att skicka till + + + NO_RULES + Du har inga regler definierade + + + FILTERTYPE_DISABLED + E-postsortering på denna server har avaktiverats, kontakta din administratör. + + + USER_DISABLED + E-postsortering för denna användare har avaktiverats, kontakta din administratör. + +
diff --git a/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..cdb1deb --- /dev/null +++ b/root/etc/e-smith/locale/th/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + วิธีการจัดเรียงเมล์ + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + email address (if forwarding) + + + EMAIL + email address (if forwarding) + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + ลอก, คัดลอก, สำเนา + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + ส่งต่ออีเมล์ + + + DELETE + ลบอีเมล์ + + + INBOX + ส่งไปที่ inbox + + + PRIORITY + ลำดับการประมวลผล rule + + + Subject + เรื่อง + + + TO_ + ถึง + + + From + จาก + + + headers + เฮดเดอร์ของอีเมล์ + + + sizegt + ขนาดมากกว่า + + + sizelt + ขนาดน้อยกว่า + + + ERROR_FORWARD_NO_EMAIL + ผิดพลาด: ต้องระบุโฟล์เดอร์ปลายทาง หรือที่อยู่ส่งต่อ (forward) ปลายทาง + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + คุณสมบัติการจัดเรียงเมล์ของเซิฟเวอร์นี้ถูกปิดไว้ กรุณาติดต่อผู้ดูแลระบบ + + + USER_DISABLED + คุณสมบัติการจัดเรียงเมล์ของผู้ใช้นี้ถูกปิดไว้ กรุณาติดต่อผู้ดูแลระบบ + +
diff --git a/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..36947a5 --- /dev/null +++ b/root/etc/e-smith/locale/tr/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + Process Mail + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + Mail sorting rules + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + Add new rule ]]> + + + CURRENT_RULES + Current rules + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + Error updateing + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + Match against + + + 2ND_BASIS + 2nd Match + + + CRITERION + The rule + + + 2ND_CRITERION + 2nd rule + + + DELIVER + Eposta adresi + + + EMAIL + Eposta adresi + + + FOLDER + Folder (if sorting) + + + COPY_TO + Fwd + + + COPY + Kopyala + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + Forward email + + + DELETE + Delete email + + + INBOX + Send to my inbox + + + PRIORITY + Order of rule execution + + + Subject + Subject + + + TO_ + To + + + From + From + + + headers + Email Headers + + + sizegt + Size greater than + + + sizelt + Size less than + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + You have no rules defined + + + FILTERTYPE_DISABLED + Mail sorting on this server has been disabled, please contact your administrator. + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..e15c50d --- /dev/null +++ b/root/etc/e-smith/locale/zh-cn/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + 处理邮件 + + + configure your email sorting + configure your email sorting + + + FORM_TITLE + 邮件分类规则 + + + FORM_DESCRIPTION + Rules are executed as email arrives in your mailbox on the server, and are independent of your email client. Your current rules, if you have any are listed below. + + + ADD_RULE + 添加新规则 ]]> + + + CURRENT_RULES + 当前的规则 + + + REMOVE_DESCRIPTION + You are about to remove a rule + + + ERROR_UPDATING + 更新错误 + + + CREATE_RULE_DESCRIPTION + Select the part of the email to be tested. You can match against part of an email address, header, subject, or the email size. Size is in bytes. Delete, sort or Forward any matches. The second match is optional, but if used both rules must match. + + + MODIFY_RULE_DESCRIPTION + Modify your rule.

You can change the order in which rules are evaluated by altering the numeric value in order of rule execution. Priority is determined by ascii value, and must be unique. eg rule user101 goes first, then user5 then user99

]]>
+
+ + BASIS + 精确匹配 + + + 2ND_BASIS + 第二匹配 + + + CRITERION + 规则 + + + 2ND_CRITERION + 第二规则 + + + DELIVER + 电子邮件地址 + + + EMAIL + 电子邮件地址 + + + FOLDER + Folder (if sorting) + + + COPY_TO + 转发 + + + COPY + 抄送 + + + 2ND_ACTION + 2nd Action + + + SORT + Sort to mail folder + + + FORWARD + 转发邮件 + + + DELETE + 删除邮件 + + + INBOX + 发送到我的收件箱 + + + PRIORITY + 规则执行顺序 + + + Subject + 主题 + + + TO_ + 收件人 + + + From + 来自 + + + headers + 邮件头 + + + sizegt + size大于 + + + sizelt + size小于 + + + ERROR_FORWARD_NO_EMAIL + Error: Requires a folder to sort to or email address to forward to + + + NO_RULES + 您还没有定义规则 + + + FILTERTYPE_DISABLED + 邮件归类在服务器上被禁用,请联系管理员。 + + + USER_DISABLED + Mail sorting for this user has been disabled, please contact your administrator. + +
diff --git a/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..8121ad8 --- /dev/null +++ b/root/etc/e-smith/locale/zh-tw/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,142 @@ + + + Process Mail + 處理郵件 + + + configure your email sorting + 設定您電郵的排序 + + + FORM_TITLE + 郵件分類規則 + + + FORM_DESCRIPTION + 電郵到達您伺服器的郵箱時規則即執行,而且獨立於您電郵的客戶端。倘若您有列在下面,此為您當前的規則。 + + + ADD_RULE + 添加新規則]]> + + + CURRENT_RULES + 當前的規則 + + + REMOVE_DESCRIPTION + 您要刪除一個規則 + + + ERROR_UPDATING + 更新錯誤 + + + CREATE_RULE_DESCRIPTION + 請選擇部分電郵來測試。您可以選擇符應的部分電郵地址,標題,主題,或郵件大小。大小以位元為單位。刪除、排序或轉送任何符應的電郵。第二符應是選擇性的,但是若是使用,兩條規則都必須符應。 + + + MODIFY_RULE_DESCRIPTION + 改變您的規則。

透過改變規則執行順序中的數值,當規則評估後,您可改變次序。優先權取決於ascii值,而且必須唯一。例如:user101最先,user5其次,然後user99。

]]>
+
+ + BASIS + 專門符應 + + + 2ND_BASIS + 第二符應 + + + CRITERION + 規則 + + + 2ND_CRITERION + 第二規則 + + + DELIVER + 電郵地址 + + + EMAIL + 電郵地址 + + + FOLDER + Folder (if sorting) + + + COPY_TO + 轉送 + + + COPY + 複製 + + + 2ND_ACTION + 次動作 + + + SORT + 排序郵件夾 + + + FORWARD + 郵件轉送 + + + DELETE + 郵件刪除 + + + INBOX + 寄到我的收件箱 + + + PRIORITY + 執行規則的順序 + + + Subject + 主題 + + + TO_ + 寄給 + + + From + 來自於 + + + headers + 郵件表頭 + + + sizegt + 容量大於 + + + sizelt + 容量小於 + + + ERROR_FORWARD_NO_EMAIL + 錯誤:需要檔案夾來排序或電郵地址來轉送 + + + NO_RULES + 您尚未界定規則 + + + FILTERTYPE_DISABLED + 此伺服器已被禁用郵件排序,請聯絡您的管理人員。 + + + USER_DISABLED + 此使用者已被禁用郵件排序,請聯絡您的管理人員。 + +
diff --git a/root/etc/e-smith/templates-user/.mailfilter/00setup b/root/etc/e-smith/templates-user/.mailfilter/00setup new file mode 100644 index 0000000..163b5cf --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/00setup @@ -0,0 +1,35 @@ +{ + # vim: ft=perl: + + use esmith::AccountsDB; + use esmith::ConfigDB; + + our $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB"; + our $cdb = esmith::ConfigDB->open_ro or die "Couldn't open ConfigDB"; + + $user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB"; + %props = $user->props; + + our $zarafa1 = $props{zarafa} || 'disabled1'; + our $zarafa2 = ${'zarafa-server'}{GlobalForward} || 'disabled2'; + + # If Sieve is enabled for user, mails should be delivered through dovecot-lda + # rather than going directly to users Maildir. + + our $sievesupport = $cdb->get_prop('sieve','status') || 'disabled'; + our $sieveuser = $props{Sieve} || 'enabled'; + + if (($sieveuser eq 'enabled') && ($sievesupport eq 'enabled')) + { + our $finaldeliverymethod = 'to "| /usr/libexec/dovecot/deliver"'; + } + else + { + our $finaldeliverymethod = 'to Maildir'; + } + + our $EmailForward = $props{EmailForward} || ''; + our $ForwardAddress = $props{ForwardAddress} || ''; + + $OUT = ''; +} diff --git a/root/etc/e-smith/templates-user/.mailfilter/10header b/root/etc/e-smith/templates-user/.mailfilter/10header new file mode 100644 index 0000000..aeea5b5 --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/10header @@ -0,0 +1,9 @@ +# --------------------------------------- +# ~/.mailfilter +# --------------------------------------- + +DEFAULT=$HOME/Maildir/ +SENDMAIL="/var/qmail/bin/sendmail" +reformail="/usr/bin/reformail" +SHELL="/bin/bash" + diff --git a/root/etc/e-smith/templates-user/.mailfilter/15log b/root/etc/e-smith/templates-user/.mailfilter/15log new file mode 100644 index 0000000..26a285f --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/15log @@ -0,0 +1 @@ +logfile "mailfilter.log" diff --git a/root/etc/e-smith/templates-user/.mailfilter/25options b/root/etc/e-smith/templates-user/.mailfilter/25options new file mode 100644 index 0000000..84aaef0 --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/25options @@ -0,0 +1,45 @@ +{ + use esmith::config; + use esmith::db; + + my %accounts; + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + # get $USERNAME from esmith::config + die "Username criterion missing." unless defined ($USERNAME); + + my $type = db_get_type(\%accounts, $USERNAME); + + die + "Account $USERNAME is not a user account; " + . "update email forwarding failed.\n" + unless $type eq 'user' || $USERNAME eq 'admin'; + + my %processmail; + tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + + # keep backups + my $backup = db_get_prop(\%processmail, $USERNAME, "backup") || ''; + if ($backup eq 'yes') + { + $OUT .= "\n"; + $OUT .= "# ---- keep backups ----\n"; + $OUT .= "cc backup\n"; + $OUT .= "`cd backup/new && rm -f dummy \`ls -t | sed -e 1,50d\``\n"; + } + + ## delete duplicates + my $deldups = db_get_prop(\%processmail, $USERNAME, "deldups") || 'no'; + my $globaldeldups = db_get_prop(\%processmail, 'maildrop', "deldups") || 'no'; + if (($deldups eq 'yes') ||($globaldeldups eq 'yes')) + { + $OUT .= "\n"; + $OUT .= "# ----- delete duplicates ---\n"; + $OUT .= "`reformail -D 8000 duplicate.cache`\n"; + $OUT .= "if ( \$RETURNCODE == 0 )\n"; + $OUT .= "\{\n"; + $OUT .= "log \"--------- duplicate deleted -- \"\n"; + $OUT .= "exit\n"; + $OUT .= "\}\n"; + } +} diff --git a/root/etc/e-smith/templates-user/.mailfilter/35WordFilter b/root/etc/e-smith/templates-user/.mailfilter/35WordFilter new file mode 100644 index 0000000..a5f4977 --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/35WordFilter @@ -0,0 +1,44 @@ +{ + use esmith::config; + use esmith::db; + + my %processmail; + tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + + # word filter, unix text file with bad words to match + if ( -e "/opt/wordfilter") + { + my $WordFilter = db_get_prop(\%processmail, 'maildrop', "WordFilter") || 'no'; + + if ($WordFilter =~ /(junkmail|delete)/) + { + my $target; + my $targetlog; + + if ($WordFilter eq 'junkmail') + { + $targetlog = 'to junkmail'; + $target = 'to Maildir/.junkmail'; + } + elsif ($WordFilter eq 'delete') + { + $targetlog = 'delete'; + $target = 'exit'; + } + # bypass large email so we don't slow down server + # assume most offending emails are small + + $OUT .= "\n"; + $OUT .= "# ----- word filter ---\n"; + $OUT .= "if (\$SIZE < 5000 )\n"; + $OUT .= "\{\n"; + $OUT .= " if ( /.*/:b && lookup( \$MATCH, \"/opt/wordfilter\" ))\n"; + $OUT .= " \{\n"; + $OUT .= " log \"--------- word filter -- \"\n"; + $OUT .= " log \"--- ----- $targetlog -- \"\n"; + $OUT .= " $target \n"; + $OUT .= " \}\n"; + $OUT .= "\}\n"; + } + } +} \ No newline at end of file diff --git a/root/etc/e-smith/templates-user/.mailfilter/40global b/root/etc/e-smith/templates-user/.mailfilter/40global new file mode 100644 index 0000000..6bd4f1f --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/40global @@ -0,0 +1,164 @@ +{ + use esmith::config; + use esmith::db; + + my %conf; + tie %conf, 'esmith::config'; + + my %accounts; + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + die "Username missing." unless defined ($USERNAME); + + my $type = db_get_type(\%accounts, $USERNAME); + + die + "Account $USERNAME is not a user account; " + . "update email forwarding failed.\n" + unless $type eq 'user' || $USERNAME eq 'admin'; + + my %processmail; + tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + + # the syntax of imap folder names keeps changing + my $sep = '.'; + + #get Global rules + my @pmGlobRules = (); + foreach (sort keys %processmail) + { + push (@pmGlobRules, $_) + if (db_get_type(\%processmail, $_) eq 'pmGlobalRule'); + } + + #if they have rules add them to the templete + my $pmGlobRules = @pmGlobRules || '0'; + if ($pmGlobRules > 0) + { + $OUT .= "\n"; + $OUT .= "# ----start of Global rules--------\n"; + + my $pmGlobRule; + foreach $pmGlobRule (sort {$a <=> $b} @pmGlobRules) + { + my $basis = db_get_prop(\%processmail, $pmGlobRule, "basis") || ''; + my $criterion = db_get_prop(\%processmail, $pmGlobRule, "criterion") || ''; + my $basis2 = db_get_prop(\%processmail, $pmGlobRule, "basis2") || ''; + my $secondtest = db_get_prop(\%processmail, $pmGlobRule, "basis2") || ''; + my $criterion2 = db_get_prop(\%processmail, $pmGlobRule, "criterion2") || ''; + my $deliver = db_get_prop(\%processmail, $pmGlobRule, "deliver") || ''; + my $deliver2 = db_get_prop(\%processmail, $pmGlobRule, "deliver2") || ''; + my $copy = db_get_prop(\%processmail, $pmGlobRule, "copy") || ''; + my $action = db_get_prop(\%processmail, $pmGlobRule, "action") || ''; + my $action2 = db_get_prop(\%processmail, $pmGlobRule, "action2") || ''; + + ## headers include the basis in the criterion + if ($basis eq 'headers') + { + $basis = $criterion; + $criterion = ''; + } + + if ($basis2 eq 'headers') + { + $basis2 = $criterion2; + $criterion2 = ''; + } + + ## convert to procmail 'TO_' macro equivalent ?? + foreach ($basis, $basis2) + { + if ($_ eq 'TO_') + { + #$_ = '((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To)'; + $_ = '(To|Cc)'; + } + } + + ## construct the deliver line + if ($action eq 'sort') + { + # to a folder + $deliver1 = "to \"Maildir/"."$sep"."$deliver"."/\""; + } + elsif ($action eq 'forward') + { + # to an email + $deliver1 = "to "."\"!$deliver\""; + } + elsif ($action eq 'delete') + { + # delete it, report, and add a blank line + $deliver1 = "log \" --deleted --\" \n log \"\" \n exit"; + #$deliver1 = "log \"--- deleted --\" \n log \"From: $From \" \n log \"Subject: $Subject \" \n log \"\" \n exit"; + } + else + { + # freeform + $deliver1 = "$deliver"; + } + + ## construct the 2nd deliver line + if ($action2 eq 'sort') + { + # to a folder + $deliver2 = "\"Maildir/"."$sep"."$deliver2"."/\""; + } + elsif ($action2 eq 'forward') + { + # to an email + $deliver2 = "\"!$deliver2\""; + } + + $OUT .= "\n"; + if ($secondtest eq '') + { + if ($basis =~ /(>|<)/) + { + $OUT .= "if ( \$SIZE $basis $criterion )\n"; + } + else + { + $OUT .= "if ( /^"."$basis".".*$criterion/ )\n"; + } + $OUT .= "\{\n"; + $OUT .= "log \"--------- match user rule -- \"\n"; + $OUT .= "log \"--------- $basis $criterion -- \"\n"; + + } + #basis2 can't test on size + else + { + if ($basis =~ /(>|<)/) + { + $OUT .= "if (( \$SIZE $basis $criterion ) && ( /^"."$basis2".".*$criterion2/ ))\n"; + } + else + { + $OUT .= "if (( /^"."$basis".".*$criterion/) && (/^"."$basis2".".*$criterion2/ ))\n"; + } + $OUT .= "\{\n"; + $OUT .= "log \"--- match user rule ------------- \"\n"; + $OUT .= "log \"--- $basis $criterion & $basis2 $criterion2 -- \"\n"; + } + + if ($copy eq 'no') + { + $OUT .= "$deliver1\n"; + $OUT .= "\}\n"; + } + elsif ($copy eq 'yes' && $action2 eq 'inbox') + { + $OUT .= "cc Maildir\n"; + $OUT .= "$deliver1\n"; + $OUT .= "\}\n"; + } + else + { + $OUT .= "cc $deliver2\n"; + $OUT .= "$deliver1\n"; + $OUT .= "\}\n"; + } + }#foreach rule + }#if rules exist +} diff --git a/root/etc/e-smith/templates-user/.mailfilter/60user b/root/etc/e-smith/templates-user/.mailfilter/60user new file mode 100644 index 0000000..b3d8538 --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/60user @@ -0,0 +1,164 @@ +{ + use esmith::config; + use esmith::db; + + my %conf; + tie %conf, 'esmith::config'; + + my %accounts; + tie %accounts, 'esmith::config', '/home/e-smith/db/accounts'; + + die "Username criterion missing." unless defined ($USERNAME); + + my $type = db_get_type(\%accounts, $USERNAME); + + die + "Account $USERNAME is not a user account; " + . "update email forwarding failed.\n" + unless $type eq 'user' || $USERNAME eq 'admin'; + + my %processmail; + tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + + # the syntax of imap folder names keeps changing + my $sep = '.'; + + # get users rules + my @pmRules = (); + foreach (sort keys %processmail) + { + push (@pmRules, $_) + if (db_get_type(\%processmail, $_) eq $USERNAME); + } + + # if they have rules add them to the templete + my $pmRules = @pmRules || '0'; + if ($pmRules > 0) + { + $OUT .= "\n"; + $OUT .= "# ----- user rules ----\n"; + + my $pmRule; + foreach $pmRule (sort @pmRules) + { + my $basis = db_get_prop(\%processmail, $pmRule, "basis") || ''; + my $criterion = db_get_prop(\%processmail, $pmRule, "criterion") || ''; + my $basis2 = db_get_prop(\%processmail, $pmRule, "basis2") || ''; + my $secondtest = db_get_prop(\%processmail, $pmRule, "basis2") || ''; + my $criterion2 = db_get_prop(\%processmail, $pmRule, "criterion2") || ''; + my $deliver = db_get_prop(\%processmail, $pmRule, "deliver") || ''; + my $deliver1 = ''; + my $deliver2 = db_get_prop(\%processmail, $pmRule, "deliver2") || ''; + my $copy = db_get_prop(\%processmail, $pmRule, "copy") || ''; + my $action = db_get_prop(\%processmail, $pmRule, "action") || ''; + my $action2 = db_get_prop(\%processmail, $pmRule, "action2") || ''; + + ## headers include the basis in the criterion + if ($basis eq 'headers') + { + $basis = $criterion; + $criterion = ''; + } + + if ($basis2 eq 'headers') + { + $basis2 = $criterion2; + $criterion2 = ''; + } + + ## convert to procmail 'TO_' macro equivalent ?? + foreach ($basis, $basis2) + { + if ($_ eq 'TO_') + { + #$_ = '((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To)'; + $_ = '(To|Cc)'; + } + } + + ## construct the deliver line + if ($action eq 'sort') + { + # to a folder + $deliver1 = "to \"Maildir/"."$sep"."$deliver"."/\""; + } + elsif ($action eq 'forward') + { + # to an email + $deliver1 = "to "."\"!$deliver\""; + } + elsif ($action eq 'delete') + { + # delete it, report, and add a blank line + $deliver1 = "log \"--- $basis $criterion --deleted --\" \n log \"\" \n exit"; + } + else + { + # freeform + $deliver1 = "$deliver"; + } + + ## construct the 2nd deliver line + if ($action2 eq 'sort') + { + # to a folder + $deliver2 = "\"Maildir/"."$sep"."$deliver2"."/\""; + } + elsif ($action2 eq 'forward') + { + # to an email + $deliver2 = "\"!$deliver2\""; + } + + $OUT .= "\n"; + if ($secondtest eq '') + { + if ($basis =~ /(>|<)/) + { + $OUT .= "if ( \$SIZE $basis $criterion )\n"; + } + else + { + $OUT .= "if ( /^"."$basis".".*$criterion/ )\n"; + } + $OUT .= "\{\n"; + $OUT .= "log \"--------- match user rule -- \"\n"; + $OUT .= "log \"--------- $basis $criterion -- \"\n"; + + } + #basis2 can't test on size + else + { + if ($basis =~ /(>|<)/) + { + $OUT .= "if (( \$SIZE $basis $criterion ) && ( /^"."$basis2".".*$criterion2/ ))\n"; + } + else + { + $OUT .= "if (( /^"."$basis".".*$criterion/) && (/^"."$basis2".".*$criterion2/ ))\n"; + } + $OUT .= "\{\n"; + $OUT .= "log \"--- match user rule ------------- \"\n"; + $OUT .= "log \"--- $basis $criterion & $basis2 $criterion2 -- \"\n"; + } + + if ($copy eq 'no') + { + $OUT .= "$deliver1\n"; + $OUT .= "\}\n"; + } + elsif ($copy eq 'yes' && $action2 eq 'inbox') + { + $OUT .= "cc Maildir\n"; + $OUT .= "$deliver1\n"; + $OUT .= "\}\n"; + } + else + { + $OUT .= "cc $deliver2\n"; + $OUT .= "$deliver1\n"; + $OUT .= "\}\n"; + } + }#foreach rule + }#if rules exist +} diff --git a/root/etc/e-smith/templates-user/.mailfilter/90default b/root/etc/e-smith/templates-user/.mailfilter/90default new file mode 100644 index 0000000..3ea54a6 --- /dev/null +++ b/root/etc/e-smith/templates-user/.mailfilter/90default @@ -0,0 +1,36 @@ +{ + if ($qmail{FilterOrder}) + { + + # honour EmailForward + my $EmailForward = $props{EmailForward} || ''; + my $ForwardAddress = $props{ForwardAddress} || ''; + + if ($EmailForward eq 'forward') + { + $OUT .= "\n"; + $OUT .= "log \"--- forward mail ---------------- \"\n"; + $OUT .= "to \"!$ForwardAddress\""; + } + elsif ($EmailForward eq 'both') + { + $OUT .= "\n"; + $OUT .= "log \"--- to the inbox and forward ----- \"\n"; + $OUT .= "cc Maildir\n"; + $OUT .= "to \"!$ForwardAddress\""; + } + else + { + $OUT .= "\n"; + $OUT .= "log \"--- to the inbox ----------------- \"\n"; + $OUT .= "$finaldeliverymethod"; + } + + } + else + { + $OUT .= "\n"; + $OUT .= "log \"--- to the inbox ----------------- \"\n"; + $OUT .= "$finaldeliverymethod\n"; + } +} diff --git a/root/etc/e-smith/templates-user/.procmailrc/00setup b/root/etc/e-smith/templates-user/.procmailrc/00setup new file mode 100644 index 0000000..c55e65a --- /dev/null +++ b/root/etc/e-smith/templates-user/.procmailrc/00setup @@ -0,0 +1,21 @@ +{ + # vim: ft=perl: + + use esmith::AccountsDB; + use esmith::ConfigDB; + + our $adb = esmith::AccountsDB->open_ro or die "Couldn't open AccountsDB"; + our $cdb = esmith::ConfigDB->open_ro or die "Couldn't open ConfigDB"; + + $user = $adb->get($USERNAME) or die "No user $USERNAME in AccountsDB"; + %props = $user->props; + + our $sievesupport = $cdb->get_prop('sieve','status') || 'disabled'; + our $sieveuser = $props{Sieve} || 'enabled'; + our $zarafa1 = $props{zarafa} || 'disabled1'; + our $zarafa2 = ${'zarafa-server'}{GlobalForward} || 'disabled2'; + our $EmailForward = $props{EmailForward} || ''; + our $ForwardAddress = $props{ForwardAddress} || ''; + + $OUT = ''; +} diff --git a/root/etc/e-smith/templates-user/.procmailrc/10header b/root/etc/e-smith/templates-user/.procmailrc/10header new file mode 100644 index 0000000..e226083 --- /dev/null +++ b/root/etc/e-smith/templates-user/.procmailrc/10header @@ -0,0 +1,24 @@ +{ + if ($USERNAME ne 'admin') + { + $OUT .= "# ---- Defaults ------------------\n"; + $OUT .= "SHELL=/bin/bash\n"; + $OUT .= "DEFAULT=\$HOME/Maildir/\n"; + $OUT .= "FORMAIL=/usr/bin/formail\n"; + $OUT .= "MAILDIR=\$HOME/Maildir/\n"; + $OUT .= "PMDIR=\$HOME\n"; + $OUT .= "SENDMAIL=/usr/sbin/sendmail\n"; + } + +elsif ($USERNAME eq 'admin') + { + $OUT .= "# ---- Defaults ------------------\n"; + $OUT .= "SHELL=/bin/bash\n"; + $OUT .= "DEFAULT=/home/e-smith/Maildir/\n"; + $OUT .= "FORMAIL=/usr/bin/formail\n"; + $OUT .= "MAILDIR=/home/e-smith/Maildir/\n"; + $OUT .= "PMDIR=/home/e-smith\n"; + $OUT .= "SENDMAIL=/usr/sbin/sendmail\n"; + } +} + diff --git a/root/etc/e-smith/templates-user/.procmailrc/15log b/root/etc/e-smith/templates-user/.procmailrc/15log new file mode 100644 index 0000000..6382d21 --- /dev/null +++ b/root/etc/e-smith/templates-user/.procmailrc/15log @@ -0,0 +1,47 @@ +{ + use esmith::config; + use esmith::db; + + my %processmail; + tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + + $OUT = ''; + + # control level of logging + my $loglevel = db_get_prop(\%processmail, $USERNAME, "loglevel") || 'some'; + if ($loglevel eq 'none') + { + $OUT .= "\n"; + $OUT .= "# ---- no logging ------------------\n"; + } + elsif ($loglevel eq 'some') + { + $OUT .= "\n"; + $OUT .= "# ---- some logging------------------\n"; + $OUT .= "VERBOSE=no\n"; + if ($USERNAME ne "admin") + { + $OUT .= "LOGFILE=\$HOME/procmail.log\n"; + } + if ($USERNAME eq "admin") + { + $OUT .= "LOGFILE=/home/e-smith/procmail.log\n"; + } + } + else + { + $OUT .= "\n"; + $OUT .= "# ---- verbose, for debugging only --------------\n"; + $OUT .= "VERBOSE=yes\n"; + $OUT .= "LOGABSTRACT=all\n"; + if ($USERNAME ne "admin") + { + $OUT .= "LOGFILE=\$HOME/procmail.log\n"; + } + if ($USERNAME eq "admin") + { + $OUT .= "LOGFILE=/home/e-smith/procmail.log\n"; + } + + } +} diff --git a/root/etc/e-smith/templates-user/.procmailrc/25options b/root/etc/e-smith/templates-user/.procmailrc/25options new file mode 100644 index 0000000..4444b66 --- /dev/null +++ b/root/etc/e-smith/templates-user/.procmailrc/25options @@ -0,0 +1,6 @@ +{ + $OUT .= "\n"; + $OUT .= "# ---- delete duplicates -------\n"; + $OUT .= ":0 Wh: msgid.lock\n"; + $OUT .= "| \$FORMAIL -D 8192 msgid.cache\n"; +} diff --git a/root/etc/e-smith/templates-user/.procmailrc/40global b/root/etc/e-smith/templates-user/.procmailrc/40global new file mode 100644 index 0000000..cc5fa03 --- /dev/null +++ b/root/etc/e-smith/templates-user/.procmailrc/40global @@ -0,0 +1,166 @@ +{ + use esmith::config; + use esmith::db; + + my %processmail; + tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + + #get Global rules + my @pmGlobRules = (); + foreach (sort keys %processmail) + { + push (@pmGlobRules, $_) + if (db_get_type(\%processmail, $_) eq 'pmGlobalRule'); + } + + #if they have rules add them to the templete + my $pmGlobRules = @pmGlobRules || '0'; + if ($pmGlobRules > 0) + { + $OUT .= "\n"; + $OUT .= "# ---start of Global rules---------\n"; + + my $pmGlobRule; + foreach $pmGlobRule (sort {$a <=> $b} @pmGlobRules) + { + my $basis = db_get_prop(\%processmail, $pmGlobRule, "basis") || ''; + my $criterion = db_get_prop(\%processmail, $pmGlobRule, "criterion") || ''; + my $basis2 = db_get_prop(\%processmail, $pmGlobRule, "basis2") || ''; + my $secondtest = db_get_prop(\%processmail, $pmGlobRule, "basis2") || ''; + my $criterion2 = db_get_prop(\%processmail, $pmGlobRule, "criterion2") || ''; + my $deliver = db_get_prop(\%processmail, $pmGlobRule, "deliver") || ''; + my $deliver2 = db_get_prop(\%processmail, $pmGlobRule, "deliver2") || ''; + my $copy = db_get_prop(\%processmail, $pmGlobRule, "copy") || ''; + my $action = db_get_prop(\%processmail, $pmGlobRule, "action") || ''; + my $action2 = db_get_prop(\%processmail, $pmGlobRule, "action2") || ''; + + unless (($zarafa1 eq 'enabled') || ($zarafa2 eq 'enabled')) + { + $deliver =~ s/ /\\ /g; + $deliver2 =~ s/ /\\ /g; + } + + foreach ($basis, $basis2) + { + ## headers include the basis in the criterion + if ($_ eq 'headers') + { + $_ = ''; + } + + ## size doesn't use '^. *' but needs a space + if ($_ ne '<') + { + if ($_ ne '>') + { + #[sme 2264] remove .* after TO_ macro + if ($_ eq 'TO_') + { + #[sme 6061 remove space after TO_ + $_ = "^"."$_".""; + } + else + { + $_ = "^"."$_".".*"; + } + } + else + { + $_ = $_.' '; + } + } + else + { + $_ = $_.' '; + } + } + + ##construct the deliver line + if (($action eq 'sort') || ($action eq 'create')) + { + # to a folder + if (($zarafa1 eq 'enabled') || ($zarafa2 eq 'enabled')) + { + if ($deliver eq 'junkmail') + { $deliver = "| zarafa-dagent -j $USERNAME"; } + else + { $deliver = "| zarafa-dagent $USERNAME -C -F 'Inbox\\$deliver'"; } + } + else + { $deliver = "\$MAILDIR/".'.'."$deliver"."/"; } + } + elsif ($action eq 'forward') + { + # to an email + $deliver = "! "."$deliver"; + } + elsif ($action eq 'delete') + { + # delete it + $deliver = '/dev/null'; + } + else + { + # freeform + $deliver = "$deliver"; + } + + ##construct the 2nd deliver line + if ($action2 eq 'sort') + { + # to a folder + if (($zarafa1 eq 'enabled') || ($zarafa2 eq 'enabled')) + { + if ($deliver eq 'junkmail') + { $deliver = "| zarafa-dagent -j $USERNAME"; } + else + { $deliver = "| zarafa-dagent $USERNAME -C -F 'Inbox\\$deliver'"; } + } + else + { $deliver = "\$MAILDIR/".'.'."$deliver2"."/"; } + } + elsif ($action2 eq 'forward') + { + # to an email + $deliver2 = "! "."$deliver2"; + } + + ## construct the rule + if ($secondtest ne '') + { + $secondtest = "* "."$basis2"."$criterion2"."\n"; + } + + if ($copy eq 'no') + { + $OUT .= "\n"; + $OUT .= ":0\n"; + $OUT .= "* "."$basis"."$criterion"."\n"; + $OUT .= $secondtest; + $OUT .= "$deliver\n"; + } + elsif ($copy eq 'yes' && $action2 eq 'inbox') + { + $OUT .= "\n"; + $OUT .= ":0 c\n"; + $OUT .= "* "."$basis"."$criterion"."\n"; + $OUT .= $secondtest; + $OUT .= "$deliver\n"; + } + else + { + $OUT .= "\n"; + $OUT .= ":0\n"; + $OUT .= "* "."$basis"."$criterion"."\n"; + $OUT .= $secondtest; + $OUT .= "\{\n"; + $OUT .= " :0 c\n"; + $OUT .= " $deliver\n"; + $OUT .= " \n"; + $OUT .= " :0\n"; + $OUT .= " $deliver2\n"; + $OUT .= "\}\n"; + } + }#foreach rule + }#if rules exist +} diff --git a/root/etc/e-smith/templates-user/.procmailrc/60user b/root/etc/e-smith/templates-user/.procmailrc/60user new file mode 100644 index 0000000..044c95b --- /dev/null +++ b/root/etc/e-smith/templates-user/.procmailrc/60user @@ -0,0 +1,167 @@ +{ + use esmith::config; + use esmith::db; + + my %processmail; + tie %processmail, 'esmith::config', '/home/e-smith/db/processmail'; + + # get users rules + my @pmRules = (); + foreach (sort keys %processmail) + { + push (@pmRules, $_) + if (db_get_type(\%processmail, $_) eq $USERNAME); + } + + # if they have rules add them to the templete + my $pmRules = @pmRules || '0'; + if ($pmRules > 0) + { + $OUT .= "\n"; + $OUT .= "# ---- user rules ------------------\n"; + + my $pmRule; + foreach $pmRule (sort @pmRules) + { + my $basis = db_get_prop(\%processmail, $pmRule, "basis") || ''; + my $criterion = db_get_prop(\%processmail, $pmRule, "criterion") || ''; + my $basis2 = db_get_prop(\%processmail, $pmRule, "basis2") || ''; + my $secondtest = db_get_prop(\%processmail, $pmRule, "basis2") || ''; + my $criterion2 = db_get_prop(\%processmail, $pmRule, "criterion2") || ''; + my $deliver = db_get_prop(\%processmail, $pmRule, "deliver") || ''; + my $deliver2 = db_get_prop(\%processmail, $pmRule, "deliver2") || ''; + my $copy = db_get_prop(\%processmail, $pmRule, "copy") || ''; + my $action = db_get_prop(\%processmail, $pmRule, "action") || ''; + my $action2 = db_get_prop(\%processmail, $pmRule, "action2") || ''; + + #allow for spaces _ to \_ + unless (($zarafa1 eq 'enabled') || ($zarafa2 eq 'enabled')) + { + $deliver =~ s/ /\\ /g; + $deliver2 =~ s/ /\\ /g; + } + + foreach ($basis, $basis2) + { + ## headers include the basis in the criterion + if ($_ eq 'headers') + { + $_ = ''; + } + + ## size doesn't use '^. *' but needs a space + if ($_ ne '<') + { + if ($_ ne '>') + { + #[sme 2264] remove .* after TO_ macro + if ($_ eq 'TO_') + { + #[sme 6061 remove space after TO_ + $_ = "^"."$_".""; + } + else + { + $_ = "^"."$_".".*"; + } + } + else + { + $_ = $_.' '; + } + } + else + { + $_ = $_.' '; + } + } + + ##construct the deliver line + if (($action eq 'sort') || ($action eq 'create')) + { + # to a folder + if (($zarafa1 eq 'enabled') || ($zarafa2 eq 'enabled')) + { + if ($deliver eq 'junkmail') + { $deliver = "| zarafa-dagent -j $USERNAME"; } + else + { $deliver = "| zarafa-dagent $USERNAME -C -F 'Inbox\\$deliver'"; } + } + else + { $deliver = "\$MAILDIR/".'.'."$deliver"."/"; } + } + elsif ($action eq 'forward') + { + # to an email + $deliver = "! "."$deliver"; + } + elsif ($action eq 'delete') + { + # delete it + $deliver = '/dev/null'; + } + else + { + # freeform + $deliver = "$deliver"; + } + + ##construct the 2nd deliver line + if ($action2 eq 'sort') + { + # to a folder + if (($zarafa1 eq 'enabled') || ($zarafa2 eq 'enabled')) + { + if ($deliver eq 'junkmail') + { $deliver = "| zarafa-dagent -j $USERNAME"; } + else + { $deliver = "| zarafa-dagent $USERNAME -C -F 'Inbox\\$deliver'"; } + } + else + { $deliver = "\$MAILDIR/".'.'."$deliver2"."/"; } + } + elsif ($action2 eq 'forward') + { + # to an email + $deliver2 = "! "."$deliver2"; + } + + ## construct the rule + if ($secondtest ne '') + { + $secondtest = "* "."$basis2"."$criterion2"."\n"; + } + + if ($copy eq 'no') + { + $OUT .= "\n"; + $OUT .= ":0\n"; + $OUT .= "* "."$basis"."$criterion"."\n"; + $OUT .= $secondtest; + $OUT .= "$deliver\n"; + } + elsif ($copy eq 'yes' && $action2 eq 'inbox') + { + $OUT .= "\n"; + $OUT .= ":0 c\n"; + $OUT .= "* "."$basis"."$criterion"."\n"; + $OUT .= $secondtest; + $OUT .= "$deliver\n"; + } + else + { + $OUT .= "\n"; + $OUT .= ":0\n"; + $OUT .= "* "."$basis"."$criterion"."\n"; + $OUT .= $secondtest; + $OUT .= "\{\n"; + $OUT .= " :0 c\n"; + $OUT .= " $deliver\n"; + $OUT .= " \n"; + $OUT .= " :0\n"; + $OUT .= " $deliver2\n"; + $OUT .= "\}\n"; + } + }#foreach rule + }#if rules exist +} diff --git a/root/etc/e-smith/templates-user/.procmailrc/90default b/root/etc/e-smith/templates-user/.procmailrc/90default new file mode 100644 index 0000000..66cd0af --- /dev/null +++ b/root/etc/e-smith/templates-user/.procmailrc/90default @@ -0,0 +1,23 @@ +{ + $OUT .= "\n"; + $OUT .= "# ---- to the inbox------------------\n"; + + if (($zarafa1 eq 'enabled') || ($zarafa2 eq 'enabled')) + { + $OUT .= ":0\n"; + $OUT .= "| zarafa-dagent $USERNAME \n"; + } + elsif (($sieveuser eq 'enabled') && ($sievesupport eq 'enabled')) + { + $OUT .= ":0 w\n"; + $OUT .= "\| /usr/libexec/dovecot/deliver\n"; + } + else + { + $OUT .= ":0\n"; + $OUT .= "\$DEFAULT\n"; + } + + $OUT .= "\n"; + $OUT .= "# ---- end of rules ------------------\n"; +} diff --git a/root/etc/e-smith/templates-user/.qmail/50Filter b/root/etc/e-smith/templates-user/.qmail/50Filter new file mode 100644 index 0000000..56f7181 --- /dev/null +++ b/root/etc/e-smith/templates-user/.qmail/50Filter @@ -0,0 +1,32 @@ +{ + if ($qmail{FilterOrder}) + { + + if ($props{MailFilter}) + { + my $MailFilter = $props{MailFilter} || 'on'; + + return '# Procmail/Maildrop disabled for this user' + if ($MailFilter eq 'bypass'); + } + + if ($props{EmailForward}) + { + my $EmailForward = $props{EmailForward} || 'on'; + + return '# Procmail/Maildrop disabled for forwarding mail purpose' + if ($EmailForward eq 'forward'); + } + + if ($qmail{FilterType}) + { + return '| /usr/bin/procmail ~/.procmailrc ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' + if ($qmail{FilterType} eq 'procmail'); + + return '| /usr/bin/maildrop ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' + if ($qmail{FilterType} eq 'maildrop' ); + } + + return '# Procmail/Maildrop disabled for all users' + } +} diff --git a/root/etc/e-smith/templates-user/.qmail/76Filter b/root/etc/e-smith/templates-user/.qmail/76Filter new file mode 100644 index 0000000..3b01723 --- /dev/null +++ b/root/etc/e-smith/templates-user/.qmail/76Filter @@ -0,0 +1,36 @@ +{ + if ($qmail{FilterOrder}) + { + return '# qmail FilterOrder enabled' + } + else + { + + if ($props{MailFilter}) + { + my $MailFilter = $props{MailFilter} || 'on'; + + return '# Procmail/Maildrop disabled for this user' + if ($MailFilter eq 'bypass'); + } + + if ($props{EmailForward}) + { + my $EmailForward = $props{EmailForward} || 'on'; + + return '# Procmail/Maildrop disabled for forwarding mail purpose' + if ($EmailForward eq 'forward'); + } + + if ($qmail{FilterType}) + { + return '| /usr/bin/procmail ~/.procmailrc ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' + if ($qmail{FilterType} eq 'procmail'); + + return '| /usr/bin/maildrop ; if [ $? -ne 0 ] ; then exit -1; else exit 99; fi;' + if ($qmail{FilterType} eq 'maildrop' ); + } + + return '# Procmail/Maildrop disabled for all users' + } +} diff --git a/root/etc/e-smith/web/functions/userpanel-mailsort b/root/etc/e-smith/web/functions/userpanel-mailsort new file mode 100644 index 0000000..b240083 --- /dev/null +++ b/root/etc/e-smith/web/functions/userpanel-mailsort @@ -0,0 +1,180 @@ +#!/usr/bin/perl -wT + +#---------------------------------------------------------------------- +# heading : Your Settings +# description : Process Mail +# longdesc : configure your email sorting +# navigation : 100 500 +# +# Modified (c) 2002,2006 Stephen Noble +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +#---------------------------------------------------------------------- + +use strict; +use warnings; + +use esmith::FormMagick::Panel::mailsort; + +my $fm = esmith::FormMagick::Panel::mailsort->new(); +$fm->display(); + +__DATA__ +
+ + + + FORM_DESCRIPTION + + + + + + + + + + + + + + ADD_RULE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/root/usr/lib/.gitignore b/root/usr/lib/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/mailsort.pm b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/mailsort.pm new file mode 100644 index 0000000..7a983a3 --- /dev/null +++ b/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/mailsort.pm @@ -0,0 +1,439 @@ +#---------------------------------------------------------------------- +# mailsorting.pm +# support@dungog.net +#---------------------------------------------------------------------- + +package esmith::FormMagick::Panel::mailsort; + +use strict; +use warnings; + +use esmith::util; +use esmith::FormMagick; +use esmith::AccountsDB; +use esmith::ConfigDB; +use Unicode::IMAPUtf7; +use Unicode::String qw(utf8 latin1); + +use Exporter; +use Carp qw(verbose); + +use HTML::Tabulate; + +our @ISA = qw(esmith::FormMagick Exporter); + +our @EXPORT = qw(); + +our $db = esmith::ConfigDB->open(); +our $adb = esmith::AccountsDB->open(); +our $pdb = esmith::ConfigDB->open('processmail') or die "Could not open processmail DB\n"; + +our $PanelUser = $ENV{'REMOTE_USER'} ||''; +$PanelUser = $1 if ($PanelUser =~ /^([a-z][\.\-a-z0-9]*)$/); + +sub get_panel_user +{ + return $PanelUser; +} + +sub get_full_name +{ + return $adb->get_prop($PanelUser, "FirstName") . " " . + $adb->get_prop($PanelUser, "LastName"); +} + +sub new { + shift; + my $self = esmith::FormMagick->new(); + $self->{calling_package} = (caller)[0]; + bless $self; + return $self; +} + +sub print_rules_table +{ + my $self = shift; + my $q = $self->{cgi}; + + my @rules = $pdb->get_all_by_prop(type => "$PanelUser"); + return $self->localise("NO_RULES") if (@rules == 0); + + my $rules_table = + { + title => $self->localise("CURRENT_RULES"), + + stripe => "#D4D0C8", + + fields => [ qw(b1 criterion b2 criterion2 action deliver copy deliver2 Modify Remove) ], + + labels => 1, + + field_attr => { + b1 => { label => $self->localise("BASIS") }, + + criterion => { label => $self->localise("CRITERION") }, + + b2 => { label => $self->localise("2ND_BASIS") }, + + criterion2 => { label => $self->localise("2ND_CRITERION") }, + + action => { label => $self->localise("ACTION") }, + deliver => { label => $self->localise("DESTINATION") }, + + copy => { label => $self->localise("COPY") }, + + deliver2 => { label => $self->localise("DESTINATION") }, + + Modify => { + label => $self->localise("MODIFY"), + link => \&modify_link + }, + + Remove => { + label => $self->localise("REMOVE"), + link => \&remove_link + }, + } + }; + + my @data = (); + my $a = $self->localise('ACTION'); + my $b = $self->localise('BASIS'); + my $c = $self->localise('CRITERION'); + + foreach my $rule (@rules) + { + my $key = $rule->key; + my $basis = $rule->prop("basis") || ''; + my $basis2 = $rule->prop("basis2") || ''; + my $deliver = $rule->prop("deliver") || ''; + my $deliver2 = $rule->prop("deliver2") || ''; + my $action = $rule->prop("action") || ''; + my $action2 = $rule->prop("action2") || ''; + my $folder = ("$action" eq "sort" )? $deliver : ''; + $folder = "INBOX" if "$folder" eq "" && "$action" eq "sort"; + my $copy = $rule->prop("copy") || ''; + my $oldpmRule = ''; + + for ($basis, $basis2) + { + if ($_ eq '<') + { $_ = 'sizelt'; } + elsif ($_ eq '>') + { $_ = 'sizegt'; } + } + + my $b1 = $self->localise($basis); + my $b2 = $self->localise($basis2); + + my $copyto = $rule->prop("deliver2") || '';# useless + if (($copy eq 'yes') && ($action2 eq 'inbox')) + { $deliver2 = ""; $copyto = 'inbox'; } # copyto is useless + + $deliver = GetDisplayName($deliver); + $deliver2 = GetDisplayName($deliver2); + + push @data, + { + key => $rule->key, + basis => $basis, + basis2 => $basis2, + criterion => $rule->prop("criterion") || '', + criterion2 => $rule->prop("criterion2") || '', + deliver => $deliver, + deliver2 => $deliver2, + folder => $folder, + action => $action, + action2 => $action2, + copy => $copy, + Modify => $self->localise('MODIFY'), + Remove => $self->localise('REMOVE'), + b1 => $b1, + b2 => $b2, + a => $a, + b => $b, + c => $c, + } + } + + my $t = HTML::Tabulate->new($rules_table); + + $t->render(\@data, $rules_table); +} + +sub modify_or_create_description +{ + my $self = shift; + my $q = $self->{cgi}; + + my $key = $q->param('key'); + + if ($key eq 'new') + { return $self->localise('CREATE_RULE_DESCRIPTION'); } + else + { return $self->localise('MODIFY_RULE_DESCRIPTION'); } +} + +sub priority +{ + my $self = shift; + my $q = $self->{cgi}; + + my $key = $q->param('key'); + + if ($key eq 'new') + { return ''; } + else + { + my $start = ' + ' . $self->localise('PRIORITY') . ' + + '; + return $start; + } +} + +sub filter_status +{ + my $self = shift; + my $q = $self->{cgi}; + + my $FilterType = $db->get_prop('qmail', "FilterType") || 'Disabled'; + + if ($FilterType eq 'Disabled') + { + my $start = '

' . + $self->localise('FILTERTYPE_DISABLED') . + '

'; + } + else + { return ''; } +} + +sub user_status +{ + my $self = shift; + my $q = $self->{cgi}; + + my $MailFilter = $adb->get_prop($PanelUser, "MailFilter") || ''; + + if ($MailFilter eq 'bypass') + { + my $start = '

' . + $self->localise('USER_DISABLED') . + '

'; + } + else + { return ''; } +} + +sub modify_link +{ + my ($data_item, $row, $field) = @_; + + #avoid duplicate data if we sort we use folder field + my $deliver = $row->{deliver}; + $deliver="" if $row->{action} eq "sort"; + + return "userpanel-mailsort?" . + join("&", + "page=0", + "page_stack=", + "Next=Next", + "key=" . $row->{key}, + "oldkey=" . $row->{key}, + "basis=" . $row->{basis}, + "basis2=" . $row->{basis2}, + "criterion=" . $row->{criterion}, + "criterion2=" . $row->{criterion2}, + "deliver=" . $deliver, + "deliver2=" . $row->{deliver2}, + "folder=" . $row->{folder}, + "action=" . $row->{action}, + "action2=" . $row->{action2}, + "copy=" . $row->{copy}, + "wherenext=RULE_MODIFY"); +} + +sub remove_link +{ + my ($data_item, $row, $field) = @_; + + return "userpanel-mailsort?" . + join("&", + "page=0", + "page_stack=", + "Next=Next", + "key=" . $row->{key}, + "desc=" . $row->{b} .' = '. $row->{basis} . '
' . + $row->{c} .' = '. $row->{criterion} . '
' . + $row->{a} .' = '. $row->{action}, + "wherenext=RULE_REMOVE"); +} + +sub remove_rule +{ + my $self = shift; + my $q = $self->{cgi}; + + my $rule = $q->param('key'); + + my $rec = $pdb->get($rule); + $rec->delete; + + unless ( system ("/sbin/e-smith/signal-event mailsorting-conf $PanelUser") == 0 ) + { return $self->error('ERROR_UPDATING'); } + + return $self->success("SUCCESS"); +} + +sub save_rule +{ + my $self = shift; + my $q = $self->{cgi}; + + my $rule = $q->param ('key') || ''; + if (($rule eq '') || ($rule eq 'new')) + { + my $random = int(rand(999999)); + $rule = $PanelUser.$random; + $pdb->new_record($rule, { type => "$PanelUser" }); + } + my %filtered; + $filtered{criterion} .= $q->param ('criterion') || ''; + $filtered{criterion2} .= $q->param ('criterion2') || ''; + $filtered{basis} .= $q->param ('basis') || ''; + $filtered{basis2} .= $q->param ('basis2') || ''; + $filtered{action} .= $q->param ('action') || ''; + $filtered{action2} .= $q->param ('action2') || ''; + $filtered{deliver} .= $q->param ('deliver') || ''; + $filtered{deliver2} .= $q->param ('deliver2') || ''; + $filtered{folder} .= $q->param ('folder') || ''; + $filtered{copy} .= $q->param ('copy') || ''; + $filtered{oldkey} .= $q->param ('oldkey') || ''; + + if ($filtered{basis} eq 'sizelt') { $filtered{basis} = '<'; } + if ($filtered{basis} eq 'sizegt') { $filtered{basis} = '>'; } + if ($filtered{basis2} eq 'sizelt') { $filtered{basis2} = '<'; } + if ($filtered{basis2} eq 'sizegt') { $filtered{basis2} = '>'; } + + # we use the folder drop box selection if asked to sort + $filtered{folder} = "" if $filtered{folder} eq "INBOX"; + $filtered{deliver} = $filtered{folder} if $filtered{action} eq "sort"; + + if ($filtered{copy} eq 'no') { $filtered{deliver2} = ''; $filtered{action2} = ''; } + if ($filtered{copy} eq 'yes' && $filtered{action2} eq 'inbox') { $filtered{deliver2} = ''; } + + # keys are different but rule at least has part of users name so is likely changed + if (($filtered{oldkey} ne $rule) && ($filtered{oldkey} =~ /$PanelUser/)) + { + $pdb->new_record($rule, { type => "$PanelUser" }); + + my $rec = $pdb->get($filtered{oldkey}); + $rec->delete; + } + + foreach ("criterion","criterion2","action","action2","copy","basis","basis2","deliver","deliver2" ) + { $pdb->set_prop($rule, "$_", $filtered{$_}); } + + unless ( system ("/sbin/e-smith/signal-event mailsorting-conf $PanelUser") == 0 ) + { return $self->error('ERROR_UPDATING'); } + + return $self->success("SUCCESS"); +} + +sub GetDisplayName ($) +{ + my $s = shift; + my $t = Unicode::IMAPUtf7->new(); + $s =~ s/(.*)//; # untaint it + my $u = utf8($t->decode($1)); + return $u->utf8;#$u->latin1; +} + +sub listfolders +{ + use File::Find::Rule; + my $root="/home/e-smith/files/users/$PanelUser/Maildir"; + $root="/home/e-smith/Maildir" if "$PanelUser" eq "admin" ; + my @dirs = File::Find::Rule->new + ->extras({ untaint => 1 , untaint_pattern => qr|^([-+@\w&. /]+)$| }) + ->directory + ->maxdepth(1) + ->in($root); + my %out_dir; + $out_dir{"INBOX"} .= "INBOX"; + $out_dir{""} .= ""; + for (sort @dirs) { + s/$root\/?\.?//; + my @exclu =("cur", "tmp", "new" , "INBOX" ); + next if $_ ~~ @exclu; + $out_dir{$_} .= GetDisplayName(join('/',split('\.', $_))); + } + return \%out_dir; +} + +sub nonblankWithForward +{ + my $self = shift; + my $q = $self->{cgi}; + + my $action = $q->param ('action') || ''; + my $deliver = $q->param ('deliver') || ''; + + if ( $action eq 'sort') + { + return "ERROR_SHOULD_BE_EMPTY" unless not $deliver; + return "OK"; + } + elsif ( $action ne 'delete') + { + if (not $deliver) + { return "ERROR_FORWARD_NO_EMAIL"; } + elsif ( $deliver =~ /^\s+$/ ) + { return "ERROR_FORWARD_NO_EMAIL"; } + else + { return "OK"; } + } + else { return "OK"; } +} + +sub nonblankWithForward2 +{ + my $self = shift; + my $q = $self->{cgi}; + + my $copy = $q->param ('copy') || ''; + my $action = $q->param ('action2') || ''; + my $deliver = $q->param ('deliver2') || ''; + + if (( $action eq 'forward') && ( $copy eq 'yes')) + { + if (not $deliver) + { return "ERROR_FORWARD_NO_EMAIL"; } + elsif ( $deliver =~ /^\s+$/ ) + { return "ERROR_FORWARD_NO_EMAIL"; } + else + { return "OK"; } + } + else { return "OK"; } +} + +sub nonblankWithSort +{ + my $self = shift; + my $q = $self->{cgi}; + + my $action = $q->param ('action') || ''; + my $folder = $q->param ('folder') || ''; + + if ( $action eq 'sort') + { + return "ERROR_SORT_NO_FOLDER" if not $folder; + return "OK"; + } + else { return "OK"; } +} + + +1; diff --git a/smeserver-mailsorting.spec b/smeserver-mailsorting.spec new file mode 100644 index 0000000..06ab958 --- /dev/null +++ b/smeserver-mailsorting.spec @@ -0,0 +1,339 @@ +# $Id: smeserver-mailsorting.spec,v 1.7 2024/09/06 00:45:51 terryfage Exp $ +# Authority: dungog +# Name: Stephen Noble + +Summary: Lets users configure procmail or maildrop rules. +%define name smeserver-mailsorting +Name: %{name} +%define version 1.4 +%define release 16 +Version: %{version} +Release: %{release}%{?dist} +License: GPL +URL: http://www.dungog.net/sme +Group: SMEserver/addon +Source: %{name}-%{version}.tar.xz + +BuildArchitectures: noarch +BuildRoot: /var/tmp/%{name}-%{version} +Requires: e-smith-release >= 9.0 +Requires: perl-Unicode-IMAPUtf7 +Requires: e-smith-formmagick >= 1.4.0-12 +Requires: perl-File-Find-Rule >= 0.33 +Requires: maildrop +Requires: procmail +#Requires: smeserver-userpanel, userpanel causes endless problems +BuildRequires: e-smith-devtools >= 1.13.1-03 +AutoReqProv: no + +%description +SME Server enhancement to enable procmail or maildrop filtering for users. +Optionally provides user panels where users can create mail rules for themselves + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 1.4-16.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Fri Sep 06 2024 Terry Fage 1.4-15.sme +- apply locale locale-2024-09-06.patch + +* Mon Aug 23 2021 Terry Fage 1.4-14.sme +- apply locale 2021-08-22 patch + +* Sun Apr 25 2021 Jean-Philippe Pialasse 1.4-13.sme +- add requirement for maildrop and procmail [SME: 11578] + +* Mon Feb 22 2021 Jean-Philipe Pialasse 1.4-12.sme +- add update event to avoid need of reboot [SME: 10952] + +* Tue Nov 24 2020 Brian Read 1.4-11.sme +- First import to SME10 [SME: 10952] + +* Sat Dec 02 2017 SME Translation Server 1.4-10.sme +- apply locale 2017-12-02 patch + +* Tue Jul 04 2017 Jean-Philipe Pialasse 1.4-9.sme +- fix geekmode not honoured [SME: 10366] +- thanks to John Crisp for the fix. +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday + +* Sat Mar 25 2017 Jean-Philipe Pialasse 1.4-8.sme +- apply locale 2017-03-25 patch + +* Sat Feb 25 2017 Jean-Philipe Pialasse 1.4-7.sme +- requires perl-File-Find-Rule >= 0.33 + +* Wed Feb 08 2017 Jean-Philipe Pialasse 1.4-5.sme +- NFR droplist to choose the directory to sort to [SME: 8044] +- few tidying in code of panel + +* Wed Mar 09 2016 JP Pialasse 1.4-4.sme +- apply locale 2016-03-09 patch + +* Sat Aug 22 2015 stephane de Labrusse 1.4-3.sme +- Initial release to contribs9 + +* Tue Dec 2 2014 stephane de Labrusse 1.4-2.sme +- allow the possibility to use sieve script if no rules has matched. +- Code developed by Mats Schuh + +* Mon Jun 23 2014 stephane de Labrusse 1.4-1.sme +- Initial release to sme9 + +* Wed Dec 11 2013 JP Pialasse 1.2-45.sme +- fix bug as admin .procmail was not created [SME: 8023] + +* Fri Nov 29 2013 JP Pialasse 1.2-44.sme +- fix admin patch + +* Thu Nov 28 2013 Steph DL 1.2-43.sme + Wed Nov 28 2013 --> Wed Nov 27 2013 or Thu Nov 28 2013 or Wed Dec 04 2013 or .... +- fix [SME: 8023] [SME: 8024] + +* Wed Oct 09 2013 John Crisp 1.2-42.sme +- remove space from TO_ [SME: 6061] [SME: 2264] + +* Sun Jul 14 2013 JP Pialasse 1.2-41.sme +- apply locale 2013-07-14 patch +- documentation fix [SME: 7586] +- copy keeped even if forward [SME: 6847] + + +* Sun Mar 06 2011 SME Translation Server 1.2-40.sme +- apply locale 2011-03-06 patch + +* Sun May 23 2010 SME Translation Server 1.2-39.sme +- apply locale 2010-05-23 patch + +* Tue Mar 02 2010 SME Translation Server 1.2-38.sme +- apply locale 2010-03-02 patch + +* Tue Oct 27 2009 SME Translation Server 1.2-37.sme +- apply locale 2009-10-27 patch + +* Mon Aug 24 2009 SME Translation Server 1.2-36.sme +- apply locale 2009-08-24 patch + +* Fri Jun 12 2009 Stephen Noble 1.2-35 +- don't escape spaces in folder names with zarafa enabled [SME: 5164] + +* Wed May 20 2009 SME Translation Server 1.2-34.sme +- apply locale 2009-05-20 patch + +* Mon Apr 27 2009 SME Translation Server 1.2-33.sme +- apply locale 2009-04-27 patch + +* Sun Mar 22 2009 Stephen Noble 1.2-32 +- qmail FilterOrder enabled lets maildrop filter before forwarding [SME: 5044] + +* Tue Mar 03 2009 SME Translation Server xyz 1.2-31 +- apply locale 2009-03-03 patch + +* Sun Mar 1 2009 Jonathan Martens 1.2-30 +- Apply 1 Mar 2009 locale patch [SME: 5018] + +* Sat Feb 21 2009 Stephen Noble 1.2-29 +- remove drop down to select folders [SME: 5016] + +* Sat Feb 21 2009 Stephen Noble 1.2-28 +- procmail sort to zarafa folders if enabled [SME: 5016] + +* Thu Jan 1 2009 Jonathan Martens 1.2-27 +- Apply 1 Jan 2009 locale patch [SME: 4900] + +* Tue Oct 14 2008 Jonathan Martens 1.2-26 +- Apply 14 Oct 2008 locale patch + +* Mon Sep 29 2008 Stephen Noble - 1.2-25 +- remove internal forwarding [SME: 4605] + +* Sat Sep 27 2008 Stephen Noble - 1.2-24 +- move .qmail fragment after SME forwarding [SME: 4602] + +* Sat Sep 27 2008 Stephen Noble - 1.2-23 +- Apply 27 Sep 2008 locale patch + +* Tue Jul 1 2008 Jonathan Martens 1.2-22 +- Apply 1 July 2008 locale patch + +* Wed May 21 2008 Jonathan Martens 1.2-21 + Thu May 21 2008 --> Thu May 15 2008 or Wed May 21 2008 or Thu May 22 2008 or .... +- Apply 21 May 2008 locale patch +- Updating the release number (it was lagging behind about 10) + +* Mon May 5 2008 Jonathan Martens 1.2-20 +- Apply 5 May 2008 locale patch + +* Sun Apr 27 2008 Jonathan Martens 1.2-19 +- Add common tags to e-smith-formmagick's general + +* Tue Apr 22 2008 Jonathan Martens 1.2-18 +- Added 22 April 2008 locale patch + +* Tue Apr 1 2008 Shad L. Lords 1.2-17 +- Update to UTF-8 translations + +* Fri Mar 14 2008 Stephen Noble - 1.2-16 +- block generation of procmail/maildrop rules [SME: 4051] + +* Fri Mar 14 2008 Stephen Noble - 1.2-15 +- update locale 2008-03-14 + +* Wed Mar 12 2008 Shad L. Lords - 1.2-14 +- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] + +* Tue Mar 11 2008 Stephen Noble - 1.2-13 +- Add 2008-03-11 locale patch + +* Fri Mar 07 2008 Stephen Noble - 1.2-12 +- prepare en lexicons for pootle translations + +* Tue Dec 25 2007 Stephen Noble 1.2-11 +- french translation fix + +* Tue Dec 25 2007 Stephen Noble 1.2-10 +- add french translation, thanks Sylvain Gomez + +* Mon Oct 29 2007 Stephen Noble 1.2-9 +- add spanish translation, thanks Normando Hall [SME 3503] + +* Sun Jul 29 2007 Stephen Noble 1.2-8 +- Add Requires perl-Unicode-IMAPUtf7 [SME: 3218] + +* Thu Jul 05 2007 Stephen Noble 1.2-7 +- touch processmail db, thanks dclarke + +* Wed Jun 13 2007 Stephen Noble 1.2-6 +- add global maildrop delete duplicate db value + +* Wed Jun 13 2007 Stephen Noble +- update .tar.gz to current version + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Sat Mar 17 2007 Stephen Noble +- retry mail in .qmail [sme 2733] +- [1.2-5] + +* Wed Feb 28 2007 Stephen Noble +- remove Requires: smeserver-userpanel +- [1.2-4] + +* Tue Jan 9 2007 Stephen Noble +- remove .* after TO_ macro [sme 2264] +- Existing mail folders search improved [sme 2265] +- [1.2-3] + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Mon Oct 30 2006 Stephen Noble +- improved german support, thanks Dietmar +- Unicode-IMAPUtf7 support [sme 1446] +- [1.2-2] + +* Sat Oct 21 2006 Stephen Noble +- FormMagick version +- [1.2-1] + +* Thu Aug 24 2006 Stephen Noble +- remove strict check on mailrule criterion [sme 1643] +- fix log rotation +- maildrop matching improved, [sme 1642] +- allow for spaces in folder names for maildrop [sme 1640] +- [0.9-6] + +* Sat May 6 2006 Stephen Noble +- default shell for maildrop set to /bin/bash +- [contribs 1378] thanks mweinber neddix.de +- [0.9-5] + +* Thu Apr 06 2006 Stephen Noble + Wed Apr 06 2006 --> Wed Apr 05 2006 or Thu Apr 06 2006 or Wed Apr 12 2006 or .... +- delete duplicates +- globally enabled for procmail, works ok +- per user for maildrop, worked ok for user A, but started deleting mail for user B +- [0.9-4] + +* Thu Mar 9 2006 Stephen Noble +- remove preun actions +- [0.9-3] + +* Thu Mar 9 2006 Stephen Noble +- Requires: smeserver-userpanel +- bypass admin's .qmail +- [0.9-2] + +* Sun Sep 25 2005 Stephen Noble +- initial release +- [0.9-1] + +%prep +%setup + +%build +perl createlinks + +LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) +for lexicon in $LEXICONS +do + /sbin/e-smith/validate-lexicon $lexicon +done + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist +echo "%doc COPYING" >> %{name}-%{version}-filelist + +%clean + +%pre +%preun + +%post +#new installs +if [ $1 = 1 ] ; then + echo '' + echo '#############################################################' + echo ' Please visit the url below to apprehend all the db commands' + echo ' http://wiki.contribs.org/Mailsorting#Configuration ' + echo '#############################################################' + echo '' +fi + +#upgrades (and new installs) +/bin/touch /home/e-smith/db/processmail +# this one is essential to avoid to lose mails !!!! +/sbin/e-smith/signal-event mailsorting-conf +if [ -d /etc/e-smith/events/conf-userpanel ] ; then + /sbin/e-smith/signal-event conf-userpanel +fi + +%postun +#uninstall +if [ $1 = 0 ] ; then + +echo '' +echo '##################################' +echo 'to disable procmail or maildrop' +echo 'config delprop qmail FilterType' +echo 'signal-event email-update' +echo '##################################' +echo '' + + DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` + for db in $DBS ; do + /sbin/e-smith/db $db delete userpanel-mailsort 2>/dev/null + done +fi + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root)