Warning: Undefined array key "rss_show_deleted" in /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 53
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 54
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 55
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/feed.php on line 56
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/inc/httputils.php on line 32
Warning: Cannot modify header information - headers already sent by (output started at /var/www/w12/dw/inc/Feed/FeedCreatorOptions.php:86) in /var/www/w12/dw/inc/httputils.php on line 33 wi12.unix7.org - php
https://w12.unix7.org/
Wed, 05 Aug 2026 03:47:12 +0000FeedCreator 1.8https://w12.unix7.org/_media/wiki/dokuwiki.svgwi12.unix7.org
https://w12.unix7.org/
Small utilite for show mail aliases tree
https://w12.unix7.org/php/mail-tree
php
Small utilite for show mail aliases tree
DB structure
table aliases {
username;
domain;
sendto;
}
table boxes {
username;
domain;
}
Code
#!/usr/local/bin/php
<?php
function print_mail ($dbcon, $email, $level) {
if ($level > 8) {
print str_repeat("|\t", $level)."| *** too many level for $email ***\n";
} else {
$exist = 0;
list($username, $domain) = explode("@", $email);
$query = "select distinct username, domain from boxes where username = '$usern…anonymous@undisclosed.example.com (Anonymous)Sat, 27 Nov 2021 13:26:11 +0000Phalcon PHP framework sample
https://w12.unix7.org/php/phalcon-acm
php
Phalcon PHP framework sample
Total time of work is 7-8 hours with Phalcon FW learning.
* <https://github.com/kindsoldier/phalcon-sample>
----------
[<>]anonymous@undisclosed.example.com (Anonymous)Sat, 05 Feb 2022 08:21:42 +0000Print of mail alias tree
https://w12.unix7.org/php/print-alias-tree
php
Print of mail alias tree
#!/usr/local/bin/php
<?php
// $Id: a2tree.php,v 1.1 2016/11/02 12:18:48 root Exp root $
function print_alias ($con, $address, $level) {
if ($level > 7) {
echo str_repeat("|\t", $level)." !!!!! too many levels, more 7 !!!\n";
return;
}
$query = "select distinct address, goto from alias where address = '$address' and active = 'true';";
$table = pg_query($con, $query);
if(pg_num_rows($table) == 0) {
$query = "select distinct username from m…anonymous@undisclosed.example.com (Anonymous)Sat, 27 Nov 2021 13:26:11 +0000