From b5f6b9452c7d47e9f21d8d123555d0ebcad0c09b Mon Sep 17 00:00:00 2001 From: pdontthink Date: Tue, 23 Jan 2007 03:37:36 +0000 Subject: [PATCH] Somehow went missing options.php and config file, minor adjustments to template output formatting. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12189 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/listcommands/config_sample.php | 22 ++++++ plugins/listcommands/functions.php | 2 +- plugins/listcommands/options.php | 78 +++++++++++++++++++ .../templates/default/non_rfc_lists.tpl | 34 ++++---- 4 files changed, 114 insertions(+), 22 deletions(-) create mode 100644 plugins/listcommands/config_sample.php create mode 100644 plugins/listcommands/options.php diff --git a/plugins/listcommands/config_sample.php b/plugins/listcommands/config_sample.php new file mode 100644 index 00000000..590b3e41 --- /dev/null +++ b/plugins/listcommands/config_sample.php @@ -0,0 +1,22 @@ +|\s)/', $recipients)) { $url = 'src/compose.php?' . (isset($startMessage)?'startMessage='.$startMessage.'&':'') . 'send_to=' . str_replace('?','&', $non_rfc_list); diff --git a/plugins/listcommands/options.php b/plugins/listcommands/options.php new file mode 100644 index 00000000..22e998e5 --- /dev/null +++ b/plugins/listcommands/options.php @@ -0,0 +1,78 @@ + $list_addr) + $temp_lists[] = $index . '_' . $list_addr; + setPref($data_dir, $username, 'non_rfc_lists', implode(':', $temp_lists)); + +} + + + +// add list? +// +if (sqGetGlobalVar('addlist', $ignore, SQ_FORM) + && sqGetGlobalVar('newlist', $newlist, SQ_FORM)) { + + $lists[] = $newlist; + + sort($lists); + $temp_lists = array(); + foreach ($lists as $index => $list_addr) + $temp_lists[] = $index . '_' . $list_addr; + setPref($data_dir, $username, 'non_rfc_lists', implode(':', $temp_lists)); + +} + + + +displayPageHeader($color, 'None'); + +$oTemplate->assign('lists', $lists); +$oTemplate->display('plugins/listcommands/non_rfc_lists.tpl'); + + diff --git a/plugins/listcommands/templates/default/non_rfc_lists.tpl b/plugins/listcommands/templates/default/non_rfc_lists.tpl index 04202fd1..a3bc876c 100644 --- a/plugins/listcommands/templates/default/non_rfc_lists.tpl +++ b/plugins/listcommands/templates/default/non_rfc_lists.tpl @@ -24,42 +24,33 @@ extract($t); -?>
- +?> +
+
- - + - - - - - -
- + +
 Manage the (non-RFC-compliant) mailing lists that you are subscribed to for the purpose of providing one-click list replies when responding to list messages. You only need to enter any lists you are subscribed to that do not already comply with RFC 2369.

When entering a new list, input the full email address for the address from which list postings are delivered.

Manage the (non-RFC-compliant) mailing lists that you are subscribed to for the purpose of providing one-click list replies when responding to list messages. You only need to enter any lists you are subscribed to that do not already comply with RFC 2369.

When entering a new list, input the full email address for the main list.
 
- - - - - - + - -
+ : + - " size="30" />
  
: - + +
: + $list) { echo ''; @@ -69,6 +60,7 @@ extract($t);
' . $list . '
+ -- 2.25.1