From f1f5801031a08195ada8992c9d6079033b02fea3 Mon Sep 17 00:00:00 2001
From: tonio
Date: Thu, 6 Jan 2011 22:07:15 +0100
Subject: [PATCH] * Documentation update * see #38 : reverted work from
[49b589f08988] * Style update for permissions
---
INSTALL | 20 +++++++
extensions/webmail/static/css/webmail.css | 53 ------------------
.../webmail/templates/webmail/compose.html | 10 ----
.../webmail/templates/webmail/index.html | 22 --------
extensions/webmail/views.py | 10 ++--
static/css/default.css | 10 ++++
static/pics/attachment.png | Bin 912 -> 0 bytes
templates/common/parameters.html | 2 +-
8 files changed, 36 insertions(+), 91 deletions(-)
delete mode 100644 static/pics/attachment.png
diff --git a/INSTALL b/INSTALL
index 141de3d76..d50845c98 100644
--- a/INSTALL
+++ b/INSTALL
@@ -117,6 +117,8 @@ existing database.**
#. Update SQL queries used in your environnement (see :ref:`postfix-label` or :ref:`dovecot-label`).
+#. Update *postfix* configuration so that he can handle domain aliases (see :ref:`postfix-label`).
+
0.8.2: ckeditor integration and more
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -214,6 +216,14 @@ First, define the following map files on your server (it should work with
hosts = 127.0.0.1
query = SELECT name FROM admin_domain WHERE name='%s' AND enabled='1'
+``/etc/postfix/sql-domain-aliases.cf``::
+
+ user =
+ password =
+ dbname =
+ hosts = 127.0.0.1
+ query = SELECT t2.name FROM admin_domainalias AS t1, admin_domain AS t2 WHERE t1.target_id=t2.id AND t1.enabled=1 AND t2.enabled=1 AND t1.name='%s'
+
``/etc/postfix/sql-mailboxes.cf``::
user =
@@ -230,6 +240,14 @@ First, define the following map files on your server (it should work with
hosts = 127.0.0.1
query = SELECT concat(t3.address, '@', t4.name) FROM admin_alias AS t1, admin_alias_mboxes AS t2, admin_mailbox AS t3, admin_domain AS t4 WHERE t1.enabled='1' AND t1.address='%u' AND t1.id=t2.alias_id AND t2.mailbox_id=t3.id AND t3.domain_id=t4.id AND t4.name='%d'
+``/etc/postfix/sql-domain-aliases-mailboxes.cf``::
+
+ user =
+ password =
+ dbname =
+ hosts = 127.0.0.1
+ query = SELECT concat(t2.address, '@', t3.name) FROM admin_domainaliases AS t1, admin_mailbox AS t2, admin_domain AS t3 WHERE t1.target_id=t2.domain_id AND t2.domain_id=t3.id AND t2.enabled=1 AND t1.name='%d' AND t2.address='%u'
+
Then, use the following configuration in the */etc/postfix/main.cf* file
(this is just one possible configuration)::
@@ -244,7 +262,9 @@ Then, use the following configuration in the */etc/postfix/main.cf* file
relay_domains =
virtual_mailbox_domains = mysql:/etc/postfix/sql-domains.cf
+ virtual_alias_domains = mysql:/etc/postfix/sql-domain-aliases.cf
virtual_mailbox_maps = mysql:/etc/postfix/sql-mailboxes.cf
+ mysql:/etc/postfix/sql-domain-aliases-mailboxes.cf
virtual_alias_maps = mysql:/etc/postfix/sql-aliases.cf
# Stuff after
diff --git a/extensions/webmail/static/css/webmail.css b/extensions/webmail/static/css/webmail.css
index d32643284..b87973c89 100644
--- a/extensions/webmail/static/css/webmail.css
+++ b/extensions/webmail/static/css/webmail.css
@@ -179,60 +179,7 @@ textarea:hover {
}
#mailheader {
- width: 70%;
padding-bottom: 5px;
- float: left;
-}
-
-#attachments {
- width: 29%;
- float: left;
-}
-
-#attachments h3 {
- float: left;
- font-size: 1em;
- margin: 0;
- margin-right: 10px;
-}
-
-#attachments img {
- float: left;
- margin-right: 5px;
-}
-
-#attachments a:link, a:visited {
- background: transparent;
- color: black;
- text-decoration: none;
-}
-
-#finput_container {
- display: block;
- width: 100px;
- height: 20px;
- overflow: hidden
-}
-
-#upload_input {
- font-size: 50px;
- width: 120px;
- opacity: 0;
- filter: alpha(opacity: 0);
- position: relative;
- top: -40px;
- left: -20px;
-}
-
-#attachments ul {
- list-style: none;
- padding: 5px 5px;
- margin: 0;
-}
-
-#attachments li {
- margin-bottom: 4px;
- padding-left: 10px;
}
/* Progress bar */
diff --git a/extensions/webmail/templates/webmail/compose.html b/extensions/webmail/templates/webmail/compose.html
index 8ec2d79bc..b2988713d 100644
--- a/extensions/webmail/templates/webmail/compose.html
+++ b/extensions/webmail/templates/webmail/compose.html
@@ -4,16 +4,6 @@
-
-
{% trans "Attachments" %}
-
-
-
{% if body %}
+
{% for app in gparams %}
{{ app.name }}