pax_global_header00006660000000000000000000000064145657411670014532gustar00rootroot0000000000000052 comment=8092bfc7eb9674f22c8d6c6fdfcfe79806f51d48 phosh-antispam-3.4/000077500000000000000000000000001456574116700143335ustar00rootroot00000000000000phosh-antispam-3.4/.gitignore000066400000000000000000000000371456574116700163230ustar00rootroot00000000000000_build/ *.swp .flatpak-builder/phosh-antispam-3.4/.gitlab-ci.yml000066400000000000000000000031041456574116700167650ustar00rootroot00000000000000--- .only-default: &only-default only: - master - merge_requests - tags variables: DEB_IMAGE: debian:trixie ALPINE_IMAGE: alpine:edge stages: - build - test build-debian: image: ${DEB_IMAGE} stage: build <<: *only-default before_script: - apt update - apt install -y debhelper-compat meson libgtk-4-dev libadwaita-1-dev desktop-file-utils xvfb script: - meson -Dwerror=true _build - meson compile -C _build - xvfb-run meson test -C _build --print-errorlogs artifacts: paths: - _build/ build-alpine: image: ${ALPINE_IMAGE} stage: build <<: *only-default before_script: - apk -q add build-base glib-dev libadwaita-dev desktop-file-utils meson xvfb-run script: # check for uninitialized g_autoptr, which cause segfaults in musl - grep -n -e 'g_autoptr(\w*)\s*\w*;' -R . && exit 1 - meson -Dwerror=true _build - meson compile -C _build - xvfb-run meson test -C _build --print-errorlogs artifacts: paths: - _build/ check-po: image: ${DEB_IMAGE} stage: test <<: *only-default dependencies: - build-debian before_script: - apt-get -y update - apt-get -y install intltool git script: # barf on untranslated C files. Seems intltool # can't be told to exit with non-zero exit status # in this case - cd po/ - intltool-update -m 2>&1 | grep -qs '/.*\.\(c\|ui\|in\)' && { intltool-update -m; exit 1; } || exit 0 except: variables: - $FP_ONLY == "1" phosh-antispam-3.4/CONTRIBUTING.md000066400000000000000000000044351456574116700165720ustar00rootroot00000000000000# Contributing to VVM Player This project is primarily written in C. GUI elements are written in XML. You don't have to be an expert in C to contribute. Find a simple bug to work on and send a merge request. ## Filing a bug Please file bugs for issues, enhancements and features at the [bug tracker](https://gitlab.com/kop316/phosh-antispam/-/issues). Create a Merge request and I’d be happy to review your patch and help you get it merged. ## Coding style All contributions to VVM Player should follow its coding style. The style can mostly be inferred from the code. The following is a shorter version: * Code should be indented with spaces only - **No tabs ever** * Use 2 space for each indentation level * Except for functions, structs, unions, and enum definitions, curly braces should have a new indentation level. * Use curly braces only for multi-statement blocks. * For function definitions and declarations, each argument should go to separate line. * When calling a function, never add a newline between the function call paren, or immediatly after (ie, before the first argument). * Almost always put a space before a paren. This project follows GTK coding style. Read it online at https://gitlab.gnome.org/GNOME/gtk/blob/master/docs/CODING-STYLE The following exceptions apply: 1. Maximum line width is 100 characters. 2. Header files should use `#pragma once` as include guard. 3. Use 2 spaces after the end of a sentence. * This helps navigation in GNU Emacs better. ```c /* FIXME: This is a hack. How to get the window width right? */ ``` 4. Include the full URL to the bug report in commit messages so that they can be accessed from local git log (or mirror repositories). ``` settings: Fix a memory leak g_get_current_dir() returns a newly allocated string. It should be freed using g_free() Closes: https://gitlab.com/kop316/vvmplayer/issues/23 ``` ## Be explicit about ownership transfers Since `GLib 2.44`, we've had helpful macros and functions to be explit about ownership transfers. Please use them as it drastically saves time when tracking down memory leaks. These include: * `g_autoptr()`, `g_auto()`, and `g_autofree`. * `g_steal_pointer()` * `g_clear_object()` and `g_clear_pointer()` We prefer that you zero fields in structures when freeing the contents. phosh-antispam-3.4/COPYING000066400000000000000000001045141456574116700153730ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. 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. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. 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 state 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) 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 3 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, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program 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, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU 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 Lesser General Public License instead of this License. But first, please read . phosh-antispam-3.4/NEWS.org000066400000000000000000000024511456574116700156220ustar00rootroot00000000000000phosh-antispam (3.4) [ Chris Talbot ] * Make friendlier to translating * Update to use libadwaita 1.4 APIs phosh-antispam (3.3.1) [ Chris Talbot ] * Fix bug for blank numbers [ Peter M ] * Fix Meta Info phosh-antispam (3.3.0) [ Chris Talbot ] * Add Debug Info [ Brage Fuglseth ] * Redesign Icon phosh-antispam (3.2.0) [ Chris Talbot and Guido Gunther ] * Redesign UI phosh-antispam (3.1.0) [ Chris Talbot ] * Various bug fixes * Use adw_show_about_window() phosh-antispam (3.0.0) [ Chris Talbot ] * Various bug fixes phosh-antispam (3.0~beta1) [ Chris Talbot ] * Various bug fixes * Allow for Dark Theme phosh-antispam (3.0~beta) [ Chris Talbot ] * Rewrite in GTK-4 and libadwaita phosh-antispam (2.1.1) [ Chris Talbot ] * Fix some memory leaks phosh-antispam (2.1) [ Chris Talbot ] * Various clean ups * Allow Antispam to use Blacklist phosh-antispam (2.0) [ Chris Talbot ] * Clean up GUI * Ensure hang up is used as backup * Always hang up on "Spam" contact phosh-antispam (2.0~beta) [ Chris Talbot ] * Reintegrate everything into the GUI phosh-antispam (2.0~alpha) [ Chris Talbot ] * Rebase for a GUI phosh-antispam (1.1) [ Chris Talbot ] * Bug Fixes phosh-antispam (1.0) [ Chris Talbot ] * Initial Release phosh-antispam-3.4/README.md000066400000000000000000000066321456574116700156210ustar00rootroot00000000000000# Phosh Anti-Spam Copyright (C) 2021-2022 Chris Talbot ## About Phosh Anti-Spam is a program that monitors Gnome calls and automatically hangs up depending on the user's preferences.
By default, if the number calling you is not in your contact list, or you have the contact listed as "Spam", Phosh Anti-Spam will automatically tell GNOME Calls to hang up on the call. There are additionally these user configuration options: - Whether to only block certain calls vs only allowing certain calls. - Whether ot not to allow blocked numbers (also called "Anonymous Number" in GNOME Calls) - If the caller calls back within a user defined time (min) of the first (blocked) call, whether to allow the call through (in case it is a human trying to call back). Note this does not apply to contacts named "Spam", they will always be hung up on. - If you would like to match a certain type (or types) of number (for example, an area code or a number prefix) to let them through. For example, if you want to allow the area code `201` and the number prefix `312-555`, you could allow both combinations (and add others as well). - NOTE: GNOME Calls has all of the numbers to compare in the E.164 format. - The patterm match for numbers is located in a csv in `$XDG_CONFIG_DIR/phoshantispam/whitelist.csv` (`$HOME/.config/phoshantispam/whitelist.csv` in most cases). On start up, `phosh-antispam` loads all of the patterm values from this file (and saves to it if the list changes in the program). If one does not exist, `phosh-antispam` will create a file there on first run. ## License Unless otherwise specified, all code is licensed under the GPL Version 3 or later https://www.gnu.org/licenses/gpl-3.0.en.html All other images/data is licensed under Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) https://creativecommons.org/licenses/by-sa/4.0/ ## Compiling Phosh Anti-Spam In order to compile Phosh Anti-Spam you need following software packages: - Meson - GCC compiler - GIO library - Libadwaita Library Phosh Anti-Spam requires, at a minimum, GNOME Calls version `41.alpha` to work. If there is a version less than `41.alpha`, Phosh Anti-Spam will not do anything. To use the `Silence` feature, `41.1` is needed. ## Installing Phosh Anti-Spam Build tools requirements When building and testing directly from the repository it is important to have at least meson version 0.56 or later installed. In addition, some supported Meson backend is required (e.g. ninja). To prepare/configure the project for compilation: # meson _build However, if you want to install it, run # meson _build -Dprefix=/usr --sysconfdir=/etc `--sysconfdir=/etc` will install the autostart file in the correct place, and `-Dprefix=/usr` installs `phosh-antispam` in `/usr/bin/` rather than `/usr/local/bin` To build the project: # meson compile -C _build Run tests: # meson test -C _build Install: # meson install -C _build (Install may require sudo or root privileges). Uninstall: # ninja uninstall -C _build/ (Uninstall may require sudo or root privileges). ## Running from within the source code repository Meson will build the binary in builddir (_build, using the examples above), and can be invoked directly. Run with debugging # ./_build/src/phosh-antispam -d phosh-antispam-3.4/build-aux/000077500000000000000000000000001456574116700162255ustar00rootroot00000000000000phosh-antispam-3.4/build-aux/meson_post_install.py000066400000000000000000000012461456574116700225160ustar00rootroot00000000000000#!/usr/bin/env python3 import os import subprocess prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr/local') data_dir = os.path.join(prefix, 'share') icon_dir = os.path.join(data_dir, 'icons', 'hicolor') app_dir = os.path.join(data_dir, 'applications') schema_dir = os.path.join(data_dir, 'glib-2.0', 'schemas') if not os.environ.get('DESTDIR'): print('Compiling gsettings schemas...') subprocess.call (['glib-compile-schemas', schema_dir]) print('Update icon cache...') subprocess.call(['gtk-update-icon-cache', '-f', '-t', icon_dir]) print('Updating desktop database...') subprocess.call(['update-desktop-database', '-q', app_dir]) phosh-antispam-3.4/data/000077500000000000000000000000001456574116700152445ustar00rootroot00000000000000phosh-antispam-3.4/data/icons/000077500000000000000000000000001456574116700163575ustar00rootroot00000000000000phosh-antispam-3.4/data/icons/hicolor/000077500000000000000000000000001456574116700200165ustar00rootroot00000000000000phosh-antispam-3.4/data/icons/hicolor/meson.build000066400000000000000000000002721456574116700221610ustar00rootroot00000000000000icon_sizes = [ 'scalable', 'symbolic', ] foreach icon_size: icon_sizes install_subdir( icon_size, install_dir: join_paths(pkg_datadir, 'icons', 'hicolor'), ) endforeach phosh-antispam-3.4/data/icons/hicolor/scalable/000077500000000000000000000000001456574116700215645ustar00rootroot00000000000000phosh-antispam-3.4/data/icons/hicolor/scalable/apps/000077500000000000000000000000001456574116700225275ustar00rootroot00000000000000phosh-antispam-3.4/data/icons/hicolor/scalable/apps/org.kop316.antispam.Devel.svg000066400000000000000000000262551456574116700277440ustar00rootroot00000000000000 phosh-antispam-3.4/data/icons/hicolor/scalable/apps/org.kop316.antispam.svg000066400000000000000000000135331456574116700267010ustar00rootroot00000000000000 phosh-antispam-3.4/data/icons/hicolor/symbolic/000077500000000000000000000000001456574116700216375ustar00rootroot00000000000000phosh-antispam-3.4/data/icons/hicolor/symbolic/apps/000077500000000000000000000000001456574116700226025ustar00rootroot00000000000000phosh-antispam-3.4/data/icons/hicolor/symbolic/apps/org.kop316.antispam-symbolic.svg000066400000000000000000000007721456574116700305740ustar00rootroot00000000000000 phosh-antispam-3.4/data/icons/meson.build000066400000000000000000000000221456574116700205130ustar00rootroot00000000000000subdir('hicolor') phosh-antispam-3.4/data/icons/org.kop316.antispam.Source.svg000066400000000000000000010374531456574116700240000ustar00rootroot00000000000000 Adwaita Icon Template image/svg+xml GNOME Design Team Adwaita Icon Template Hicolor Symbolic battery is full and there is no a/c connected. phosh-antispam-3.4/data/meson.build000066400000000000000000000024411456574116700174070ustar00rootroot00000000000000desktop_conf = configuration_data() desktop_conf.set('bindir', pkg_bindir) desktop_file = i18n.merge_file( input: configure_file( input: pkg_id + '.desktop.in.in', output: pkg_id + 'desktop.in', configuration: desktop_conf, ), output: pkg_id + '.desktop', type: 'desktop', po_dir: pkg_po_dir, install: true, install_dir: join_paths(pkg_datadir, 'applications'), ) desktop_file = i18n.merge_file( input: configure_file( input: pkg_id + '-daemon.desktop.in.in', output: pkg_id + '-daemondesktop.in', configuration: desktop_conf, ), output: pkg_id + '-daemon.desktop', type: 'desktop', po_dir: pkg_po_dir, install: true, install_dir: join_paths(get_option('sysconfdir'), 'xdg/autostart') ) install_data( pkg_id + '.gschema.xml', install_dir: pkg_schemadir, ) compiled = gnome.compile_schemas(build_by_default: true) desktop_utils = find_program('desktop-file-validate', required: false) if desktop_utils.found() test('Validate desktop file', desktop_utils, args: [desktop_file]) endif compile_schemas = find_program('glib-compile-schemas', required: false) if compile_schemas.found() test('Validate schema file', compile_schemas, args: ['--strict', '--dry-run', meson.current_source_dir()]) endif subdir('metainfo') subdir('icons') phosh-antispam-3.4/data/metainfo/000077500000000000000000000000001456574116700170465ustar00rootroot00000000000000phosh-antispam-3.4/data/metainfo/meson.build000066400000000000000000000007421456574116700212130ustar00rootroot00000000000000appstream_args = [] appstream_file = i18n.merge_file( input: pkg_id + '.metainfo.xml.in', output: pkg_id + '.metainfo.xml', po_dir: pkg_po_dir, install: true, install_dir: join_paths(pkg_datadir, 'metainfo'), ) appstream_util = find_program('appstream-util', required: false) appstream_args += '--nonet' appstream_args += ['validate-relax', appstream_file] if appstream_util.found() test('Validate appstream file', appstream_util, args: appstream_args) endif phosh-antispam-3.4/data/metainfo/org.kop316.antispam.metainfo.xml.in000066400000000000000000000064051456574116700254270ustar00rootroot00000000000000 org.kop316.antispam CC0-1.0 GPL-3.0-or-later Anti-Spam A GTK template application Chris Talbot org.kop316.antispam.desktop

