[24106] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r23710 - in trunk/debathena/config: . thunderbird-config thunderbird-config/debian

daemon@ATHENA.MIT.EDU (Evan Broder)
Sat Apr 4 18:27:08 2009

Date: Sat, 4 Apr 2009 18:26:55 -0400
From: Evan Broder <broder@MIT.EDU>
Message-Id: <200904042226.n34MQt2N026782@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: broder
Date: 2009-04-04 18:26:55 -0400 (Sat, 04 Apr 2009)
New Revision: 23710

Added:
   trunk/debathena/config/thunderbird-config/
   trunk/debathena/config/thunderbird-config/debian/
   trunk/debathena/config/thunderbird-config/debian/changelog
   trunk/debathena/config/thunderbird-config/debian/compat
   trunk/debathena/config/thunderbird-config/debian/control.in
   trunk/debathena/config/thunderbird-config/debian/copyright
   trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.install
   trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.links
   trunk/debathena/config/thunderbird-config/debian/debathena.cfg
   trunk/debathena/config/thunderbird-config/debian/debathena.js
   trunk/debathena/config/thunderbird-config/debian/rules
   trunk/debathena/config/thunderbird-config/debian/thunderbird.debathena
Log:
Initial revision of debathena-thunderbird-config.


Added: trunk/debathena/config/thunderbird-config/debian/changelog
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/changelog	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/changelog	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,5 @@
+debathena-thunderbird-config (1.0) unstable; urgency=low
+
+  * Initial release. (Trac: #130)
+
+ -- Evan Broder <broder@mit.edu>  Sat, 04 Apr 2009 18:25:12 -0400

Added: trunk/debathena/config/thunderbird-config/debian/compat
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/compat	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/compat	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1 @@
+5

Added: trunk/debathena/config/thunderbird-config/debian/control.in
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/control.in	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/control.in	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,14 @@
+Source: debathena-thunderbird-config
+Section: debathena-config/net
+Priority: extra
+Maintainer: Debathena Project <debathena@mit.edu>
+Build-Depends: @cdbs@
+Standards-Version: 3.8.0
+
+Package: debathena-thunderbird-config
+Architecture: all
+Depends: ${misc:Depends}, debathena-hesiod-config, icedove | thunderbird
+Description: Thunderbird configuration for Debathena
+ This package configures Thunderbird for the Debathena system, setting
+ it to use MIT's IMAP and SMTP servers, and also setting a few other
+ settings for the MIT environment.

Added: trunk/debathena/config/thunderbird-config/debian/copyright
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/copyright	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/copyright	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,31 @@
+This package was created as part of the Debathena Project
+<http://debathena.mit.edu/> of the MIT Student Information Processing
+Board.
+
+The source code was obtained from the Athena SVN repository at
+<svn://debathena.mit.edu/athena/trunk>, and is licensed as follows:
+
+  Copyright © 2009 Evan Broder
+
+  Permission is hereby granted, free of charge, to any person
+  obtaining a copy of this software and associated documentation files
+  (the "Software"), to deal in the Software without restriction,
+  including without limitation the rights to use, copy, modify, merge,
+  publish, distribute, sublicense, and/or sell copies of the Software,
+  and to permit persons to whom the Software is furnished to do so,
+  subject to the following conditions:
+
+  The above copyright notice and this permission notice shall be
+  included in all copies or substantial portions of the Software.
+
+  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+  SOFTWARE.
+
+The Debian packaging is Copyright © 2009 Evan Broder, and has the same
+license as the original software.

Added: trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.install
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.install	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.install	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,3 @@
+debian/debathena.js etc/thunderbird/pref
+debian/debathena.cfg usr/lib/thunderbird
+debian/thunderbird.debathena usr/bin

Added: trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.links
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.links	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/debathena-thunderbird-config.links	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,3 @@
+usr/bin/thunderbird.debathena usr/bin/icedove.debathena
+etc/thunderbird/pref/debathena.js etc/icedove/pref/debathena.js
+usr/lib/thunderbird/debathena.cfg usr/lib/icedove/debathena.cfg

Added: trunk/debathena/config/thunderbird-config/debian/debathena.cfg
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/debathena.cfg	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/debathena.cfg	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,127 @@
+
+/*
+ * debathena.cfg
+ * 
+ * Mozilla Thunderbird MIT/Athena Autoconfig Script
+ * Copyright © 2006 Charles Dominguez
+ * Copyright © 2009 Evan Broder
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ *
+ */
+
+
+try
+{
+	// Kerberos Authentication
+	// defaultPref("network.negotiate-auth.trusted-uris", "imap://po*.mit.edu,imaps://po*.mit.edu");
+	// defaultPref("network.negotiate-auth.using-native-gsslib", true);
+	// defaultPref("network.negotiate-auth.allow-proxies", true);
+	// defaultPref("network.auth.use-sspi", false);
+	
+	var username = getenv("ATHENA_USER");
+	if(username == "")
+	{
+		username = getenv("USER");
+	}
+	// Check that username is sane
+	if(username == null || username == '' || username == 'root')
+	{
+		throw "Failed to retrieve user name (environment corruption)";
+	}
+
+	var fullname = getenv("NAME");
+	if(fullname == null || fullname == "")
+	{
+		throw "Failed to retrieve full name";
+	}
+
+	var pobox = getenv("POBOX");
+	if(pobox == null || username == '')
+	{
+		throw "Failed to retrieve the PO box";
+	}
+	
+	
+	// Construct additional user settings
+	email = username+'@mit.edu';
+	imapURI='imap://'+username+'@mit.edu';
+	imapRoot='imap://'+username+'@'+pobox+'/INBOX';
+	
+	// Register accounts
+	defaultPref("mail.account.account1.identities", "id1");
+	defaultPref("mail.account.account1.server", "server1");
+	defaultPref("mail.account.account2.server", "server2");
+	defaultPref("mail.accountmanager.localfoldersserver", "server2");
+	defaultPref("mail.accountmanager.accounts", "account1,account2");
+	defaultPref("mail.accountmanager.defaultaccount", "account1");
+	defaultPref("mail.smtp.defaultserver", "smtp1");
+	defaultPref("mail.smtpservers", "smtp1");
+		
+	// Setup MIT Mail Server
+	defaultPref("mail.server.server1.hostname", pobox);
+	defaultPref("mail.server.server1.name", email);
+	defaultPref("mail.server.server1.port", 993);
+	defaultPref("mail.server.server1.serverFilterName", "SpamAssassin");
+	defaultPref("mail.server.server1.socketType", 3);
+	defaultPref("mail.server.server1.type", "imap");
+	defaultPref("mail.server.server1.userName", username);
+
+	defaultPref("mail.server.server1.manualMark", true);
+	defaultPref("mail.server.server1.moveTargetMode", 1);
+	defaultPref("mail.server.server1.spamActionTargetAccount", imapURI);
+	defaultPref("mail.server.server1.spamActionTargetFolder", imapRoot+'/Spamscreen');
+	defaultPref("mail.server.server1.useServerFilter", true);
+	
+	// Setup Local Folders Server
+	defaultPref("mail.server.server2.directory-rel", "[ProfD]Mail/Local Folders");
+	defaultPref("mail.server.server2.hostname", "Local Folders");
+	defaultPref("mail.server.server2.name", "Local Folders");
+	defaultPref("mail.server.server2.type", "none");
+	defaultPref("mail.server.server2.userName", "nobody");
+
+	// Setup Outgoing (SMTP) Server
+	defaultPref("mail.smtpserver.smtp1.auth_method", 1);
+	defaultPref("mail.smtpserver.smtp1.description", "MIT SMTP Server");
+	defaultPref("mail.smtpserver.smtp1.hostname", "outgoing.mit.edu");
+	defaultPref("mail.smtpserver.smtp1.port", 465);
+	defaultPref("mail.smtpserver.smtp1.try_ssl", 3);
+	defaultPref("mail.smtpserver.smtp1.username", username);
+	
+	// Setup MIT Email Identity
+	defaultPref("mail.identity.id1.fullName", fullname);
+	defaultPref("mail.identity.id1.useremail", email);
+	defaultPref("mail.identity.id1.valid", true);
+	defaultPref("mail.identity.id1.directoryServer", "ldap_2.servers.MITCampusDirectory");
+	defaultPref("mail.identity.id1.smtpServer", "smtp1");
+	
+	defaultPref("mail.identity.id1.fcc", true);
+	defaultPref("mail.identity.id1.fcc_folder_picker_mode", "0");
+	defaultPref("mail.identity.id1.fcc_folder", "mailbox://nobody@Local%20Folders/Sent");
+	defaultPref("mail.identity.id1.drafts_folder_picker_mode", "0");
+	defaultPref("mail.identity.id1.draft_folder", "mailbox://nobody@Local%20Folders/Drafts");
+	defaultPref("mail.identity.id1.tmpl_folder_picker_mode", "0");
+	defaultPref("mail.identity.id1.stationery_folder", "mailbox://nobody@Local%20Folders/Templates");
+	
+	// Setup LDAP Servers & Addressbooks
+	defaultPref("ldap_2.servers.MITCampusDirectory.auth.savePassword", false);
+	defaultPref("ldap_2.servers.MITCampusDirectory.description", "MIT LDAP");
+	defaultPref("ldap_2.servers.MITCampusDirectory.filename", "MIT_LDAP.mab");
+	defaultPref("ldap_2.servers.MITCampusDirectory.uri", "ldaps://ldap.mit.edu:636/dc=mit,dc=edu??sub?(objectclass=*)");
+}
+catch(e)
+{
+	displayError("Error in Autoconfig", e);
+}

Added: trunk/debathena/config/thunderbird-config/debian/debathena.js
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/debathena.js	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/debathena.js	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,2 @@
+pref('general.config.obscure_value', 0);
+pref('general.config.filename', 'debathena.cfg');

Added: trunk/debathena/config/thunderbird-config/debian/rules
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/rules	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/rules	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+
+DEB_DIVERT_EXTENSION = .debathena
+DEB_DIVERT_FILES_debathena-thunderbird-config += \
+	/usr/bin/thunderbird.debathena \
+	/usr/bin/icedove.debathena
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/config-package.mk


Property changes on: trunk/debathena/config/thunderbird-config/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: trunk/debathena/config/thunderbird-config/debian/thunderbird.debathena
===================================================================
--- trunk/debathena/config/thunderbird-config/debian/thunderbird.debathena	2009-04-03 22:36:38 UTC (rev 23709)
+++ trunk/debathena/config/thunderbird-config/debian/thunderbird.debathena	2009-04-04 22:26:55 UTC (rev 23710)
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+if ! [ -d "$HOME/.mozilla-thunderbird" ]; then
+    if [ -d "$HOME/.thunderbird" ] && ! [ -L "$HOME/.thunderbird" ]; then
+	mv "$HOME/.thunderbird" "$HOME/.mozilla-thunderbird"
+	ln -s "$HOME/.mozilla-thunderbird" "$HOME/.thunderbird"
+    else
+	mkdir -p "$HOME/.mozilla-thunderbird"
+    fi
+
+    fs sa "$HOME/.mozilla-thunderbird" system:anyuser none
+fi
+: ${NAME:=$(getent passwd "$USER" | cut -d: -f5 | cut -d, -f1)}
+: ${POBOX:=$(hesinfo "${ATHENA_USER:-USER}" pobox | awk '{print $2}')}
+export NAME POBOX
+
+exec "$0.debathena-orig" "$@"


Property changes on: trunk/debathena/config/thunderbird-config/debian/thunderbird.debathena
___________________________________________________________________
Name: svn:executable
   + *


home help back first fref pref prev next nref lref last post