aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-send-options
diff options
context:
space:
mode:
authorJain Vivek <jvivek@src.gnome.org>2005-06-13 19:28:32 +0800
committerJain Vivek <jvivek@src.gnome.org>2005-06-13 19:28:32 +0800
commit571d426db5c37683f03e2c95d3feea7e3d2905ec (patch)
tree1865f81f1d81c6fe858ed3632fb2bd0028cb0763 /plugins/groupwise-send-options
parentc52fbd0f99312c8f381a4b0b25a49f59a81f9c63 (diff)
downloadgsoc2013-evolution-571d426db5c37683f03e2c95d3feea7e3d2905ec.tar
gsoc2013-evolution-571d426db5c37683f03e2c95d3feea7e3d2905ec.tar.gz
gsoc2013-evolution-571d426db5c37683f03e2c95d3feea7e3d2905ec.tar.bz2
gsoc2013-evolution-571d426db5c37683f03e2c95d3feea7e3d2905ec.tar.lz
gsoc2013-evolution-571d426db5c37683f03e2c95d3feea7e3d2905ec.tar.xz
gsoc2013-evolution-571d426db5c37683f03e2c95d3feea7e3d2905ec.tar.zst
gsoc2013-evolution-571d426db5c37683f03e2c95d3feea7e3d2905ec.zip
Removed unneeded files
svn path=/trunk/; revision=29497
Diffstat (limited to 'plugins/groupwise-send-options')
-rwxr-xr-xplugins/groupwise-send-options/ChangeLog38
-rw-r--r--plugins/groupwise-send-options/Makefile.am15
-rw-r--r--plugins/groupwise-send-options/org-gnome-compose-send-options.eplug.in25
-rw-r--r--plugins/groupwise-send-options/org-gnome-compose-send-options.xml17
-rw-r--r--plugins/groupwise-send-options/send-options.c150
-rw-r--r--plugins/groupwise-send-options/send-options.h40
6 files changed, 0 insertions, 285 deletions
diff --git a/plugins/groupwise-send-options/ChangeLog b/plugins/groupwise-send-options/ChangeLog
deleted file mode 100755
index a30e208dcc..0000000000
--- a/plugins/groupwise-send-options/ChangeLog
+++ /dev/null
@@ -1,38 +0,0 @@
-2005-03-18 Vivek Jain <jvivek@novell.com>
-
- * send-options.h:
- * send-options.c: (org_gnome_compose_send_options): replace
- X_RETURN_NOTIFY_DECLINE with X_RETURN_NOTIFY_DELETE
-
-2005-03-18 Vivek Jain <jvivek@novell.com>
-
- **Fixes #73473
- * send-options.c :(org_gnome_compose_send_options)
- user proper entry to calculate the date of reply requested
-
-2005-03-09 Sankar P <psankar@novell.com>
-
- * send-options.c: (org_gnome_compose_send_options)
- Updated code to add priority to the appropriate header
- Fixes the problem of Priority not set in outgoing mails
-
-2005-02-24 Björn Torkelsson <torkel@acc.umu.se>
-
- * org-gnome-compose-send-options.eplug.in: Shortened the name of
- the plugin.
- Updated the description.
-
-
-2005-02-03 Chenthill Palanisamy <pchenthill@novell.com>
-
- * send-options.c: (add_day_to_time), (send_options_commit),
- (org_gnome_compose_send_options):Added functions to destroy
- the dialog when the composer is destroyed to solve the crash.
- Removed the return statement so that the send options gets
- added to the composer headers. Made modification in setting
- the values for some headers.
- Changing the file name from Changelog to ChangeLog.
-
-2005-01-10 Parthasarathi@novell.com <sparthasarathi@novell.com>
-
- * initial check in for groupwise send options
diff --git a/plugins/groupwise-send-options/Makefile.am b/plugins/groupwise-send-options/Makefile.am
deleted file mode 100644
index b30ce1f03e..0000000000
--- a/plugins/groupwise-send-options/Makefile.am
+++ /dev/null
@@ -1,15 +0,0 @@
-INCLUDES = \
- -I$(top_srcdir) \
- $(EVOLUTION_MAIL_CFLAGS)
-
-@EVO_PLUGIN_RULE@
-
-plugin_DATA = org-gnome-compose-send-options.eplug org-gnome-compose-send-options.xml
-plugin_LTLIBRARIES = liborg-gnome-compose-send-options.la
-
-liborg_gnome_compose_send_options_la_SOURCES = send-options.c send-options.h
-liborg_gnome_compose_send_options_la_LDFLAGS = -module -avoid-version
-
-EXTRA_DIST = \
- org-gnome-compose-send-options.eplug.in \
- org-gnome-compose-send-options.xml
diff --git a/plugins/groupwise-send-options/org-gnome-compose-send-options.eplug.in b/plugins/groupwise-send-options/org-gnome-compose-send-options.eplug.in
deleted file mode 100644
index 2a9029a389..0000000000
--- a/plugins/groupwise-send-options/org-gnome-compose-send-options.eplug.in
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0"?>
-<e-plugin-list>
- <e-plugin
- type="shlib"
- id="org.gnome.evolution.plugin.compose.sendoptions"
- location="@PLUGINDIR@/liborg-gnome-compose-send-options.so"
- name="Groupwise send options">
- <description>Lets you have the send options menu item in the composer window for groupwise mails.</description>
- <author name="Parthasarathi Susarla" email="sparthasarathi@novell.com"/>
-
- <!-- hook into the popup menu -->
- <hook class="org.gnome.evolution.mail.bonobomenu:1.0">
- <menu id="org.gnome.evolution.mail.composer" target="select">
- <ui file="@PLUGINDIR@/org-gnome-compose-send-options.xml"/>
- <item
- type="item"
- verb="EPSOSendOptions"
- path="/commands/EPSOSendOptions"
- enable="one"
- activate="org_gnome_compose_send_options"/>
- </menu>
- </hook>
-
- </e-plugin>
-</e-plugin-list>
diff --git a/plugins/groupwise-send-options/org-gnome-compose-send-options.xml b/plugins/groupwise-send-options/org-gnome-compose-send-options.xml
deleted file mode 100644
index b55858885c..0000000000
--- a/plugins/groupwise-send-options/org-gnome-compose-send-options.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<Root>
- <commands>
- <cmd name="EPSOSendOptions" _label="Print"
- _tip="Prints the message"/>
- </commands>
-
- <menu>
- <submenu name="File">
- <placeholder name="Component">
- <separator f="" name="sendoptions1"/>
- <menuitem name="EPSOSendOptions" verb=""/>
- <separator f="" name="sendoptions2"/>
- </placeholder>
- </submenu>
-
- </menu>
-</Root>
diff --git a/plugins/groupwise-send-options/send-options.c b/plugins/groupwise-send-options/send-options.c
deleted file mode 100644
index be08050076..0000000000
--- a/plugins/groupwise-send-options/send-options.c
+++ /dev/null
@@ -1,150 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
- *
- * Authors: Parthasarathi Susarla <sparthasarathi@novell.com>
- *
- * Copyright 2004 Novell, Inc. (www.novell.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public
- * License 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., 59 Temple Street #330, Boston, MA 02111-1307, USA.
- *
- */
-
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <unistd.h>
-#include <string.h>
-#include <stdio.h>
-
-#include <glib.h>
-#include <glib/gi18n.h>
-
-#include "send-options.h"
-
-#include "mail/em-menu.h"
-#include "mail/em-utils.h"
-
-#include "composer/e-msg-composer.h"
-#include "e-util/e-account.h"
-
-#include "widgets/misc/e-send-options.h"
-
-static ESendOptionsDialog * dialog = NULL ;
-
-void org_gnome_compose_send_options (EPlugin *ep, EMMenuTargetWidget *t);
-
-static time_t
-add_day_to_time (time_t time, int days)
-{
- struct tm *tm;
-
- tm = localtime (&time);
- tm->tm_mday += days;
- tm->tm_isdst = -1;
-
- return mktime (tm);
-}
-
-static void
-send_options_commit (EMsgComposer *comp, gpointer user_data)
-{
- if (!user_data && !E_IS_SENDOPTIONS_DIALOG (user_data))
- return;
-
- if (dialog) {
- g_object_unref (dialog);
- dialog = NULL;
- }
-}
-
-void
-org_gnome_compose_send_options (EPlugin *ep, EMMenuTargetWidget *t)
-{
- struct _EMenuTarget menu = t->target ;
- EMsgComposer *comp = (struct _EMsgComposer *)menu.widget ;
- EAccount *account = NULL;
- char *temp = NULL;
- char *url;
- char value [100];
-
- account = e_msg_composer_get_preferred_account (comp) ;
- url = g_strdup (account->transport->url) ;
- temp = strstr (url, "groupwise") ;
- if (!temp) {
- g_print ("Sorry send options only available for a groupwise account\n") ;
- }
- g_free (temp) ;
- /*disply the send options dialog*/
- if (!dialog) {
- g_print ("New dialog\n\n") ;
- dialog = e_sendoptions_dialog_new () ;
- }
-
- e_sendoptions_dialog_run (dialog, menu.widget, E_ITEM_MAIL) ;
-
- if (dialog->data->gopts->reply_enabled) {
- if (dialog->data->gopts->reply_convenient)
- e_msg_composer_add_header (comp, X_REPLY_CONVENIENT ,"1" ) ;
- else if (dialog->data->gopts->reply_within) {
- time_t t;
- t = add_day_to_time (time (NULL), dialog->data->gopts->reply_within);
- strftime (value, 17, "%Y%m%dT%H%M%SZ", gmtime (&t));
- e_msg_composer_add_header (comp, X_REPLY_WITHIN , value) ;
- }
- }
-
- if (dialog->data->gopts->expiration_enabled) {
- if (dialog->data->gopts->expire_after != 0) {
- time_t t;
- t = add_day_to_time (time (NULL), dialog->data->gopts->expire_after);
- strftime (value, 17, "%Y%m%dT%H%M%SZ", gmtime (&t));
- e_msg_composer_add_header (comp, X_EXPIRE_AFTER, value) ;
- }
- }
- if (dialog->data->gopts->delay_enabled) {
- strftime (value, 17, "%Y%m%dT%H%M%SZ", gmtime (&dialog->data->gopts->delay_until));
- e_msg_composer_add_header (comp, X_DELAY_UNTIL, value) ;
- }
-
- /*Status Tracking Options*/
- if (dialog->data->sopts->tracking_enabled) {
- temp = g_strdup_printf ("%d",dialog->data->sopts->track_when) ;
- e_msg_composer_add_header (comp, X_TRACK_WHEN, temp) ;
- g_free (temp) ;
- }
-
- if (dialog->data->sopts->autodelete) {
- e_msg_composer_add_header (comp, X_AUTODELETE, "1") ;
- }
- if (dialog->data->sopts->opened) {
- temp = g_strdup_printf ("%d",dialog->data->sopts->opened) ;
- e_msg_composer_add_header (comp, X_RETURN_NOTIFY_OPEN, temp) ;
- g_free (temp) ;
- }
- if (dialog->data->sopts->declined) {
- temp = g_strdup_printf ("%d",dialog->data->sopts->declined) ;
- e_msg_composer_add_header (comp, X_RETURN_NOTIFY_DELETE, temp) ;
- g_free (temp) ;
- }
-
- if (dialog->data->gopts->priority) {
- temp = g_strdup_printf ("%d",dialog->data->gopts->priority);
- e_msg_composer_add_header (comp, X_SEND_OPT_PRIORITY,temp);
- g_free (temp);
- }
-
- g_signal_connect (GTK_WIDGET (comp), "destroy",
- G_CALLBACK (send_options_commit), dialog);
-}
-
-
diff --git a/plugins/groupwise-send-options/send-options.h b/plugins/groupwise-send-options/send-options.h
deleted file mode 100644
index 0e6ef03ec5..0000000000
--- a/plugins/groupwise-send-options/send-options.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
- *
- * Authors: Parthasarathi Susarla <sparthasarathi@novell.com>
- *
- * Copyright 2004 Novell, Inc. (www.novell.com)
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of version 2 of the GNU General Public
- * License 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., 59 Temple Street #330, Boston, MA 02111-1307, USA.
- *
- */
-
-#ifndef __GW_SEND_OPTIONS__
-#define __GW_SEND_OPTIONS__
-
-/*Headers for send options*/
-#define X_SEND_OPTIONS "X-gw-send-options"
-/*General Options*/
-#define X_SEND_OPT_PRIORITY "X-gw-send-opt-priority"
-#define X_REPLY_CONVENIENT "X-reply-convenient"
-#define X_REPLY_WITHIN "X-reply-within"
-#define X_EXPIRE_AFTER "X-expire-after"
-#define X_DELAY_UNTIL "X-delay-until"
-
-/*Status Tracking Options*/
-#define X_TRACK_WHEN "X-track-when"
-#define X_AUTODELETE "X-auto-delete"
-#define X_RETURN_NOTIFY_OPEN "X-return-notify-open"
-#define X_RETURN_NOTIFY_DELETE "X-return-notify-delete"
-
-#endif /*__GW_SEND_OPTIONS__*/