Phosh Anti-Spam is a program that monitors Gnome calls and automatically hangs up depending on the user's preferences.

By default, if the number calling you is not in your contact list, or you have the contact listed as "Spam", Phosh Anti-Spam will automatically tell GNOME Calls to hang up on the call. There are additionally these user configuration options:

  • Whether to only block certain calls vs only allowing certain calls.
  • Whether ot not to allow blocked numbers (also called "Anonymous Number" in GNOME Calls)
  • If the caller calls back within a user defined time (min) of the first (blocked) call, whether to allow the call through (in case it is a human trying to call back). Note this does not apply to contacts named "Spam", they will always be hung up on.
  • If you would like to match a certain type (or types) of number (for example, an area code or a number prefix) to let them through. For example, if you want to allow the area code `201` and the number prefix `312-555`, you could allow both combinations (and add others as well).
  • NOTE: GNOME Calls has all of the numbers to compare in the E.164 format.
  • The patterm match for numbers is located in a csv in `$XDG_CONFIG_DIR/phoshantispam/whitelist.csv` (`$HOME/.config/phoshantispam/whitelist.csv` in most cases). On start up, `phosh-antispam` loads all of the patterm values from this file (and saves to it if the list changes in the program). If one does not exist, `phosh-antispam` will create a file there on first run.
Main window https://gitlab.com/kop316/phosh-antispam/-/raw/master/data/metainfo/screenshot.png?inline=false offline-only 360 pointing keyboard touch https://gitlab.com/kop316/phosh-antispam https://gitlab.com/kop316/phosh-antispam/issues https://liberapay.com/kop316/donate https://gitlab.com/kop316/phosh-antispam/wikis/home GNOME ModernToolkit UserDocs chris@talbothome.com phosh-antispam workstation mobile
phosh-antispam-3.4/data/metainfo/screenshot.png000066400000000000000000003454321456574116700217440ustar00rootroot00000000000000PNG  IHDR IDATxw\?y&R" ( vAnDX1Ɩh~4Œ$1QS5vTQ(ب{rw?~qzcoovgnw},!:Nx}tmmmuYfoĜCuHIځȑ#|||wnhhH***zݻwbcckkk՘/۳g{G?ʫ߻woرyyyj,?\hh%%%/^T{|>HSSS[X̑477WTTxӧ*x]v-Y~ds3fϞ=z`NN·~x1U@ Xxi#ݴEZ]]]jjÇ[__iٺ.x#FXxqxx8S@}}}tt?pe<[Ucyyx"<<<==]-%=[ss#Gԛ@ :to JqHyyիWUʌ96o޼f͚+]vܹrJ<988;w]e²^@?Ry5ۗ.]z76!7޸t۷CBBR XdɒЏ->[u38x`G$h->BANNNw7bbb2d%wٲewO~ݵk**bŊ|j*&Μ9ZA8sLn[/^Qm >>>111GQ\$HpB&?cذagϞe>^xqرm/?gggyF]]]bbhNLLqIIW wصk[|0egbk޼y*뤝cbXQF~~~5qD/^wƌŘ1c fԩm/!OMMeQLLϫW3fh{l%%%mmm_ΎYD-,,9"իWnӯ\}ON%$$H<Znϻ"mA_D.2/Ϟ=T0aBcc#{=7o8p`kxmz'LBɌ9y9sF#oxЊ8T^[% Ju] Kux2I񇼘c׮]L23`*s䑷lxK.)Έ`6gSSd}{Wj ()57M@...M&cLLDnT(ݻU|۷o_~}SSSksڵnٲ壏>sSNP* !d_+W2&MAe+kBBƒd&hm^^^7n\zoI"]qUvuwޝ盚N:ͩlfzQ`ggts=~:33ܹs˖-N25`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ZHVB222~;vDGGB|o.tRdffl޼Ή0plذa֭tk֬;f.?sEDDpI&?NG.\x?BGTTTFFˏ=g>d2!gΜ̤J2;;QI^*Zv˖-SL?q5͛s(дAT?{Ymmmt:,,ejkk !}۶mnjj*6eʔbv}7qh4dcǮ_^YYj}}},Y-p n:77*_,JF ˜iРAglw֏x-VosϞ=;sL:xErTںzYA k.ߨן,0`;A~C!p8w j8w;xC!p8w;'0.bo|r___K`ضm۫j=Mh~睝-]y„ "ѣ. PVQQ1h K`D%"X{˲.j-]!pm۶EECSND`4۷?^{ Z2:IENDB`phosh-antispam-3.4/data/org.kop316.antispam-daemon.desktop.in.in000066400000000000000000000002571456574116700245420ustar00rootroot00000000000000[Desktop Entry] Name=Anti-Spam Comment=Daemon for Phosh Antispam Exec=@bindir@/phosh-antispam --daemon Terminal=false Type=Application NoDisplay=true X-GNOME-AutoRestart=true phosh-antispam-3.4/data/org.kop316.antispam.appdata.xml.in000066400000000000000000000004201456574116700234240ustar00rootroot00000000000000 org.kop316.antispam.desktop CC0-1.0 GPL-3.0-or-later

No description

phosh-antispam-3.4/data/org.kop316.antispam.desktop.in.in000066400000000000000000000010201456574116700232660ustar00rootroot00000000000000[Desktop Entry] Name=Anti-Spam Comment=Application to block spam on GNOME Calls Exec=@bindir@/phosh-antispam # Translators: Do NOT translate. This is an icon file name. Icon=org.kop316.antispam Terminal=false Type=Application StartupNotify=true Categories=Utility;GTK;GNOME; # Translators: Do NOT translate the semicolon. keywords should # also end with a semicolon Keywords=Utility;GTK;GNOME; DBusActivatable=true # Translators: Do NOT translate NOR transliterate (these are enum types) X-Purism-FormFactor=Workstation;Mobile; phosh-antispam-3.4/data/org.kop316.antispam.gschema.xml000066400000000000000000000032771456574116700230310ustar00rootroot00000000000000 "" Version of the application Version of the application false Enable Anti-Spam Enable all spam filtering. true Allow Callback Allow number through on callback. 1 Callback Grace Period Time in minutes to allow a callback. false Allow Anonymous Numbers Allow a caller without a number. false Silence instead of hangup Silence the phone call instead of hanging up. false Enable Blacklist Make Phosh Antispam work with blacklist instead of whitelist. false Dark Theme Dark Theme Enabled. phosh-antispam-3.4/logo.png000066400000000000000000000060151456574116700160030ustar00rootroot00000000000000PNG  IHDR\rf IDATxolU[00 l4jgOD8fA 1>({ s1BJhFbR䏥zك;c997=wf&;F` #a00F` #a00F` #a00F` #a00F` #a00F` #a00F` #a00F` #a0,zpcj:t\HM׳5+5 4{f:bZ(ttpcf=>TuHIR4U*h= Mjln2ÌTXk{ z`Ij4Q)cKZhJ$waDBjڴ-O>ޕ jV돸HȜ:_ѯ0/I*Z|V|ABdZMsN#U׻2FFYk2Y//^9w{ wCBKUuz7JNصُjM}w"΍k:xz7D/cW92HRM^†860k ؙ v/Cv_{X.];~骽G!e1c>J\-@KW{[flҔLz׳5]:tlaؠ׎G<7IzSYP*3}jSc=K(_v/O>ʞb7Nzބw'{ [{xI[gtǭǤ'Hj]1mc3m1m2^g[p ikmKOg4}Ouˌ@[7d4sO8H=d\_G ג;L#dQɠ\:{!_#:q].®Nu ;o:`͙umL `e. `0qټ2Os9EDܩ.3@tѓ,u +;Yn;_qu ⲅ8X[3s0&@߾ \dToG<0t[n>f;t ~V br3ִi[r"6𵉿@Y Ob`x3*ZeLǁgR"ꩭYnAq|TWH,y)]%خ ]aJ0O>ʞb7Nzބw'{ *#P[k[7IO<Ԣbڼ-b3m1m2^g[p ikmKOg4}M}3nh놌fN Gxlk4?ur1?սIx`^kV4|$(z`Uo?T5+ te4 eRD%N@ Ipwvu#yOq#n,wpmcbp#.v7 `0qټptOt/:6&S]g.#70Xv'mDܡce勍k:|DlG!!3xo_AJW*׷#RböfQ3{ :qvo?wxD\m9}qmޙGFkڴ-Bg_|UU_i_jz嬆'10h<C2MyBGC#U=57-(7i6eU O1v]ОKZ"݉:,W/ڷhFFz/WwԽ0sPE45?$49МYbꌩqeҼG 00F` #a00F` #a00F` #a00F` #a00F` #a00F` #a00F` #a00F` #a00F` #a00F` /QO unIENDB`phosh-antispam-3.4/meson.build000066400000000000000000000102331456574116700164740ustar00rootroot00000000000000project( 'phosh-antispam', 'c', version: '3.4', meson_version: '>= 0.56.0', license: 'GPL3+', default_options: [ 'c_std=gnu11', 'warning_level=1', 'buildtype=debugoptimized' ]) pkg_name = meson.project_name() pkg_id = 'org.kop316.antispam' pkg_version = meson.project_version() pkg_is_debug = get_option('buildtype').startswith('debug') pkg_prefix = get_option('prefix') pkg_srcdir = meson.project_source_root() pkg_builddir = meson.project_build_root() pkg_bindir = join_paths(pkg_prefix, get_option('bindir')) pkg_libdir = join_paths(pkg_prefix, get_option('libdir')) pkg_localedir = join_paths(pkg_prefix, get_option('localedir')) pkg_datadir = join_paths(pkg_prefix, get_option('datadir')) pkg_schemadir = join_paths(pkg_datadir, 'glib-2.0', 'schemas') pkg_po_dir = join_paths(pkg_srcdir, 'po') top_inc = include_directories('.') src_inc = include_directories('src') i18n = import('i18n') gnome = import('gnome') cc = meson.get_compiler('c') config_h = configuration_data() config_h.set_quoted('PACKAGE_VERSION', meson.project_version()) config_h.set_quoted('GETTEXT_PACKAGE', 'phosh-antispam') config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))) config_h.set('NDEBUG', (not pkg_is_debug)) config_h.set('G_DISABLE_ASSERT', (not pkg_is_debug)) config_h.set('G_DISABLE_CAST_CHECKS', (not pkg_is_debug)) config_h.set_quoted('GETTEXT_PACKAGE', pkg_name) config_h.set_quoted('PACKAGE_NAME', pkg_name) config_h.set_quoted('PACKAGE_ID', pkg_id) config_h.set_quoted('PACKAGE_LOCALE_DIR', pkg_localedir) configure_file(output: 'config.h', configuration: config_h) add_project_arguments([ '-I' + meson.project_build_root(), '-DHAVE_CONFIG_H', ], language: 'c') includes = [ include_directories('.'), include_directories('src') ] project_c_args = [] test_c_args = [ '-Wcast-align', '-Wdeclaration-after-statement', '-Werror=address', '-Werror=array-bounds', '-Werror=empty-body', '-Werror=implicit', '-Werror=implicit-function-declaration', '-Werror=incompatible-pointer-types', '-Werror=init-self', '-Werror=int-conversion', '-Werror=int-to-pointer-cast', '-Werror=main', '-Werror=misleading-indentation', '-Werror=missing-braces', '-Werror=missing-include-dirs', '-Werror=nonnull', '-Werror=overflow', '-Werror=parenthesis', '-Werror=pointer-arith', '-Werror=pointer-to-int-cast', '-Werror=redundant-decls', '-Werror=return-type', '-Werror=sequence-point', '-Werror=shadow', '-Werror=strict-prototypes', '-Werror=trigraphs', '-Werror=undef', '-Werror=write-strings', '-Wformat-nonliteral', '-Wignored-qualifiers', '-Wimplicit-function-declaration', '-Wlogical-op', '-Wmissing-declarations', '-Wmissing-format-attribute', '-Wmissing-include-dirs', '-Wmissing-noreturn', '-Wnested-externs', '-Wno-cast-function-type', '-Wno-dangling-pointer', '-Wno-missing-field-initializers', '-Wno-sign-compare', '-Wno-unused-parameter', '-Wold-style-definition', '-Wpointer-arith', '-Wredundant-decls', '-Wstrict-prototypes', '-Wswitch-default', '-Wswitch-enum', '-Wundef', '-Wuninitialized', '-Wunused', '-fno-strict-aliasing', ['-Werror=format-security', '-Werror=format=2'], ] if get_option('buildtype') != 'plain' test_c_args += '-fstack-protector-strong' endif foreach arg: test_c_args if cc.has_multi_arguments(arg) project_c_args += arg endif endforeach add_project_arguments(project_c_args, language: 'c') run_data = configuration_data() run_data.set('ABS_BUILDDIR', meson.current_build_dir()) run_data.set('ABS_SRCDIR', meson.current_source_dir()) configure_file( input: 'run.in', output: 'run', configuration: run_data) subdir('data') subdir('src') subdir('po') subdir('unit') # gnome.post_install() is available since meson 0.59.0 # Distributions use their own tooling (e.g. postinst, triggers, etc) # so it is okay if the post_install() is not run on distro builds if meson.version().version_compare('>=0.59.0') gnome.post_install( glib_compile_schemas: true, gtk_update_icon_cache: true, update_desktop_database: true, ) else meson.add_install_script('build-aux/meson_post_install.py') endif phosh-antispam-3.4/org.kop316.antispam.json000066400000000000000000000015541456574116700206570ustar00rootroot00000000000000{ "app-id" : "org.kop316.antispam", "runtime" : "org.gnome.Platform", "runtime-version" : "master", "sdk" : "org.gnome.Sdk", "command" : "phosh-antispam", "finish-args" : [ "--share=network", "--share=ipc", "--socket=fallback-x11", "--device=dri", "--socket=wayland" ], "cleanup" : [ "/include", "/lib/pkgconfig", "/man", "/share/doc", "/share/gtk-doc", "/share/man", "/share/pkgconfig", "*.la", "*.a" ], "modules" : [ { "name" : "phosh-antispam", "builddir" : true, "buildsystem" : "meson", "sources" : [ { "type" : "git", "url" : "file:///home/chris/Projects" } ] } ] } phosh-antispam-3.4/po/000077500000000000000000000000001456574116700147515ustar00rootroot00000000000000phosh-antispam-3.4/po/LINGUAS000066400000000000000000000000001456574116700157640ustar00rootroot00000000000000phosh-antispam-3.4/po/POTFILES000066400000000000000000000003071456574116700161210ustar00rootroot00000000000000data/org.kop316.antispam.desktop.in data/org.kop316.antispam.appdata.xml.in data/org.kop316.antispam.gschema.xml src/ui/aspam-pattern-row.ui src/ui/aspam-preferences-window.ui src/ui/aspam-window.ui phosh-antispam-3.4/po/meson.build000066400000000000000000000000571456574116700171150ustar00rootroot00000000000000i18n.gettext('phosh-antispam', preset: 'glib') phosh-antispam-3.4/run.in000077500000000000000000000006231456574116700154730ustar00rootroot00000000000000#!/bin/bash set -e ABS_BUILDDIR='@ABS_BUILDDIR@' ABS_SRCDIR='@ABS_SRCDIR@' if [ "${PHOSH_ANTISPAM_GDB}" = 1 ]; then echo "Running phosh-antispam under gdb" WRAPPER="gdb --directory=${ABS_BUILDDIR}/src --args" fi export GSETTINGS_SCHEMA_DIR="${ABS_BUILDDIR}/data" set -x export MALLOC_PERTURB_="$(($RANDOM % 255 + 1))" MALLOC_CHECK_=2 exec ${WRAPPER} "${ABS_BUILDDIR}/src/phosh-antispam" "$@" phosh-antispam-3.4/src/000077500000000000000000000000001456574116700151225ustar00rootroot00000000000000phosh-antispam-3.4/src/aspam-application.c000066400000000000000000000154751456574116700207040ustar00rootroot00000000000000/* aspam-application.c * * Copyright 2021-2022 Chris Talbot * * 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 3 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, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #include "config.h" #include "version.h" #include "aspam-preferences-window.h" #include "aspam-application.h" #include "aspam-client.h" #include "aspam-debug-info.h" #include "aspam-settings.h" #include "aspam-window.h" struct _ASpamApplication { AdwApplication parent_instance; gboolean daemon; gboolean daemon_running; GtkWindow *main_window; gboolean app_debug; ASpamSettings *settings; ASpamClient *client; }; G_DEFINE_TYPE (ASpamApplication, aspam_application, ADW_TYPE_APPLICATION) ASpamApplication * aspam_application_new (const char *application_id, GApplicationFlags flags) { g_return_val_if_fail (application_id != NULL, NULL); return g_object_new (ASPAM_TYPE_APPLICATION, "application-id", application_id, "flags", flags, NULL); } static int aspam_handle_local_options (GApplication *application, GVariantDict *options) { ASpamApplication *self = (ASpamApplication *)application; if (g_variant_dict_contains (options, "version")) { g_print ("%s, git version: %s\n", PACKAGE_VERSION, PACKAGE_VCS_VERSION); return 0; } if (g_variant_dict_contains (options, "debug")) { g_setenv ("G_MESSAGES_DEBUG", "all", TRUE); self->app_debug = TRUE; } self->daemon = FALSE; self->app_debug = FALSE; if (g_variant_dict_contains (options, "daemon")) { /* Hold application only the first time daemon mode is set */ if (!self->daemon) g_application_hold (application); self->daemon = TRUE; g_debug ("Application marked as daemon"); } return -1; } static void aspam_application_startup (GApplication *application) { ASpamApplication *self = (ASpamApplication *)application; g_info ("%s %s, git version: %s", PACKAGE_NAME, PACKAGE_VERSION, PACKAGE_VCS_VERSION); G_APPLICATION_CLASS (aspam_application_parent_class)->startup (application); g_set_application_name ("Anti-Spam"); gtk_window_set_default_icon_name (PACKAGE_ID); self->settings = aspam_settings_get_default (); self->client = aspam_client_get_default (); } static gboolean on_widget_deleted (GtkWidget *widget, GdkEvent *event, gpointer data) { /* Reset the window when closing */ aspam_window_reset (ASPAM_WINDOW (widget)); return FALSE; } static void aspam_application_activate (GApplication *app) { ASpamApplication *self = (ASpamApplication *)app; if (!self->main_window) { self->main_window = g_object_new (ASPAM_TYPE_WINDOW, "application", app, NULL); g_object_add_weak_pointer (G_OBJECT (self->main_window), (gpointer *)&self->main_window); g_signal_connect (G_OBJECT (self->main_window), "close_request", G_CALLBACK (on_widget_deleted), app); } if ((!self->daemon && !self->daemon_running) || (self->daemon_running)) gtk_window_present (GTK_WINDOW (self->main_window)); else { self->daemon_running = TRUE; gtk_window_set_hide_on_close (GTK_WINDOW (self->main_window), self->daemon_running); } } static void aspam_application_class_init (ASpamApplicationClass *klass) { GApplicationClass *app_class = G_APPLICATION_CLASS (klass); app_class->handle_local_options = aspam_handle_local_options; app_class->startup = aspam_application_startup; app_class->activate = aspam_application_activate; } static void aspam_application_show_preferences (GSimpleAction *action, GVariant *state, gpointer user_data) { GtkApplication *app = GTK_APPLICATION (user_data); GtkWindow *window = gtk_application_get_active_window (app); ASpamPreferencesWindow *preferences = aspam_preferences_window_new (); gtk_window_set_transient_for (GTK_WINDOW (preferences), window); gtk_window_present (GTK_WINDOW (preferences)); } static void aspam_application_about_action (GSimpleAction *action, GVariant *parameter, gpointer user_data) { ASpamApplication *self = user_data; GtkWindow *window = NULL; g_autofree char *debug_info = NULL; const char *authors[] = { "Chris Talbot https://www.gitlab.com/kop316/", NULL }; const char *artists[] = { "Brage Fugseth", NULL }; g_assert (ASPAM_IS_APPLICATION (self)); window = gtk_application_get_active_window (GTK_APPLICATION (self)); debug_info = aspam_generate_debug_info (); adw_show_about_window (window, "application-name", GETTEXT_PACKAGE, "application-icon", PACKAGE_ID, "version", PACKAGE_VCS_VERSION, "developers", authors, "artists", artists, "copyright", "© 2021-2022 Chris Talbot", "website", "https://gitlab.com/kop316/phosh-antispam", "issue-url", "https://gitlab.com/kop316/phosh-antispam/-/issues", "debug-info", debug_info, "license-type", GTK_LICENSE_GPL_3_0, NULL); } static GOptionEntry cmd_options[] = { { "daemon", 0, G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, NULL, ("Whether to present the main window on startup"), NULL }, { "debug", 'd', 0, G_OPTION_ARG_NONE, G_OPTION_ARG_NONE, "Enable debugging output"}, { "version", 'v', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE, NULL, ("Show release version"), NULL }, { NULL } }; static const GActionEntry app_actions[] = { { "about", aspam_application_about_action }, { "preferences", aspam_application_show_preferences, NULL, NULL, NULL }, }; static void aspam_application_init (ASpamApplication *self) { g_action_map_add_action_entries (G_ACTION_MAP (self), app_actions, G_N_ELEMENTS (app_actions), self); g_application_add_main_option_entries (G_APPLICATION (self), cmd_options); } phosh-antispam-3.4/src/aspam-application.h000066400000000000000000000021521456574116700206750ustar00rootroot00000000000000/* aspam-application.h * * Copyright 2021-2022 Chris Talbot * * 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 3 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, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #include G_BEGIN_DECLS #define ASPAM_TYPE_APPLICATION (aspam_application_get_type ()) G_DECLARE_FINAL_TYPE (ASpamApplication, aspam_application, ASPAM, APPLICATION, AdwApplication) ASpamApplication *aspam_application_new (const char *application_id, GApplicationFlags flags); G_END_DECLS phosh-antispam-3.4/src/aspam-client.c000066400000000000000000000310271456574116700176460ustar00rootroot00000000000000/* aspam-client.c * * Copyright 2021 Chris Talbot * * 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 3 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, see . */ #define G_LOG_DOMAIN "aspam-client" #include "aspam-client.h" #include "aspam-settings.h" struct _ASpamClient { GObject parent_instance; /* dbus connection */ GDBusConnection *connection; unsigned int calls_watch_id; /* dbus proxy */ GDBusProxy *calls_phone_proxy; unsigned int calls_phone_signal_added_id; char *allow_callback_number; }; static gboolean aspamclient_remove_callback_number (gpointer user_data) { ASpamClient *self = user_data; g_debug ("Removing callback number"); g_clear_pointer (&self->allow_callback_number, g_free); return FALSE; } static void hang_up_call (ASpamClient *self, const char *interface, const char *objectpath, const char *id, gboolean allow_callback) { g_autoptr(GError) error = NULL; GDBusProxy *hangup_proxy; ASpamSettings *settings = aspam_settings_get_default (); hangup_proxy = g_dbus_proxy_new_sync ( self->connection, G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START | G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES | G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS, NULL, CALLS_SERVICE, objectpath, interface, NULL, &error); if (error != NULL) { g_warning ("Error making proxy: %s\n", error->message); return; } if (aspam_settings_get_silence (settings)) { g_debug ("Silencing call."); g_dbus_proxy_call_sync (hangup_proxy, "Silence", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); } if (!aspam_settings_get_silence (settings) || error) { if (error) { g_warning ("Error Silencing call: %s", error->message); g_clear_error (&error); g_warning ("Attempting to hang up instead"); } g_debug ("Hanging up call."); g_dbus_proxy_call_sync (hangup_proxy, "Hangup", NULL, G_DBUS_CALL_FLAGS_NONE, -1, NULL, &error); } g_object_unref (hangup_proxy); if (error != NULL) { g_warning ("Error making proxy call: %s\n", error->message); return; } if (allow_callback) { guint64 callback_timeout; g_clear_pointer (&self->allow_callback_number, g_free); if (!*id) { g_debug ("Caller was anonymous, not allowing callback"); return; } g_debug ("Allowing callback"); self->allow_callback_number = g_strdup (id); callback_timeout = 60 * aspam_settings_get_callback_timeout (settings); //Setting timeout to user defined timeout; g_timeout_add_seconds (callback_timeout, aspamclient_remove_callback_number, self); } else g_debug ("Not allowing callback"); } static void call_added_cb (GDBusConnection *connection, const char *sender_name, const char *object_path, const char *interface_name, const char *signal_name, GVariant *parameters, gpointer user_data) { ASpamClient *self = user_data; GVariant *properties, *properties_container, *interface_variant, *dict_variant; g_autofree char *objectpath = NULL; g_autofree char *interface = NULL; g_autofree char *id = NULL; g_autofree char *displayname = NULL; g_autofree char *protocol = NULL; gboolean encrypted, inbound; unsigned int match_allow_length; unsigned int match_allow_length_counter; guint32 state; GVariantDict dict; ASpamSettings *settings; char **match_allow; gboolean blacklist; g_debug ("Call Added!"); settings = aspam_settings_get_default (); blacklist = aspam_settings_get_blacklist (settings); g_variant_get (parameters, "(o@a{?*})", &objectpath, &properties_container); properties = g_variant_get_child_value (properties_container, 0); interface_variant = g_variant_get_child_value (properties, 0); dict_variant = g_variant_get_child_value (properties, 1); g_variant_get (interface_variant, "s", &interface); g_variant_dict_init (&dict, dict_variant); g_variant_dict_lookup (&dict, "Inbound", "b", &inbound); g_variant_dict_lookup (&dict, "State", "u", &state); g_variant_dict_lookup (&dict, "Id", "s", &id); g_variant_dict_lookup (&dict, "DisplayName", "s", &displayname); g_variant_dict_lookup (&dict, "Protocol", "s", &protocol); g_variant_dict_lookup (&dict, "Encrypted", "b", &encrypted); g_variant_unref (properties); g_variant_unref (interface_variant); g_variant_unref (dict_variant); if (!aspam_settings_get_enable_aspamclient (settings)) { g_debug ("Spam filtering is disabled!"); return; } if (g_strcmp0 (protocol, "tel") != 0) { g_debug ("Not a phone call, ignoring"); return; } if (state != CALLS_CALL_STATE_INCOMING) { g_debug ("State is not INCOMING: %u", state); return; } if (inbound == FALSE) { g_debug ("Inbound is not INCOMING: %d", inbound); return; } if (strlen (displayname) > 0) { g_autofree char *spam_test = NULL; spam_test = g_utf8_strdown (displayname, -1); if (g_strcmp0 (spam_test, "spam") != 0) { g_debug ("This is a contact, allowing"); return; } else { g_warning ("Contact Marked as spam"); hang_up_call (self, interface, objectpath, id, FALSE); return; } } if (g_strcmp0 (id, self->allow_callback_number) == 0) { g_debug ("Number calling back, allowing"); return; } match_allow = aspam_settings_get_match_list (settings); match_allow_length = g_strv_length (match_allow); for (match_allow_length_counter = 0; match_allow_length_counter < match_allow_length; match_allow_length_counter++) if ((match_allow[match_allow_length_counter] != NULL) && (match_allow[match_allow_length_counter][0] != '\0') && (strstr (id, match_allow[match_allow_length_counter]) != NULL)) { g_debug ("Number matches pattern %s", match_allow[match_allow_length_counter]); if (blacklist) { g_debug ("Blacklisted, hanging up on"); hang_up_call (self, interface, objectpath, id, aspam_settings_get_allow_callback (settings)); return; } else { g_debug ("Whitelisted, allowing"); return; } } g_debug ("Number does not match allowed list"); if (!(strlen (id) > 0)) { g_debug ("Id is blank, this is a blocked number"); if (aspam_settings_get_allow_blocked_numbers (settings)) { g_debug ("Allowing blocked number"); return; } else { g_warning ("Not allowing blocked number"); hang_up_call (self, interface, objectpath, id, aspam_settings_get_allow_callback (settings)); return; } } if (blacklist) { g_debug ("Using Blacklist, allowing call"); return; } else { g_debug ("Using Whitelist, hanging up on"); hang_up_call (self, interface, objectpath, id, aspam_settings_get_allow_callback (settings)); return; } } /* gdbus monitor --session -d org.gnome.Calls to observe behavior */ static void get_calls_object_manager_interface_cb (GObject *manager, GAsyncResult *res, gpointer user_data) { ASpamClient *self = user_data; g_autoptr(GError) error = NULL; self->calls_phone_proxy = g_dbus_proxy_new_finish (res, &error); if (self->calls_phone_proxy == NULL) g_warning ("Proxy is NULL"); if (error != NULL) g_warning ("Error in Calls Phone Proxy call: %s\n", error->message); else { g_debug ("Got Calls Phone Proxy"); self->calls_phone_signal_added_id = g_dbus_connection_signal_subscribe (self->connection, CALLS_SERVICE, FREEDESKTOP_OBJECT_MANAGER_INTERFACE, "InterfacesAdded", CALLS_PATH, NULL, G_DBUS_SIGNAL_FLAGS_NONE, (GDBusSignalCallback)call_added_cb, self, NULL); } } static void calls_appeared_cb (GDBusConnection *connection, const char *name, const char *name_owner, gpointer user_data) { ASpamClient *self = user_data; g_debug ("Calls Appeared"); self->connection = connection; g_dbus_proxy_new (self->connection, G_DBUS_PROXY_FLAGS_DO_NOT_AUTO_START, NULL, CALLS_SERVICE, CALLS_PATH, FREEDESKTOP_OBJECT_MANAGER_INTERFACE, NULL, get_calls_object_manager_interface_cb, self); } static void calls_vanished_cb (GDBusConnection *connection, const char *name, gpointer user_data) { ASpamClient *self = user_data; g_debug ("Calls Vanished"); if (G_IS_OBJECT (self->calls_phone_proxy)) { g_object_unref (self->calls_phone_proxy); g_dbus_connection_signal_unsubscribe (self->connection, self->calls_phone_signal_added_id); } } G_DEFINE_TYPE (ASpamClient, aspam_client, G_TYPE_OBJECT) static void aspam_client_constructed (GObject *object) { //ASpamClient *self = (ASpamClient *)object; G_OBJECT_CLASS (aspam_client_parent_class)->constructed (object); } static void aspam_client_finalize (GObject *object) { ASpamClient *self = (ASpamClient *)object; g_clear_pointer (&self->allow_callback_number, g_free); if (G_IS_OBJECT (self->calls_phone_proxy)) { g_object_unref (self->calls_phone_proxy); g_dbus_connection_signal_unsubscribe (self->connection, self->calls_phone_signal_added_id); } if (G_IS_DBUS_CONNECTION (self->connection)) g_dbus_connection_unregister_object (self->connection, self->calls_watch_id); g_object_remove_weak_pointer (G_OBJECT (self), (gpointer *)&self); G_OBJECT_CLASS (aspam_client_parent_class)->finalize (object); } static void aspam_client_class_init (ASpamClientClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->constructed = aspam_client_constructed; object_class->finalize = aspam_client_finalize; } static void aspam_client_init (ASpamClient *self) { } ASpamClient * aspam_client_get_default (void) { static ASpamClient *self; if (!self) { self = g_object_new (SPAM_TYPE_SPAMD, NULL); g_object_add_weak_pointer (G_OBJECT (self), (gpointer *)&self); self->calls_watch_id = g_bus_watch_name (G_BUS_TYPE_SESSION, CALLS_SERVICE, G_BUS_NAME_WATCHER_FLAGS_AUTO_START, (GBusNameAppearedCallback)calls_appeared_cb, (GBusNameVanishedCallback)calls_vanished_cb, self, NULL); } return self; } phosh-antispam-3.4/src/aspam-client.h000066400000000000000000000026011456574116700176470ustar00rootroot00000000000000/* main.c * * Copyright 2021 Chris Talbot * * 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 3 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, see . */ #pragma once #include #define CALLS_SERVICE "org.gnome.Calls" #define CALLS_PATH "/org/gnome/Calls" #define FREEDESKTOP_OBJECT_MANAGER_INTERFACE "org.freedesktop.DBus.ObjectManager" G_BEGIN_DECLS #define SPAM_TYPE_SPAMD (aspam_client_get_type ()) G_DECLARE_FINAL_TYPE (ASpamClient, aspam_client, SPAM, SPAMD, GObject) /* From Calls calls-call.h */ typedef enum { CALLS_CALL_STATE_ACTIVE = 1, CALLS_CALL_STATE_HELD, CALLS_CALL_STATE_DIALING, CALLS_CALL_STATE_ALERTING, CALLS_CALL_STATE_INCOMING, CALLS_CALL_STATE_WAITING, CALLS_CALL_STATE_DISCONNECTED } CallsCallState; ASpamClient *aspam_client_get_default (void); G_END_DECLS phosh-antispam-3.4/src/aspam-debug-info.c000066400000000000000000000146101456574116700204060ustar00rootroot00000000000000/* aspam-debug-info.h * * Copyright 2017–2022 Purism SPC * 2021-2023 Chris Talbot * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * SPDX-License-Identifier: LGPL-2.1-or-later */ #include "config.h" #include "version.h" #include "aspam-debug-info.h" /* Copied and adapted from https://gitlab.gnome.org/GNOME/libadwaita/-/raw/main/demo/adw-demo-debug-info.c */ static void get_gtk_info (const char **backend, const char **renderer) { GdkDisplay *display = gdk_display_get_default (); GdkSurface *surface; GskRenderer *gsk_renderer; if (!g_strcmp0 (G_OBJECT_TYPE_NAME (display), "GdkX11Display")) *backend = "X11"; else if (!g_strcmp0 (G_OBJECT_TYPE_NAME (display), "GdkWaylandDisplay")) *backend = "Wayland"; else if (!g_strcmp0 (G_OBJECT_TYPE_NAME (display), "GdkBroadwayDisplay")) *backend = "Broadway"; else if (!g_strcmp0 (G_OBJECT_TYPE_NAME (display), "GdkWin32Display")) *backend = "Windows"; else if (!g_strcmp0 (G_OBJECT_TYPE_NAME (display), "GdkMacosDisplay")) *backend = "macOS"; else *backend = G_OBJECT_TYPE_NAME (display); surface = gdk_surface_new_toplevel (display); gsk_renderer = gsk_renderer_new_for_surface (surface); if (!g_strcmp0 (G_OBJECT_TYPE_NAME (gsk_renderer), "GskVulkanRenderer")) *renderer = "Vulkan"; else if (!g_strcmp0 (G_OBJECT_TYPE_NAME (gsk_renderer), "GskGLRenderer")) *renderer = "GL"; else if (!g_strcmp0 (G_OBJECT_TYPE_NAME (gsk_renderer), "GskCairoRenderer")) *renderer = "Cairo"; else *renderer = G_OBJECT_TYPE_NAME (gsk_renderer); gsk_renderer_unrealize (gsk_renderer); g_object_unref (gsk_renderer); gdk_surface_destroy (surface); } char * aspam_generate_debug_info (void) { GString *string = g_string_new (NULL); g_string_append_printf (string, "phosh-antispam: %s\n", PACKAGE_VCS_VERSION); g_string_append (string, "\n"); g_string_append (string, "Compiled against:\n"); g_string_append_printf (string, "- GLib: %d.%d.%d\n", GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); g_string_append_printf (string, "- GTK: %d.%d.%d\n", GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); g_string_append_printf (string, "- LibAdwaita: %d.%d.%d\n", ADW_MAJOR_VERSION, ADW_MINOR_VERSION, ADW_MICRO_VERSION); g_string_append (string, "\n"); g_string_append (string, "Running against:\n"); g_string_append_printf (string, "- GLib: %d.%d.%d\n", glib_major_version, glib_minor_version, glib_micro_version); g_string_append_printf (string, "- GTK: %d.%d.%d\n", gtk_get_major_version (), gtk_get_minor_version (), gtk_get_micro_version ()); g_string_append_printf (string, "- Libadwaita: %d.%d.%d\n", adw_get_major_version (), adw_get_minor_version (), adw_get_micro_version ()); g_string_append (string, "\n"); { char *os_name = g_get_os_info (G_OS_INFO_KEY_NAME); char *os_version = g_get_os_info (G_OS_INFO_KEY_VERSION); g_string_append (string, "System:\n"); g_string_append_printf (string, "- Name: %s\n", os_name); g_string_append_printf (string, "- Version: %s\n", os_version); g_string_append (string, "\n"); g_free (os_name); g_free (os_version); } { const char *backend, *renderer; get_gtk_info (&backend, &renderer); g_string_append (string, "GTK:\n"); g_string_append_printf (string, "- GDK backend: %s\n", backend); g_string_append_printf (string, "- GSK renderer: %s\n", renderer); g_string_append (string, "\n"); } { const char *desktop = g_getenv ("XDG_CURRENT_DESKTOP"); const char *session_desktop = g_getenv ("XDG_SESSION_DESKTOP"); const char *session_type = g_getenv ("XDG_SESSION_TYPE"); const char *lang = g_getenv ("LANG"); const char *builder = g_getenv ("INSIDE_GNOME_BUILDER"); const char *gtk_debug = g_getenv ("GTK_DEBUG"); const char *gtk_theme = g_getenv ("GTK_THEME"); const char *adw_debug_color_scheme = g_getenv ("ADW_DEBUG_COLOR_SCHEME"); const char *adw_debug_high_contrast = g_getenv ("ADW_DEBUG_HIGH_CONTRAST"); const char *adw_disable_portal = g_getenv ("ADW_DISABLE_PORTAL"); g_string_append (string, "Environment:\n"); g_string_append_printf (string, "- Desktop: %s\n", desktop); g_string_append_printf (string, "- Session: %s (%s)\n", session_desktop, session_type); g_string_append_printf (string, "- Language: %s\n", lang); g_string_append_printf (string, "- Running inside Builder: %s\n", builder ? "yes" : "no"); if (gtk_debug) g_string_append_printf (string, "- GTK_DEBUG: %s\n", gtk_debug); if (gtk_theme) g_string_append_printf (string, "- GTK_THEME: %s\n", gtk_theme); if (adw_debug_color_scheme) g_string_append_printf (string, "- ADW_DEBUG_COLOR_SCHEME: %s\n", adw_debug_color_scheme); if (adw_debug_high_contrast) g_string_append_printf (string, "- ADW_DEBUG_HIGH_CONTRAST: %s\n", adw_debug_high_contrast); if (adw_disable_portal) g_string_append_printf (string, "- ADW_DISABLE_PORTAL: %s\n", adw_disable_portal); } return g_string_free (string, FALSE); } phosh-antispam-3.4/src/aspam-debug-info.h000066400000000000000000000021251456574116700204110ustar00rootroot00000000000000/* aspam-debug-info.h * * Copyright 2017–2022 Purism SPC * 2021-2023 Chris Talbot * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include /* Copied and adapted from https://gitlab.gnome.org/GNOME/libadwaita/-/raw/main/demo/adw-demo-debug-info.c */ G_BEGIN_DECLS char *aspam_generate_debug_info (void); G_END_DECLS phosh-antispam-3.4/src/aspam-pattern-row.c000066400000000000000000000053751456574116700206610ustar00rootroot00000000000000/* aspam-pattern-row-client.c * * Copyright 2021 Chris Talbot * * 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 3 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, see . */ #define G_LOG_DOMAIN "aspam-pattern-row" #include "aspam-pattern-row.h" #include "aspam-settings.h" struct _ASpamPatternRow { AdwActionRow parent_instance; }; static GType aspam_pattern_row_get_type (void); G_DEFINE_TYPE (ASpamPatternRow, aspam_pattern_row, ADW_TYPE_ACTION_ROW) static void delete_button_clicked_cb (ASpamPatternRow *self) { ASpamSettings *settings; const char *pattern; GtkWidget *expander_row; settings = aspam_settings_get_default (); pattern = adw_action_row_get_subtitle (ADW_ACTION_ROW (self)); aspam_settings_delete_match (settings, pattern); /* To dispose: You need to get the parent and have the parent remove it. */ expander_row = gtk_widget_get_parent (GTK_WIDGET (self)); gtk_list_box_remove (GTK_LIST_BOX (expander_row), (GTK_WIDGET (self))); } static void aspam_pattern_row_constructed (GObject *object) { //ASpamPatternRow *self = (ASpamPatternRow *)object; G_OBJECT_CLASS (aspam_pattern_row_parent_class)->constructed (object); } static void aspam_pattern_row_dispose (GObject *object) { //ASpamPatternRow *self = (ASpamPatternRow *)object; G_OBJECT_CLASS (aspam_pattern_row_parent_class)->dispose (object); } static void aspam_pattern_row_class_init (ASpamPatternRowClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); object_class->constructed = aspam_pattern_row_constructed; object_class->dispose = aspam_pattern_row_dispose; gtk_widget_class_set_template_from_resource (widget_class, "/org/kop316/antispam/" "ui/aspam-pattern-row.ui"); //gtk_widget_class_bind_template_child (widget_class, ASpamPatternRow, new_whitelist_button); gtk_widget_class_bind_template_callback (widget_class, delete_button_clicked_cb); } static void aspam_pattern_row_init (ASpamPatternRow *self) { gtk_widget_init_template (GTK_WIDGET (self)); } ASpamPatternRow * aspam_pattern_row_new (void) { return g_object_new (ASPAM_TYPE_PATTERN_ROW, NULL); } phosh-antispam-3.4/src/aspam-pattern-row.h000066400000000000000000000017141456574116700206570ustar00rootroot00000000000000/* aspam-pattern-row.h * * Copyright 2021 Chris Talbot * * 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 3 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, see . */ #pragma once #include G_BEGIN_DECLS #define ASPAM_TYPE_PATTERN_ROW (aspam_pattern_row_get_type ()) G_DECLARE_FINAL_TYPE (ASpamPatternRow, pattern_row, ASPAM, PATTERN_ROW, AdwActionRow) ASpamPatternRow *aspam_pattern_row_new (void); G_END_DECLS phosh-antispam-3.4/src/aspam-preferences-window.c000066400000000000000000000051601456574116700221750ustar00rootroot00000000000000/* aspam-preferences-window.h * * Copyright 2021-2022 Chris Talbot * * 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 3 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, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #include "aspam-preferences-window.h" #include "aspam-settings.h" #include "aspam-client.h" struct _ASpamPreferencesWindow { AdwPreferencesWindow parent_instance; //Appearance Settings AdwActionRow *enable_dark_theme_row; GtkSwitch *enable_dark_theme_switch; }; G_DEFINE_TYPE (ASpamPreferencesWindow, aspam_preferences_window, ADW_TYPE_PREFERENCES_WINDOW) ASpamPreferencesWindow * aspam_preferences_window_new (void) { return g_object_new (ADW_TYPE_DEMO_PREFERENCES_WINDOW, NULL); } static gboolean enable_theme_switch_flipped_cb (GtkSwitch *widget, gboolean prefer_dark_theme, ASpamPreferencesWindow *self) { ASpamSettings *settings = aspam_settings_get_default (); aspam_settings_set_dark_theme (settings, prefer_dark_theme); return FALSE; } static void aspam_window_populate (ASpamPreferencesWindow *self) { ASpamSettings *settings = aspam_settings_get_default (); g_assert (ADW_IS_PREFERENCES_WINDOW (self)); gtk_switch_set_active (GTK_SWITCH (self->enable_dark_theme_switch), aspam_settings_get_dark_theme (settings)); } static void aspam_preferences_window_class_init (ASpamPreferencesWindowClass *klass) { GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); gtk_widget_class_set_template_from_resource (widget_class, "/org/kop316/antispam/ui/aspam-preferences-window.ui"); //Appearance Settings gtk_widget_class_bind_template_child (widget_class, ASpamPreferencesWindow, enable_dark_theme_switch); gtk_widget_class_bind_template_child (widget_class, ASpamPreferencesWindow, enable_dark_theme_row); gtk_widget_class_bind_template_callback (widget_class, enable_theme_switch_flipped_cb); } static void aspam_preferences_window_init (ASpamPreferencesWindow *self) { gtk_widget_init_template (GTK_WIDGET (self)); aspam_window_populate (self); } phosh-antispam-3.4/src/aspam-preferences-window.h000066400000000000000000000021171456574116700222010ustar00rootroot00000000000000/* aspam-preferences-window.h * * Copyright 2021-2022 Chris Talbot * * 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 3 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, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #include G_BEGIN_DECLS #define ADW_TYPE_DEMO_PREFERENCES_WINDOW (aspam_preferences_window_get_type ()) G_DECLARE_FINAL_TYPE (ASpamPreferencesWindow, aspam_preferences_window, ADW, ASPAM_PREFERENCES_WINDOW, AdwPreferencesWindow) ASpamPreferencesWindow *aspam_preferences_window_new (void); G_END_DECLS phosh-antispam-3.4/src/aspam-settings.c000066400000000000000000000303611456574116700202300ustar00rootroot00000000000000/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ /* aspam-settings.c * * Copyright 2021 Chris Talbot * * 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 3 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, see . * * Author(s): * Chris Talbot * * SPDX-License-Identifier: GPL-3.0-or-later */ #define G_LOG_DOMAIN "aspam-settings" #include "config.h" #include "aspam-settings.h" /** * SECTION: aspam-settings * @title: ASpamSettings * @short_description: The Application settings * @include: "aspam-settings.h" * * A class that handles application specific settings, and * to store them to disk. */ struct _ASpamSettings { GObject parent_instance; GSettings *app_settings; //App Settings int prefer_dark_theme; gboolean enable_aspamclient; gboolean allow_blocked_numbers; gboolean allow_callback; gboolean silence; gboolean blacklist; guint64 callback_timeout; char **match_list; }; G_DEFINE_TYPE (ASpamSettings, aspam_settings, G_TYPE_OBJECT) int aspam_settings_get_dark_theme (ASpamSettings *self) { return self->prefer_dark_theme; } static void adw_style_manager_set_dark_theme (int prefer_dark_theme) { AdwStyleManager *adw_style_manager = adw_style_manager_get_default (); if (prefer_dark_theme) adw_style_manager_set_color_scheme (adw_style_manager, ADW_COLOR_SCHEME_PREFER_DARK); else adw_style_manager_set_color_scheme (adw_style_manager, ADW_COLOR_SCHEME_DEFAULT); } void aspam_settings_set_dark_theme (ASpamSettings *self, int prefer_dark_theme) { self->prefer_dark_theme = prefer_dark_theme; /* Set the setting right away */ g_settings_set_boolean (self->app_settings, "dark-theme", self->prefer_dark_theme); g_settings_apply (self->app_settings); adw_style_manager_set_dark_theme (self->prefer_dark_theme); } gboolean aspam_settings_get_blacklist (ASpamSettings *self) { g_assert (ASPAM_IS_SETTINGS (self)); return self->blacklist; } void aspam_settings_set_blacklist (ASpamSettings *self, gboolean enable) { g_assert (ASPAM_IS_SETTINGS (self)); self->blacklist = enable; g_settings_set_boolean (self->app_settings, "blacklist", self->blacklist); g_settings_apply (self->app_settings); } gboolean aspam_settings_get_silence (ASpamSettings *self) { g_assert (ASPAM_IS_SETTINGS (self)); return self->silence; } void aspam_settings_set_silence (ASpamSettings *self, gboolean enable) { g_assert (ASPAM_IS_SETTINGS (self)); self->silence = enable; g_settings_set_boolean (self->app_settings, "silence", self->silence); g_settings_apply (self->app_settings); } gboolean aspam_settings_get_enable_aspamclient (ASpamSettings *self) { g_assert (ASPAM_IS_SETTINGS (self)); return self->enable_aspamclient; } void aspam_settings_set_enable_aspamclient (ASpamSettings *self, gboolean enable) { g_assert (ASPAM_IS_SETTINGS (self)); self->enable_aspamclient = enable; g_settings_set_boolean (self->app_settings, "enable", self->enable_aspamclient); g_settings_apply (self->app_settings); } gboolean aspam_settings_get_allow_blocked_numbers (ASpamSettings *self) { g_assert (ASPAM_IS_SETTINGS (self)); return self->allow_blocked_numbers; } void aspam_settings_set_allow_blocked_numbers (ASpamSettings *self, gboolean enable) { g_assert (ASPAM_IS_SETTINGS (self)); self->allow_blocked_numbers = enable; g_settings_set_boolean (self->app_settings, "allow-blocked-numbers", self->allow_blocked_numbers); g_settings_apply (self->app_settings); } gboolean aspam_settings_get_allow_callback (ASpamSettings *self) { g_assert (ASPAM_IS_SETTINGS (self)); return self->allow_callback; } void aspam_settings_set_allow_callback (ASpamSettings *self, gboolean enable) { g_assert (ASPAM_IS_SETTINGS (self)); self->allow_callback = enable; g_settings_set_boolean (self->app_settings, "allow-callback", self->allow_callback); g_settings_apply (self->app_settings); } guint64 aspam_settings_get_callback_timeout (ASpamSettings *self) { g_assert (ASPAM_IS_SETTINGS (self)); return self->callback_timeout; } void aspam_settings_set_callback_timeout (ASpamSettings *self, guint64 timeout) { g_assert (ASPAM_IS_SETTINGS (self)); self->callback_timeout = timeout; g_settings_set_uint64 (self->app_settings, "callback-timeout", self->callback_timeout); g_settings_apply (self->app_settings); } char ** aspam_settings_get_match_list (ASpamSettings *self) { g_assert (ASPAM_IS_SETTINGS (self)); return self->match_list; } char *aspam_settings_make_csv_match_list (char **match_list) { guint match_list_length = 0; GString *new_csv_string; match_list_length = g_strv_length (match_list); new_csv_string = g_string_new (NULL); for (guint i = 0; i < match_list_length; i++) if (match_list[i] != NULL && match_list[i][0] != '\0') { new_csv_string = g_string_append (new_csv_string, match_list[i]); if (i + 1 != match_list_length) new_csv_string = g_string_append (new_csv_string, ","); } if (new_csv_string->str[new_csv_string->len - 1] == ',') g_string_truncate (new_csv_string, new_csv_string->len - 1); return g_string_free (new_csv_string, FALSE); } void aspam_settings_set_match_list (ASpamSettings *self, char **match_list) { g_auto(GStrv) new_match_list = NULL; g_autoptr(GError) error = NULL; g_autofree char *csv = NULL; g_autoptr(GFile) whitelist_file = NULL; int size = 0; g_assert (ASPAM_IS_SETTINGS (self)); csv = aspam_settings_make_csv_match_list (match_list); if (csv) size = strlen (csv); else return; whitelist_file = g_file_new_build_filename (g_get_user_config_dir (), "phoshantispam", "whitelist.csv", NULL); if (!g_file_replace_contents (whitelist_file, csv, size, NULL, FALSE, G_FILE_CREATE_NONE, NULL, NULL, &error)) { g_warning ("Failed to write to file %s: %s", g_file_peek_path (whitelist_file), error->message); return; } g_strfreev (self->match_list); self->match_list = g_strsplit (csv, ",", -1); return; } void aspam_settings_delete_match (ASpamSettings *self, const char *match) { g_auto(GStrv) new_match_list = NULL; g_autofree char *new_csv = NULL; GString *new_csv_string; guint match_list_length; g_assert (ASPAM_IS_SETTINGS (self)); match_list_length = g_strv_length (self->match_list); new_csv_string = g_string_new (NULL); for (guint i = 0; i < match_list_length; i++) if (g_strcmp0 (self->match_list[i], match) != 0) { new_csv_string = g_string_append (new_csv_string, self->match_list[i]); if (i + 1 != match_list_length) new_csv_string = g_string_append (new_csv_string, ","); } new_csv = g_string_free (new_csv_string, FALSE); new_match_list = g_strsplit (new_csv, ",", -1); aspam_settings_set_match_list (self, new_match_list); return; } void aspam_settings_add_match (ASpamSettings *self, const char *match) { g_autofree char *csv = NULL; g_autofree char *new_csv = NULL; g_auto(GStrv) new_match_list = NULL; g_assert (ASPAM_IS_SETTINGS (self)); if (!match || !*match) return; csv = g_strjoinv (",", self->match_list); if (!*csv) new_csv = g_strdup_printf ("%s", match); else new_csv = g_strdup_printf ("%s,%s", csv, match); new_match_list = g_strsplit (new_csv, ",", -1); aspam_settings_set_match_list (self, new_match_list); return; } static void aspam_settings_dispose (GObject *object) { ASpamSettings *self = (ASpamSettings *)object; g_info ("Disposing Settings"); g_settings_set_boolean (self->app_settings, "dark-theme", self->prefer_dark_theme); g_settings_set_string (self->app_settings, "version", PACKAGE_VERSION); g_settings_apply (self->app_settings); g_strfreev (self->match_list); G_OBJECT_CLASS (aspam_settings_parent_class)->dispose (object); } static void aspam_settings_class_init (ASpamSettingsClass *klass) { GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->dispose = aspam_settings_dispose; } static void aspam_settings_init (ASpamSettings *self) { g_autofree char *version = NULL; g_autofree char *contents = NULL; g_autoptr(GFile) whitelist_file = NULL; g_autoptr(GFile) whitelist_dir = NULL; g_autoptr(GError) error = NULL; gsize length = 0; whitelist_dir = g_file_new_build_filename (g_get_user_config_dir (), "phoshantispam", NULL); if (!g_file_make_directory_with_parents (whitelist_dir, NULL, &error)) { if (g_error_matches (error, G_IO_ERROR, G_IO_ERROR_EXISTS)) { g_debug ("Directory exists, skipping error..."); g_clear_error (&error); } else if (error) { g_warning ("Error creating Directory: %s", error->message); g_clear_error (&error); } } whitelist_file = g_file_new_build_filename (g_get_user_config_dir (), "phoshantispam", "whitelist.csv", NULL); g_file_load_contents (whitelist_file, NULL, &contents, &length, NULL, &error); if (error && g_error_matches (error, G_IO_ERROR, G_IO_ERROR_NOT_FOUND)) { g_auto(GStrv) new_match_list = NULL; g_debug ("There is no CSV File! Making a blank one."); new_match_list = g_strsplit ("", ",", -1); aspam_settings_set_match_list (self, new_match_list); g_clear_error (&error); } else if (error) { g_warning ("Error loading CSV File: %s. Making a blank one.", error->message); g_clear_error (&error); } else { g_debug ("File Contents %s", contents); /* Sometimes there are */ g_strdelimit (contents, "\r\n", ' '); g_strstrip (contents); g_debug ("File Contents %s", contents); self->match_list = g_strsplit (contents, ",", -1); } self->app_settings = g_settings_new (PACKAGE_ID); version = g_settings_get_string (self->app_settings, "version"); self->enable_aspamclient = g_settings_get_boolean (self->app_settings, "enable"); self->allow_blocked_numbers = g_settings_get_boolean (self->app_settings, "allow-blocked-numbers"); self->allow_callback = g_settings_get_boolean (self->app_settings, "allow-callback"); self->callback_timeout = g_settings_get_uint64 (self->app_settings, "callback-timeout"); self->silence = g_settings_get_boolean (self->app_settings, "silence"); self->blacklist = g_settings_get_boolean (self->app_settings, "blacklist"); self->prefer_dark_theme = g_settings_get_boolean (self->app_settings, "dark-theme"); adw_style_manager_set_dark_theme (self->prefer_dark_theme); g_settings_delay (self->app_settings); } /** * aspam_settings_get_default: * * Create a new #ASpamSettings * * Returns: (transfer full): A #ASpamSettings. * Free with g_object_unref(). */ ASpamSettings * aspam_settings_get_default (void) { static ASpamSettings *self; if (!self) { self = g_object_new (ASPAM_TYPE_SETTINGS, NULL); g_object_add_weak_pointer (G_OBJECT (self), (gpointer *)&self); } return self; } phosh-antispam-3.4/src/aspam-settings.h000066400000000000000000000062321456574116700202350ustar00rootroot00000000000000/* -*- mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*- */ /* aspam-settings.h * * Copyright 2021 Chris Talbot * * 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 3 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, see . * * Author(s): * Chris Talbot * * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #include G_BEGIN_DECLS #define ASPAM_TYPE_SETTINGS (aspam_settings_get_type ()) G_DECLARE_FINAL_TYPE (ASpamSettings, aspam_settings, ASPAM, SETTINGS, GObject) ASpamSettings *aspam_settings_get_default (void); void aspam_settings_save (ASpamSettings *self); gboolean aspam_settings_get_enable_aspamclient (ASpamSettings *self); void aspam_settings_set_enable_aspamclient (ASpamSettings *self, gboolean enable); gboolean aspam_settings_get_allow_blocked_numbers (ASpamSettings *self); void aspam_settings_set_allow_blocked_numbers (ASpamSettings *self, gboolean enable); gboolean aspam_settings_get_allow_callback (ASpamSettings *self); void aspam_settings_set_allow_callback (ASpamSettings *self, gboolean enable); guint64 aspam_settings_get_callback_timeout (ASpamSettings *self); void aspam_settings_set_callback_timeout (ASpamSettings *self, guint64 timeout); char **aspam_settings_get_match_list (ASpamSettings *self); void aspam_settings_set_match_list (ASpamSettings *self, char **match_list); void aspam_settings_add_match (ASpamSettings *self, const char *match); void aspam_settings_delete_match (ASpamSettings *self, const char *match); gboolean aspam_settings_get_silence (ASpamSettings *self); void aspam_settings_set_silence (ASpamSettings *self, gboolean enable); gboolean aspam_settings_get_blacklist (ASpamSettings *self); void aspam_settings_set_blacklist (ASpamSettings *self, gboolean enable); void aspam_settings_set_dark_theme (ASpamSettings *self, int prefer_dark_theme); int aspam_settings_get_dark_theme (ASpamSettings *self); char *aspam_settings_make_csv_match_list (char **match_list); G_END_DECLS phosh-antispam-3.4/src/aspam-window.c000066400000000000000000000267171456574116700177110ustar00rootroot00000000000000/* aspam-window.c * * Copyright 2021-2022 Chris Talbot * * 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 3 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, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #include "config.h" #include "aspam-settings.h" #include "aspam-window.h" #include "aspam-pattern-row.h" struct _ASpamWindow { AdwApplicationWindow parent_instance; /* Widgets */ GtkWidget *header_bar; GtkWidget *enable_aspam_switch; GtkWidget *silence_switch; GtkWidget *allow_callback_switch; GtkWidget *callback_timeout_text; GtkWidget *callback_timeout_text_buffer; GtkWidget *allow_blocked_numbers_switch; GtkWidget *blacklist_switch; GtkWidget *new_whitelist; GtkWidget *new_whitelist_text; GtkWidget *new_whitelist_text_buffer; GtkWidget *new_whitelist_button; GtkWidget *pref_page; }; G_DEFINE_TYPE (ASpamWindow, aspam_window, ADW_TYPE_APPLICATION_WINDOW) static void new_whitelist_text_buffer_changed_cb (ASpamWindow *self) { ASpamSettings *settings; const char *timeout_string; settings = aspam_settings_get_default (); timeout_string = gtk_entry_buffer_get_text (GTK_ENTRY_BUFFER (self->new_whitelist_text_buffer)); if (!timeout_string || !*timeout_string) gtk_widget_set_sensitive (self->new_whitelist_button, FALSE); else gtk_widget_set_sensitive (self->new_whitelist_button, TRUE); if (!aspam_settings_get_enable_aspamclient (settings)) gtk_widget_set_sensitive (self->new_whitelist_button, FALSE); } static void aspam_window_set_swtich_sensitivity (ASpamWindow *self) { ASpamSettings *settings; settings = aspam_settings_get_default (); gtk_widget_set_sensitive (self->allow_callback_switch, aspam_settings_get_enable_aspamclient (settings)); gtk_widget_set_sensitive (self->allow_blocked_numbers_switch, aspam_settings_get_enable_aspamclient (settings)); gtk_widget_set_sensitive (self->silence_switch, aspam_settings_get_enable_aspamclient (settings)); gtk_widget_set_sensitive (self->blacklist_switch, aspam_settings_get_enable_aspamclient (settings)); gtk_widget_set_sensitive (self->callback_timeout_text, aspam_settings_get_enable_aspamclient (settings)); gtk_widget_set_sensitive (self->new_whitelist_text, aspam_settings_get_enable_aspamclient (settings)); new_whitelist_text_buffer_changed_cb (self); } static void aspam_window_window_populate (ASpamWindow *self) { g_autofree char *callback_timeout_string = NULL; ASpamSettings *settings; guint64 callback_timeout; guint match_list_length; char **match_list; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); gtk_switch_set_active (GTK_SWITCH (self->enable_aspam_switch), aspam_settings_get_enable_aspamclient (settings)); gtk_switch_set_active (GTK_SWITCH (self->allow_callback_switch), aspam_settings_get_allow_callback (settings)); gtk_switch_set_active (GTK_SWITCH (self->allow_blocked_numbers_switch), aspam_settings_get_allow_blocked_numbers (settings)); gtk_switch_set_active (GTK_SWITCH (self->silence_switch), aspam_settings_get_silence (settings)); gtk_switch_set_active (GTK_SWITCH (self->blacklist_switch), aspam_settings_get_blacklist (settings)); aspam_window_set_swtich_sensitivity (self); gtk_entry_buffer_set_text (GTK_ENTRY_BUFFER (self->new_whitelist_text_buffer), "", -1); callback_timeout = aspam_settings_get_callback_timeout (settings); callback_timeout_string = g_strdup_printf ("%" G_GINT64_FORMAT, callback_timeout); gtk_entry_buffer_set_text (GTK_ENTRY_BUFFER (self->callback_timeout_text_buffer), callback_timeout_string, -1); match_list = aspam_settings_get_match_list (settings); match_list_length = g_strv_length (match_list); for (guint i = 0; i < match_list_length; i++) { ASpamPatternRow *new_row; if (!*match_list[i]) continue; new_row = aspam_pattern_row_new (); adw_preferences_group_add (ADW_PREFERENCES_GROUP (self->new_whitelist), GTK_WIDGET (new_row)); adw_action_row_set_subtitle (ADW_ACTION_ROW (new_row), match_list[i]); } } static gboolean enable_aspam_switch_flipped_cb (ASpamWindow *self) { ASpamSettings *settings; gboolean enable_aspam; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); enable_aspam = gtk_switch_get_active (GTK_SWITCH (self->enable_aspam_switch)); aspam_settings_set_enable_aspamclient (settings, enable_aspam); aspam_window_set_swtich_sensitivity (self); return FALSE; } static gboolean silence_switch_flipped_cb (ASpamWindow *self) { ASpamSettings *settings; gboolean enable_silence; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); enable_silence = gtk_switch_get_active (GTK_SWITCH (self->silence_switch)); aspam_settings_set_silence (settings, enable_silence); return FALSE; } static gboolean allow_callback_switch_flipped_cb (ASpamWindow *self) { ASpamSettings *settings; gboolean allow_callback; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); allow_callback = gtk_switch_get_active (GTK_SWITCH (self->allow_callback_switch)); aspam_settings_set_allow_callback (settings, allow_callback); return FALSE; } static gboolean blacklist_switch_flipped_cb (ASpamWindow *self) { ASpamSettings *settings; gboolean blacklist; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); blacklist = gtk_switch_get_active (GTK_SWITCH (self->blacklist_switch)); aspam_settings_set_blacklist (settings, blacklist); return FALSE; } static gboolean allow_blocked_numbers_switch_flipped_cb (ASpamWindow *self) { ASpamSettings *settings; gboolean allow_blocked_numbers; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); allow_blocked_numbers = gtk_switch_get_active (GTK_SWITCH (self->allow_blocked_numbers_switch)); aspam_settings_set_allow_blocked_numbers (settings, allow_blocked_numbers); return FALSE; } static void callback_timeout_buffer_changed_cb (ASpamWindow *self) { g_autoptr(GError) error = NULL; g_autofree char *callback_timeout_string = NULL; ASpamSettings *settings; const char *timeout_string; guint64 new_timeout; guint64 callback_timeout; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); timeout_string = gtk_entry_buffer_get_text (GTK_ENTRY_BUFFER (self->callback_timeout_text_buffer)); g_ascii_string_to_unsigned (timeout_string, 10, 0, 9999, &new_timeout, &error); if (error) { g_warning ("Error converting string to unsigned 64: %s", error->message); return; } callback_timeout = aspam_settings_get_callback_timeout (settings); if (new_timeout == callback_timeout) return; aspam_settings_set_callback_timeout (settings, new_timeout); } static void new_whitelist_button_clicked_cb (ASpamWindow *self) { g_autoptr(GError) error = NULL; ASpamSettings *settings; const char *new_pattern = ""; ASpamPatternRow *new_row; g_assert (ASPAM_IS_WINDOW (self)); settings = aspam_settings_get_default (); new_pattern = gtk_entry_buffer_get_text (GTK_ENTRY_BUFFER (self->new_whitelist_text_buffer)); if (!*new_pattern) { g_debug ("Empty string"); return; } new_row = aspam_pattern_row_new (); adw_preferences_group_add (ADW_PREFERENCES_GROUP (self->new_whitelist), GTK_WIDGET (new_row)); adw_action_row_set_subtitle (ADW_ACTION_ROW (new_row), new_pattern); aspam_settings_add_match (settings, new_pattern); gtk_entry_buffer_set_text (GTK_ENTRY_BUFFER (self->new_whitelist_text_buffer), "", -1); } void aspam_window_reset (ASpamWindow *self) { g_autofree char *callback_timeout_string = NULL; ASpamSettings *settings; guint64 callback_timeout; g_assert (ASPAM_IS_WINDOW (self)); /* Reset the window if this is a daemon */ settings = aspam_settings_get_default (); callback_timeout = aspam_settings_get_callback_timeout (settings); callback_timeout_string = g_strdup_printf ("%" G_GINT64_FORMAT, callback_timeout); gtk_entry_buffer_set_text (GTK_ENTRY_BUFFER (self->new_whitelist_text_buffer), "", -1); gtk_entry_buffer_set_text (GTK_ENTRY_BUFFER (self->callback_timeout_text_buffer), callback_timeout_string, -1); /* TODO: adw_preferences_page_scroll_to_top () is added in libadwaita 1.3 */ //adw_preferences_page_scroll_to_top (self->pref_page) } static void aspam_window_class_init (ASpamWindowClass *klass) { GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass); gtk_widget_class_set_template_from_resource (widget_class, "/org/kop316/antispam/ui/aspam-window.ui"); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, header_bar); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, pref_page); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, enable_aspam_switch); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, silence_switch); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, allow_callback_switch); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, blacklist_switch); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, callback_timeout_text); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, callback_timeout_text_buffer); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, allow_blocked_numbers_switch); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, new_whitelist); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, new_whitelist_text); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, new_whitelist_text_buffer); gtk_widget_class_bind_template_child (widget_class, ASpamWindow, new_whitelist_button); gtk_widget_class_bind_template_callback (widget_class, allow_callback_switch_flipped_cb); gtk_widget_class_bind_template_callback (widget_class, silence_switch_flipped_cb); gtk_widget_class_bind_template_callback (widget_class, callback_timeout_buffer_changed_cb); gtk_widget_class_bind_template_callback (widget_class, new_whitelist_text_buffer_changed_cb); gtk_widget_class_bind_template_callback (widget_class, new_whitelist_button_clicked_cb); gtk_widget_class_bind_template_callback (widget_class, enable_aspam_switch_flipped_cb); gtk_widget_class_bind_template_callback (widget_class, allow_blocked_numbers_switch_flipped_cb); gtk_widget_class_bind_template_callback (widget_class, blacklist_switch_flipped_cb); } static void aspam_window_init (ASpamWindow *self) { gtk_widget_init_template (GTK_WIDGET (self)); aspam_window_window_populate (self); } phosh-antispam-3.4/src/aspam-window.h000066400000000000000000000017671456574116700177140ustar00rootroot00000000000000/* aspam-window.h * * Copyright 2021-2022 Chris Talbot * * 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 3 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, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #include G_BEGIN_DECLS #define ASPAM_TYPE_WINDOW (aspam_window_get_type ()) G_DECLARE_FINAL_TYPE (ASpamWindow, aspam_window, ASPAM, WINDOW, AdwApplicationWindow) void aspam_window_reset (ASpamWindow *self); G_END_DECLS phosh-antispam-3.4/src/main.c000066400000000000000000000025601456574116700162150ustar00rootroot00000000000000/* main.c * * Copyright 2022 Chris Talbot * * 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 3 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, see . * * SPDX-License-Identifier: GPL-3.0-or-later */ #include "config.h" #include #include "aspam-application.h" int main (int argc, char *argv[]) { g_autoptr(ASpamApplication) app = NULL; int ret; bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); // Use G_APPLICATION_DEFAULT_FLAGS for GLIB 2.74 or higher #if GLIB_CHECK_VERSION (2, 74, 0) app = aspam_application_new (PACKAGE_ID, G_APPLICATION_DEFAULT_FLAGS); #else app = aspam_application_new (PACKAGE_ID, G_APPLICATION_FLAGS_NONE); #endif ret = g_application_run (G_APPLICATION (app), argc, argv); return ret; } phosh-antispam-3.4/src/meson.build000066400000000000000000000013021456574116700172600ustar00rootroot00000000000000phosh_antispam_sources = [ 'main.c', 'aspam-application.c', 'aspam-client.c', 'aspam-debug-info.c', 'aspam-pattern-row.c', 'aspam-preferences-window.c', 'aspam-settings.c', 'aspam-window.c', ] phosh_antispam_deps = [ dependency('gtk4'), dependency('libadwaita-1', version : '>=1.2.0'), ] revision_tag = vcs_tag( input: 'version.h.in', output: 'version.h', ) phosh_antispam_deps += declare_dependency(sources: revision_tag) phosh_antispam_sources += gnome.compile_resources('phosh-antispam-resources', 'phosh-antispam.gresource.xml', c_name: 'phosh_antispam' ) executable('phosh-antispam', phosh_antispam_sources, dependencies: phosh_antispam_deps, install: true, ) phosh-antispam-3.4/src/phosh-antispam.gresource.xml000066400000000000000000000005211456574116700225720ustar00rootroot00000000000000 ui/aspam-pattern-row.ui ui/aspam-preferences-window.ui ui/aspam-window.ui phosh-antispam-3.4/src/ui/000077500000000000000000000000001456574116700155375ustar00rootroot00000000000000phosh-antispam-3.4/src/ui/aspam-pattern-row.ui000066400000000000000000000021061456574116700214560ustar00rootroot00000000000000 phosh-antispam-3.4/src/ui/aspam-preferences-window.ui000066400000000000000000000032541456574116700230070ustar00rootroot00000000000000 phosh-antispam-3.4/src/ui/aspam-window.ui000066400000000000000000000216001456574116700205030ustar00rootroot00000000000000
_Preferences app.preferences
_About Phosh-Antispam app.about
phosh-antispam-3.4/src/version.h.in000066400000000000000000000015651456574116700173740ustar00rootroot00000000000000/* version.h.in * * Copyright 2021 Chris Talbot * * 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 3 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, see . * * Authors: * Chris Talbot * * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #define PACKAGE_VCS_VERSION "@VCS_TAG@" phosh-antispam-3.4/uncrustify.cfg000066400000000000000000000077361456574116700172440ustar00rootroot00000000000000# # GNOME style (GNU variant) # input_tab_size = 8 output_tab_size = 8 # { # size = 2; // etc. # ^^ indent_columns = 2 indent_with_tabs = 0 # Don't use tabs for indentation # if ()\n{} // level of endentation before '{' # ^ indent_brace = 2 # exit: #^ // indentation before label # 2 = 1 space indent_label = 2 # size = size + 2; // +, -, *, /, &, |, >>, <<, etc # ^ ^ sp_arith = force # int width, height # ^ ^ sp_after_comma = force sp_before_comma = remove # size = 4; // +=, -=, |=, etc. # ^ ^ sp_assign = add # success = start && go; // &&, || # ^ ^ sp_bool = force # if (size > 2) // >, <, ==, >=, etc. # ^ ^ sp_compare = force # perimeter = (width + height) * 2 // remove space around '(' # ^ ^ sp_inside_paren = remove # int main (void) // remove spaces around '(' in functions # ^ ^ sp_inside_fparen = remove # int main () // remove spaces in empty parameters # ^ sp_inside_fparens = remove # int foo (void); # ^ sp_func_proto_paren = add # int foo (void){} # ^ sp_func_def_paren = force # printf (""); # ^ sp_func_call_paren = force # if ( // if/for/while/switch etc. # ^ sp_before_sparen = force set func_call_user _ N_ C_ Q_ NC_ set func_call_user g_autoptr g_auto # space after user defined functions (above) and paren sp_func_call_user_paren = remove # printf ("") ; # ^ // remove the space sp_before_semi = remove sp_inside_braces = ignore # return (3*2); # ^ sp_return_paren = force # long distance; # int name; # // ^ space b/w type and variable name sp_after_type = add # char *name; // add space before '*' (keep spacing if more than 1) # ^ sp_before_ptr_star = add # char *name; // remove space after '*' # ^ sp_after_ptr_star = remove # char **name (){} // remove space b/w 2 '*' # ^ sp_between_ptr_star = remove # maximum consecutive new lines # 3 = 2 blank lines nl_max = 3 # char *names[] = { // remove newline if any # ^ nl_assign_brace = remove # } else // insert newline # ^ nl_brace_else = force # else if // remove newline if any # ^ nl_else_if = remove # do {} // insert newline # ^ nl_do_brace = force nl_union_brace = force nl_enum_brace = ignore # don't care for enums nl_struct_brace = force # while () {} // insert newline. # ^ nl_while_brace = force nl_for_brace = force nl_if_brace = force nl_switch_brace = force # do ()\n while(); # ^ nl_brace_while = force # int main (void){} // newline after type # ^ nl_func_type_name = force # int main () {} // insert newline # ^ nl_fdef_brace = force # int main () {} # ^ # nl_after_func_body = 2 # int main (int argc, char **argv) // force newline at ',' # ^ nl_func_decl_args = force nl_func_def_args = force # remove blank lines after '{' and before '}' eat_blanks_after_open_brace = true eat_blanks_before_close_brace = true # add newline at end of file nl_end_of_file = force # min number of newlines to be added nl_end_of_file_min = 1 # main (int argc, // add enough spaces to align # char *argv[]) # ^^ align_func_params = true # func (int *square, // stick '*' to parameter # double match) align_var_def_star_style = 2 # #define ADD(x,y,x) ((x) \ # + (y) \ # + (z)) # ^ // align '/' align_nl_cont = true # Add a '*' at beginning of multiline comment lines cmt_star_cont = true # Remove braces for single line statements in # while, for, if, and switch case mod_full_brace_while = remove mod_full_brace_for = remove mod_full_brace_if = remove mod_case_brace = remove # if (is_good \n || \n is_okay) # ^ ^ // If newline present, # where to put &&, ||, | etc. pos_conditional = lead # FIXME: Not working pos_bool = trail # Hack to avoid indentation of following line # consider the following tokens as a comment set COMMENT G_BEGIN_DECLS phosh-antispam-3.4/uncrustify.sh000077500000000000000000000031001456574116700170770ustar00rootroot00000000000000#!/bin/sh # Written in 2018 by Mohammed Sadiq # To the extent possible under law, the author(s) have dedicated all # copyright and related and neighboring rights to this software to # the public domain worldwide. This software is distributed without # any warranty. # You should have received a copy of the CC0 Public Domain Dedication # along with this software. If not, see # . if [ ! "$(which uncrustify)" ]; then echo "'uncrustify' Not found. Exiting..." exit 1 fi if [ ! "$(which diff)" ]; then echo "'diff' Not found. Exiting..." exit 1 fi # Handle only .c files. There are unfixable issues uncrustifying .h header files uncrustify -l c -c uncrustify.cfg --no-backup --mtime $(find . -path './src/*' -name '*.c') # Simple Hack to work around issues with handling .h files HEADER_FILES=$(find . -path './src/*' -name '*.h') for file in $HEADER_FILES do # Work on a copy. Replace the file only if some actual change # happened. Otherwise, every header file will have a new mtime # and that will result in compiling every file on rebuild. MTIME=$(stat -c '%Y' "$file") cp "$file" temp.h sed -i "/^G_DECLARE_/ s/)$/);/" temp.h cp temp.h temp.bak uncrustify -l c -c uncrustify.cfg --no-backup temp.h -q echo "Parsing: $file as language C" DIFF="$(diff temp.h temp.bak)" if [ "$DIFF" ]; then sed -i "/^G_DECLARE_/ s/;$//" temp.h mv temp.h "$file" # Reset modification time touch --date=@${MTIME} "$file" fi done # Remove temp files, if any. rm -rf temp.h temp.bak phosh-antispam-3.4/unit/000077500000000000000000000000001456574116700153125ustar00rootroot00000000000000phosh-antispam-3.4/unit/meson.build000066400000000000000000000006021456574116700174520ustar00rootroot00000000000000test_dependencies = [ dependency('gtk4'), dependency('libadwaita-1', version : '>=1.2.0'), ] test_util = executable('test_sms', ['test-util.c', '../src/aspam-settings.c'], include_directories : includes, dependencies : test_dependencies ) # tests expect pwd to be at the project root, not in ./unit test('test Util', test_util, workdir : meson.current_source_dir() + '/..') phosh-antispam-3.4/unit/test-util.c000066400000000000000000000033661456574116700174200ustar00rootroot00000000000000/* * * Visual Voicemail Daemon * * Copyright (C) 2022, Chris Talbot * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include #include #include #include #include #include #include "aspam-settings.h" static const char *const match_list_empty_1[] = { "", "555", "", "444", "", NULL, }; static const char *const match_list_empty_2[] = { "555", "444", "333", NULL, }; static void test_util (gconstpointer data) { g_autofree char *csv = NULL; csv = aspam_settings_make_csv_match_list ((char **) match_list_empty_1); g_assert_cmpstr (csv, ==, "555,444"); g_clear_pointer (&csv, g_free); csv = aspam_settings_make_csv_match_list ((char **) match_list_empty_2); g_assert_cmpstr (csv, ==, "555,444,333"); g_clear_pointer (&csv, g_free); } int main (int argc, char **argv) { g_test_init (&argc, &argv, NULL); g_test_add_data_func ("/vvmutil/Util Test", NULL, test_util); return g_test_run (); }