diff options
| author | Simeon Simeonov | 2018-02-26 11:23:00 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2018-02-26 11:23:00 +0100 |
| commit | 0b3cbf57875fd692e4ba0b336fefa4bee1ed00dc (patch) | |
| tree | af916a30553c78ce9d4f2d8658656a175c5b6921 /plugin | |
Initial commit for sylpheed 3.7.0
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/Makefile.am | 1 | ||||
| -rw-r--r-- | plugin/Makefile.in | 668 | ||||
| -rw-r--r-- | plugin/attachment_tool/Makefile.am | 20 | ||||
| -rw-r--r-- | plugin/attachment_tool/Makefile.in | 711 | ||||
| -rw-r--r-- | plugin/attachment_tool/README | 26 | ||||
| -rw-r--r-- | plugin/attachment_tool/attachment_tool.c | 302 | ||||
| -rw-r--r-- | plugin/test/Makefile.am | 20 | ||||
| -rw-r--r-- | plugin/test/Makefile.in | 710 | ||||
| -rw-r--r-- | plugin/test/README | 4 | ||||
| -rw-r--r-- | plugin/test/test.c | 306 | ||||
| -rw-r--r-- | plugin/test/test.h | 23 |
11 files changed, 2791 insertions, 0 deletions
diff --git a/plugin/Makefile.am b/plugin/Makefile.am new file mode 100644 index 0000000..5f2ed52 --- /dev/null +++ b/plugin/Makefile.am | |||
| @@ -0,0 +1 @@ | |||
| SUBDIRS = attachment_tool test | |||
diff --git a/plugin/Makefile.in b/plugin/Makefile.in new file mode 100644 index 0000000..31d9655 --- /dev/null +++ b/plugin/Makefile.in | |||
| @@ -0,0 +1,668 @@ | |||
| 1 | # Makefile.in generated by automake 1.14.1 from Makefile.am. | ||
| 2 | # @configure_input@ | ||
| 3 | |||
| 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | # This Makefile.in is free software; the Free Software Foundation | ||
| 7 | # gives unlimited permission to copy and/or distribute it, | ||
| 8 | # with or without modifications, as long as this notice is preserved. | ||
| 9 | |||
| 10 | # This program is distributed in the hope that it will be useful, | ||
| 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
| 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 13 | # PARTICULAR PURPOSE. | ||
| 14 | |||
| 15 | @SET_MAKE@ | ||
| 16 | VPATH = @srcdir@ | ||
| 17 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | ||
| 18 | am__make_running_with_option = \ | ||
| 19 | case $${target_option-} in \ | ||
| 20 | ?) ;; \ | ||
| 21 | *) echo "am__make_running_with_option: internal error: invalid" \ | ||
| 22 | "target option '$${target_option-}' specified" >&2; \ | ||
| 23 | exit 1;; \ | ||
| 24 | esac; \ | ||
| 25 | has_opt=no; \ | ||
| 26 | sane_makeflags=$$MAKEFLAGS; \ | ||
| 27 | if $(am__is_gnu_make); then \ | ||
| 28 | sane_makeflags=$$MFLAGS; \ | ||
| 29 | else \ | ||
| 30 | case $$MAKEFLAGS in \ | ||
| 31 | *\\[\ \ ]*) \ | ||
| 32 | bs=\\; \ | ||
| 33 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | ||
| 34 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | ||
| 35 | esac; \ | ||
| 36 | fi; \ | ||
| 37 | skip_next=no; \ | ||
| 38 | strip_trailopt () \ | ||
| 39 | { \ | ||
| 40 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | ||
| 41 | }; \ | ||
| 42 | for flg in $$sane_makeflags; do \ | ||
| 43 | test $$skip_next = yes && { skip_next=no; continue; }; \ | ||
| 44 | case $$flg in \ | ||
| 45 | *=*|--*) continue;; \ | ||
| 46 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | ||
| 47 | -*I?*) strip_trailopt 'I';; \ | ||
| 48 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | ||
| 49 | -*O?*) strip_trailopt 'O';; \ | ||
| 50 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | ||
| 51 | -*l?*) strip_trailopt 'l';; \ | ||
| 52 | -[dEDm]) skip_next=yes;; \ | ||
| 53 | -[JT]) skip_next=yes;; \ | ||
| 54 | esac; \ | ||
| 55 | case $$flg in \ | ||
| 56 | *$$target_option*) has_opt=yes; break;; \ | ||
| 57 | esac; \ | ||
| 58 | done; \ | ||
| 59 | test $$has_opt = yes | ||
| 60 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | ||
| 61 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | ||
| 62 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
| 63 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
| 64 | pkglibdir = $(libdir)/@PACKAGE@ | ||
| 65 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
| 66 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
| 67 | install_sh_DATA = $(install_sh) -c -m 644 | ||
| 68 | install_sh_PROGRAM = $(install_sh) -c | ||
| 69 | install_sh_SCRIPT = $(install_sh) -c | ||
| 70 | INSTALL_HEADER = $(INSTALL_DATA) | ||
| 71 | transform = $(program_transform_name) | ||
| 72 | NORMAL_INSTALL = : | ||
| 73 | PRE_INSTALL = : | ||
| 74 | POST_INSTALL = : | ||
| 75 | NORMAL_UNINSTALL = : | ||
| 76 | PRE_UNINSTALL = : | ||
| 77 | POST_UNINSTALL = : | ||
| 78 | build_triplet = @build@ | ||
| 79 | host_triplet = @host@ | ||
| 80 | target_triplet = @target@ | ||
| 81 | subdir = plugin | ||
| 82 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | ||
| 83 | $(top_srcdir)/mkinstalldirs | ||
| 84 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
| 85 | am__aclocal_m4_deps = $(top_srcdir)/ac/aclocal-include.m4 \ | ||
| 86 | $(top_srcdir)/ac/gnupg-check-typedef.m4 \ | ||
| 87 | $(top_srcdir)/configure.ac | ||
| 88 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
| 89 | $(ACLOCAL_M4) | ||
| 90 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
| 91 | CONFIG_HEADER = $(top_builddir)/config.h | ||
| 92 | CONFIG_CLEAN_FILES = | ||
| 93 | CONFIG_CLEAN_VPATH_FILES = | ||
| 94 | AM_V_P = $(am__v_P_@AM_V@) | ||
| 95 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | ||
| 96 | am__v_P_0 = false | ||
| 97 | am__v_P_1 = : | ||
| 98 | AM_V_GEN = $(am__v_GEN_@AM_V@) | ||
| 99 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | ||
| 100 | am__v_GEN_0 = @echo " GEN " $@; | ||
| 101 | am__v_GEN_1 = | ||
| 102 | AM_V_at = $(am__v_at_@AM_V@) | ||
| 103 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | ||
| 104 | am__v_at_0 = @ | ||
| 105 | am__v_at_1 = | ||
| 106 | SOURCES = | ||
| 107 | DIST_SOURCES = | ||
| 108 | RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ | ||
| 109 | ctags-recursive dvi-recursive html-recursive info-recursive \ | ||
| 110 | install-data-recursive install-dvi-recursive \ | ||
| 111 | install-exec-recursive install-html-recursive \ | ||
| 112 | install-info-recursive install-pdf-recursive \ | ||
| 113 | install-ps-recursive install-recursive installcheck-recursive \ | ||
| 114 | installdirs-recursive pdf-recursive ps-recursive \ | ||
| 115 | tags-recursive uninstall-recursive | ||
| 116 | am__can_run_installinfo = \ | ||
| 117 | case $$AM_UPDATE_INFO_DIR in \ | ||
| 118 | n|no|NO) false;; \ | ||
| 119 | *) (install-info --version) >/dev/null 2>&1;; \ | ||
| 120 | esac | ||
| 121 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | ||
| 122 | distclean-recursive maintainer-clean-recursive | ||
| 123 | am__recursive_targets = \ | ||
| 124 | $(RECURSIVE_TARGETS) \ | ||
| 125 | $(RECURSIVE_CLEAN_TARGETS) \ | ||
| 126 | $(am__extra_recursive_targets) | ||
| 127 | AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ | ||
| 128 | distdir | ||
| 129 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | ||
| 130 | # Read a list of newline-separated strings from the standard input, | ||
| 131 | # and print each of them once, without duplicates. Input order is | ||
| 132 | # *not* preserved. | ||
| 133 | am__uniquify_input = $(AWK) '\ | ||
| 134 | BEGIN { nonempty = 0; } \ | ||
| 135 | { items[$$0] = 1; nonempty = 1; } \ | ||
| 136 | END { if (nonempty) { for (i in items) print i; }; } \ | ||
| 137 | ' | ||
| 138 | # Make sure the list of sources is unique. This is necessary because, | ||
| 139 | # e.g., the same source file might be shared among _SOURCES variables | ||
| 140 | # for different programs/libraries. | ||
| 141 | am__define_uniq_tagged_files = \ | ||
| 142 | list='$(am__tagged_files)'; \ | ||
| 143 | unique=`for i in $$list; do \ | ||
| 144 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
| 145 | done | $(am__uniquify_input)` | ||
| 146 | ETAGS = etags | ||
| 147 | CTAGS = ctags | ||
| 148 | DIST_SUBDIRS = $(SUBDIRS) | ||
| 149 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
| 150 | am__relativize = \ | ||
| 151 | dir0=`pwd`; \ | ||
| 152 | sed_first='s,^\([^/]*\)/.*$$,\1,'; \ | ||
| 153 | sed_rest='s,^[^/]*/*,,'; \ | ||
| 154 | sed_last='s,^.*/\([^/]*\)$$,\1,'; \ | ||
| 155 | sed_butlast='s,/*[^/]*$$,,'; \ | ||
| 156 | while test -n "$$dir1"; do \ | ||
| 157 | first=`echo "$$dir1" | sed -e "$$sed_first"`; \ | ||
| 158 | if test "$$first" != "."; then \ | ||
| 159 | if test "$$first" = ".."; then \ | ||
| 160 | dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ | ||
| 161 | dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ | ||
| 162 | else \ | ||
| 163 | first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ | ||
| 164 | if test "$$first2" = "$$first"; then \ | ||
| 165 | dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ | ||
| 166 | else \ | ||
| 167 | dir2="../$$dir2"; \ | ||
| 168 | fi; \ | ||
| 169 | dir0="$$dir0"/"$$first"; \ | ||
| 170 | fi; \ | ||
| 171 | fi; \ | ||
| 172 | dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ | ||
| 173 | done; \ | ||
| 174 | reldir="$$dir2" | ||
| 175 | ACLOCAL = @ACLOCAL@ | ||
| 176 | ALLOCA = @ALLOCA@ | ||
| 177 | AMTAR = @AMTAR@ | ||
| 178 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
| 179 | AR = @AR@ | ||
| 180 | AUTOCONF = @AUTOCONF@ | ||
| 181 | AUTOHEADER = @AUTOHEADER@ | ||
| 182 | AUTOMAKE = @AUTOMAKE@ | ||
| 183 | AWK = @AWK@ | ||
| 184 | BUILD_REVISION = @BUILD_REVISION@ | ||
| 185 | CATALOGS = @CATALOGS@ | ||
| 186 | CATOBJEXT = @CATOBJEXT@ | ||
| 187 | CC = @CC@ | ||
| 188 | CCDEPMODE = @CCDEPMODE@ | ||
| 189 | CFLAGS = @CFLAGS@ | ||
| 190 | CPP = @CPP@ | ||
| 191 | CPPFLAGS = @CPPFLAGS@ | ||
| 192 | CYGPATH_W = @CYGPATH_W@ | ||
| 193 | DATADIRNAME = @DATADIRNAME@ | ||
| 194 | DEFS = @DEFS@ | ||
| 195 | DEPDIR = @DEPDIR@ | ||
| 196 | DEVEL_VERSION = @DEVEL_VERSION@ | ||
| 197 | DLLTOOL = @DLLTOOL@ | ||
| 198 | DSYMUTIL = @DSYMUTIL@ | ||
| 199 | DUMPBIN = @DUMPBIN@ | ||
| 200 | ECHO_C = @ECHO_C@ | ||
| 201 | ECHO_N = @ECHO_N@ | ||
| 202 | ECHO_T = @ECHO_T@ | ||
| 203 | EGREP = @EGREP@ | ||
| 204 | EXEEXT = @EXEEXT@ | ||
| 205 | EXTRA_VERSION = @EXTRA_VERSION@ | ||
| 206 | FGREP = @FGREP@ | ||
| 207 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
| 208 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
| 209 | GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ | ||
| 210 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
| 211 | GLIB_LIBS = @GLIB_LIBS@ | ||
| 212 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
| 213 | GMOFILES = @GMOFILES@ | ||
| 214 | GMSGFMT = @GMSGFMT@ | ||
| 215 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
| 216 | GPGME_CFLAGS = @GPGME_CFLAGS@ | ||
| 217 | GPGME_CONFIG = @GPGME_CONFIG@ | ||
| 218 | GPGME_LIBS = @GPGME_LIBS@ | ||
| 219 | GREP = @GREP@ | ||
| 220 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
| 221 | GTK_LIBS = @GTK_LIBS@ | ||
| 222 | INSTALL = @INSTALL@ | ||
| 223 | INSTALL_DATA = @INSTALL_DATA@ | ||
| 224 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
| 225 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
| 226 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
| 227 | INSTOBJEXT = @INSTOBJEXT@ | ||
| 228 | INTLLIBS = @INTLLIBS@ | ||
| 229 | LD = @LD@ | ||
| 230 | LDAP_LIBS = @LDAP_LIBS@ | ||
| 231 | LDFLAGS = @LDFLAGS@ | ||
| 232 | LEX = @LEX@ | ||
| 233 | LEXLIB = @LEXLIB@ | ||
| 234 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
| 235 | LIBICONV = @LIBICONV@ | ||
| 236 | LIBOBJS = @LIBOBJS@ | ||
| 237 | LIBS = @LIBS@ | ||
| 238 | LIBSYLPH_CFLAGS = @LIBSYLPH_CFLAGS@ | ||
| 239 | LIBSYLPH_LIBS = @LIBSYLPH_LIBS@ | ||
| 240 | LIBTOOL = @LIBTOOL@ | ||
| 241 | LIPO = @LIPO@ | ||
| 242 | LN_S = @LN_S@ | ||
| 243 | LTLIBICONV = @LTLIBICONV@ | ||
| 244 | LTLIBOBJS = @LTLIBOBJS@ | ||
| 245 | LT_AGE = @LT_AGE@ | ||
| 246 | LT_CURRENT = @LT_CURRENT@ | ||
| 247 | LT_RELEASE = @LT_RELEASE@ | ||
| 248 | LT_REVISION = @LT_REVISION@ | ||
| 249 | MAINT = @MAINT@ | ||
| 250 | MAJOR_VERSION = @MAJOR_VERSION@ | ||
| 251 | MAKEINFO = @MAKEINFO@ | ||
| 252 | MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
| 253 | MICRO_VERSION = @MICRO_VERSION@ | ||
| 254 | MINOR_VERSION = @MINOR_VERSION@ | ||
| 255 | MKDIR_P = @MKDIR_P@ | ||
| 256 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
| 257 | MSGFMT = @MSGFMT@ | ||
| 258 | MSGFMT_OPTS = @MSGFMT_OPTS@ | ||
| 259 | NM = @NM@ | ||
| 260 | NMEDIT = @NMEDIT@ | ||
| 261 | OBJDUMP = @OBJDUMP@ | ||
| 262 | OBJEXT = @OBJEXT@ | ||
| 263 | OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ | ||
| 264 | OPENSSL_LIBS = @OPENSSL_LIBS@ | ||
| 265 | OTOOL = @OTOOL@ | ||
| 266 | OTOOL64 = @OTOOL64@ | ||
| 267 | PACKAGE = @PACKAGE@ | ||
| 268 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
| 269 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
| 270 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
| 271 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
| 272 | PACKAGE_URL = @PACKAGE_URL@ | ||
| 273 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
| 274 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
| 275 | PKG_CONFIG = @PKG_CONFIG@ | ||
| 276 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
| 277 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
| 278 | POFILES = @POFILES@ | ||
| 279 | POSUB = @POSUB@ | ||
| 280 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
| 281 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
| 282 | RANLIB = @RANLIB@ | ||
| 283 | SED = @SED@ | ||
| 284 | SET_MAKE = @SET_MAKE@ | ||
| 285 | SHELL = @SHELL@ | ||
| 286 | STRIP = @STRIP@ | ||
| 287 | SYLPHEED_LIBS = @SYLPHEED_LIBS@ | ||
| 288 | USE_NLS = @USE_NLS@ | ||
| 289 | VERSION = @VERSION@ | ||
| 290 | WINDRES = @WINDRES@ | ||
| 291 | XGETTEXT = @XGETTEXT@ | ||
| 292 | YACC = @YACC@ | ||
| 293 | YFLAGS = @YFLAGS@ | ||
| 294 | abs_builddir = @abs_builddir@ | ||
| 295 | abs_srcdir = @abs_srcdir@ | ||
| 296 | abs_top_builddir = @abs_top_builddir@ | ||
| 297 | abs_top_srcdir = @abs_top_srcdir@ | ||
| 298 | ac_ct_AR = @ac_ct_AR@ | ||
| 299 | ac_ct_CC = @ac_ct_CC@ | ||
| 300 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
| 301 | am__include = @am__include@ | ||
| 302 | am__leading_dot = @am__leading_dot@ | ||
| 303 | am__quote = @am__quote@ | ||
| 304 | am__tar = @am__tar@ | ||
| 305 | am__untar = @am__untar@ | ||
| 306 | bindir = @bindir@ | ||
| 307 | build = @build@ | ||
| 308 | build_alias = @build_alias@ | ||
| 309 | build_cpu = @build_cpu@ | ||
| 310 | build_os = @build_os@ | ||
| 311 | build_vendor = @build_vendor@ | ||
| 312 | builddir = @builddir@ | ||
| 313 | datadir = @datadir@ | ||
| 314 | datarootdir = @datarootdir@ | ||
| 315 | docdir = @docdir@ | ||
| 316 | dvidir = @dvidir@ | ||
| 317 | exec_prefix = @exec_prefix@ | ||
| 318 | faqdir = @faqdir@ | ||
| 319 | host = @host@ | ||
| 320 | host_alias = @host_alias@ | ||
| 321 | host_cpu = @host_cpu@ | ||
| 322 | host_os = @host_os@ | ||
| 323 | host_vendor = @host_vendor@ | ||
| 324 | htmldir = @htmldir@ | ||
| 325 | includedir = @includedir@ | ||
| 326 | infodir = @infodir@ | ||
| 327 | install_sh = @install_sh@ | ||
| 328 | libdir = @libdir@ | ||
| 329 | libexecdir = @libexecdir@ | ||
| 330 | localedir = @localedir@ | ||
| 331 | localstatedir = @localstatedir@ | ||
| 332 | mandir = @mandir@ | ||
| 333 | manualdir = @manualdir@ | ||
| 334 | mkdir_p = @mkdir_p@ | ||
| 335 | oldincludedir = @oldincludedir@ | ||
| 336 | pdfdir = @pdfdir@ | ||
| 337 | plugindir = @plugindir@ | ||
| 338 | prefix = @prefix@ | ||
| 339 | program_transform_name = @program_transform_name@ | ||
| 340 | psdir = @psdir@ | ||
| 341 | sbindir = @sbindir@ | ||
| 342 | sharedstatedir = @sharedstatedir@ | ||
| 343 | srcdir = @srcdir@ | ||
| 344 | sysconfdir = @sysconfdir@ | ||
| 345 | target = @target@ | ||
| 346 | target_alias = @target_alias@ | ||
| 347 | target_cpu = @target_cpu@ | ||
| 348 | target_os = @target_os@ | ||
| 349 | target_vendor = @target_vendor@ | ||
| 350 | themedir = @themedir@ | ||
| 351 | top_build_prefix = @top_build_prefix@ | ||
| 352 | top_builddir = @top_builddir@ | ||
| 353 | top_srcdir = @top_srcdir@ | ||
| 354 | SUBDIRS = attachment_tool test | ||
| 355 | all: all-recursive | ||
| 356 | |||
| 357 | .SUFFIXES: | ||
| 358 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | ||
| 359 | @for dep in $?; do \ | ||
| 360 | case '$(am__configure_deps)' in \ | ||
| 361 | *$$dep*) \ | ||
| 362 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
| 363 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
| 364 | exit 1;; \ | ||
| 365 | esac; \ | ||
| 366 | done; \ | ||
| 367 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign plugin/Makefile'; \ | ||
| 368 | $(am__cd) $(top_srcdir) && \ | ||
| 369 | $(AUTOMAKE) --foreign plugin/Makefile | ||
| 370 | .PRECIOUS: Makefile | ||
| 371 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
| 372 | @case '$?' in \ | ||
| 373 | *config.status*) \ | ||
| 374 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
| 375 | *) \ | ||
| 376 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
| 377 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
| 378 | esac; | ||
| 379 | |||
| 380 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
| 381 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 382 | |||
| 383 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | ||
| 384 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 385 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | ||
| 386 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 387 | $(am__aclocal_m4_deps): | ||
| 388 | |||
| 389 | mostlyclean-libtool: | ||
| 390 | -rm -f *.lo | ||
| 391 | |||
| 392 | clean-libtool: | ||
| 393 | -rm -rf .libs _libs | ||
| 394 | |||
| 395 | # This directory's subdirectories are mostly independent; you can cd | ||
| 396 | # into them and run 'make' without going through this Makefile. | ||
| 397 | # To change the values of 'make' variables: instead of editing Makefiles, | ||
| 398 | # (1) if the variable is set in 'config.status', edit 'config.status' | ||
| 399 | # (which will cause the Makefiles to be regenerated when you run 'make'); | ||
| 400 | # (2) otherwise, pass the desired values on the 'make' command line. | ||
| 401 | $(am__recursive_targets): | ||
| 402 | @fail=; \ | ||
| 403 | if $(am__make_keepgoing); then \ | ||
| 404 | failcom='fail=yes'; \ | ||
| 405 | else \ | ||
| 406 | failcom='exit 1'; \ | ||
| 407 | fi; \ | ||
| 408 | dot_seen=no; \ | ||
| 409 | target=`echo $@ | sed s/-recursive//`; \ | ||
| 410 | case "$@" in \ | ||
| 411 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | ||
| 412 | *) list='$(SUBDIRS)' ;; \ | ||
| 413 | esac; \ | ||
| 414 | for subdir in $$list; do \ | ||
| 415 | echo "Making $$target in $$subdir"; \ | ||
| 416 | if test "$$subdir" = "."; then \ | ||
| 417 | dot_seen=yes; \ | ||
| 418 | local_target="$$target-am"; \ | ||
| 419 | else \ | ||
| 420 | local_target="$$target"; \ | ||
| 421 | fi; \ | ||
| 422 | ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
| 423 | || eval $$failcom; \ | ||
| 424 | done; \ | ||
| 425 | if test "$$dot_seen" = "no"; then \ | ||
| 426 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||
| 427 | fi; test -z "$$fail" | ||
| 428 | |||
| 429 | ID: $(am__tagged_files) | ||
| 430 | $(am__define_uniq_tagged_files); mkid -fID $$unique | ||
| 431 | tags: tags-recursive | ||
| 432 | TAGS: tags | ||
| 433 | |||
| 434 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 435 | set x; \ | ||
| 436 | here=`pwd`; \ | ||
| 437 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | ||
| 438 | include_option=--etags-include; \ | ||
| 439 | empty_fix=.; \ | ||
| 440 | else \ | ||
| 441 | include_option=--include; \ | ||
| 442 | empty_fix=; \ | ||
| 443 | fi; \ | ||
| 444 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
| 445 | if test "$$subdir" = .; then :; else \ | ||
| 446 | test ! -f $$subdir/TAGS || \ | ||
| 447 | set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ | ||
| 448 | fi; \ | ||
| 449 | done; \ | ||
| 450 | $(am__define_uniq_tagged_files); \ | ||
| 451 | shift; \ | ||
| 452 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
| 453 | test -n "$$unique" || unique=$$empty_fix; \ | ||
| 454 | if test $$# -gt 0; then \ | ||
| 455 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 456 | "$$@" $$unique; \ | ||
| 457 | else \ | ||
| 458 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 459 | $$unique; \ | ||
| 460 | fi; \ | ||
| 461 | fi | ||
| 462 | ctags: ctags-recursive | ||
| 463 | |||
| 464 | CTAGS: ctags | ||
| 465 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 466 | $(am__define_uniq_tagged_files); \ | ||
| 467 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
| 468 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
| 469 | $$unique | ||
| 470 | |||
| 471 | GTAGS: | ||
| 472 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
| 473 | && $(am__cd) $(top_srcdir) \ | ||
| 474 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
| 475 | cscopelist: cscopelist-recursive | ||
| 476 | |||
| 477 | cscopelist-am: $(am__tagged_files) | ||
| 478 | list='$(am__tagged_files)'; \ | ||
| 479 | case "$(srcdir)" in \ | ||
| 480 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | ||
| 481 | *) sdir=$(subdir)/$(srcdir) ;; \ | ||
| 482 | esac; \ | ||
| 483 | for i in $$list; do \ | ||
| 484 | if test -f "$$i"; then \ | ||
| 485 | echo "$(subdir)/$$i"; \ | ||
| 486 | else \ | ||
| 487 | echo "$$sdir/$$i"; \ | ||
| 488 | fi; \ | ||
| 489 | done >> $(top_builddir)/cscope.files | ||
| 490 | |||
| 491 | distclean-tags: | ||
| 492 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
| 493 | |||
| 494 | distdir: $(DISTFILES) | ||
| 495 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 496 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 497 | list='$(DISTFILES)'; \ | ||
| 498 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
| 499 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
| 500 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
| 501 | case $$dist_files in \ | ||
| 502 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
| 503 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
| 504 | sort -u` ;; \ | ||
| 505 | esac; \ | ||
| 506 | for file in $$dist_files; do \ | ||
| 507 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
| 508 | if test -d $$d/$$file; then \ | ||
| 509 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
| 510 | if test -d "$(distdir)/$$file"; then \ | ||
| 511 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 512 | fi; \ | ||
| 513 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
| 514 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 515 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 516 | fi; \ | ||
| 517 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 518 | else \ | ||
| 519 | test -f "$(distdir)/$$file" \ | ||
| 520 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
| 521 | || exit 1; \ | ||
| 522 | fi; \ | ||
| 523 | done | ||
| 524 | @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | ||
| 525 | if test "$$subdir" = .; then :; else \ | ||
| 526 | $(am__make_dryrun) \ | ||
| 527 | || test -d "$(distdir)/$$subdir" \ | ||
| 528 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | ||
| 529 | || exit 1; \ | ||
| 530 | dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ | ||
| 531 | $(am__relativize); \ | ||
| 532 | new_distdir=$$reldir; \ | ||
| 533 | dir1=$$subdir; dir2="$(top_distdir)"; \ | ||
| 534 | $(am__relativize); \ | ||
| 535 | new_top_distdir=$$reldir; \ | ||
| 536 | echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ | ||
| 537 | echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ | ||
| 538 | ($(am__cd) $$subdir && \ | ||
| 539 | $(MAKE) $(AM_MAKEFLAGS) \ | ||
| 540 | top_distdir="$$new_top_distdir" \ | ||
| 541 | distdir="$$new_distdir" \ | ||
| 542 | am__remove_distdir=: \ | ||
| 543 | am__skip_length_check=: \ | ||
| 544 | am__skip_mode_fix=: \ | ||
| 545 | distdir) \ | ||
| 546 | || exit 1; \ | ||
| 547 | fi; \ | ||
| 548 | done | ||
| 549 | check-am: all-am | ||
| 550 | check: check-recursive | ||
| 551 | all-am: Makefile | ||
| 552 | installdirs: installdirs-recursive | ||
| 553 | installdirs-am: | ||
| 554 | install: install-recursive | ||
| 555 | install-exec: install-exec-recursive | ||
| 556 | install-data: install-data-recursive | ||
| 557 | uninstall: uninstall-recursive | ||
| 558 | |||
| 559 | install-am: all-am | ||
| 560 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
| 561 | |||
| 562 | installcheck: installcheck-recursive | ||
| 563 | install-strip: | ||
| 564 | if test -z '$(STRIP)'; then \ | ||
| 565 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 566 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 567 | install; \ | ||
| 568 | else \ | ||
| 569 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 570 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 571 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | ||
| 572 | fi | ||
| 573 | mostlyclean-generic: | ||
| 574 | |||
| 575 | clean-generic: | ||
| 576 | |||
| 577 | distclean-generic: | ||
| 578 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
| 579 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
| 580 | |||
| 581 | maintainer-clean-generic: | ||
| 582 | @echo "This command is intended for maintainers to use" | ||
| 583 | @echo "it deletes files that may require special tools to rebuild." | ||
| 584 | clean: clean-recursive | ||
| 585 | |||
| 586 | clean-am: clean-generic clean-libtool mostlyclean-am | ||
| 587 | |||
| 588 | distclean: distclean-recursive | ||
| 589 | -rm -f Makefile | ||
| 590 | distclean-am: clean-am distclean-generic distclean-tags | ||
| 591 | |||
| 592 | dvi: dvi-recursive | ||
| 593 | |||
| 594 | dvi-am: | ||
| 595 | |||
| 596 | html: html-recursive | ||
| 597 | |||
| 598 | html-am: | ||
| 599 | |||
| 600 | info: info-recursive | ||
| 601 | |||
| 602 | info-am: | ||
| 603 | |||
| 604 | install-data-am: | ||
| 605 | |||
| 606 | install-dvi: install-dvi-recursive | ||
| 607 | |||
| 608 | install-dvi-am: | ||
| 609 | |||
| 610 | install-exec-am: | ||
| 611 | |||
| 612 | install-html: install-html-recursive | ||
| 613 | |||
| 614 | install-html-am: | ||
| 615 | |||
| 616 | install-info: install-info-recursive | ||
| 617 | |||
| 618 | install-info-am: | ||
| 619 | |||
| 620 | install-man: | ||
| 621 | |||
| 622 | install-pdf: install-pdf-recursive | ||
| 623 | |||
| 624 | install-pdf-am: | ||
| 625 | |||
| 626 | install-ps: install-ps-recursive | ||
| 627 | |||
| 628 | install-ps-am: | ||
| 629 | |||
| 630 | installcheck-am: | ||
| 631 | |||
| 632 | maintainer-clean: maintainer-clean-recursive | ||
| 633 | -rm -f Makefile | ||
| 634 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
| 635 | |||
| 636 | mostlyclean: mostlyclean-recursive | ||
| 637 | |||
| 638 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool | ||
| 639 | |||
| 640 | pdf: pdf-recursive | ||
| 641 | |||
| 642 | pdf-am: | ||
| 643 | |||
| 644 | ps: ps-recursive | ||
| 645 | |||
| 646 | ps-am: | ||
| 647 | |||
| 648 | uninstall-am: | ||
| 649 | |||
| 650 | .MAKE: $(am__recursive_targets) install-am install-strip | ||
| 651 | |||
| 652 | .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ | ||
| 653 | check-am clean clean-generic clean-libtool cscopelist-am ctags \ | ||
| 654 | ctags-am distclean distclean-generic distclean-libtool \ | ||
| 655 | distclean-tags distdir dvi dvi-am html html-am info info-am \ | ||
| 656 | install install-am install-data install-data-am install-dvi \ | ||
| 657 | install-dvi-am install-exec install-exec-am install-html \ | ||
| 658 | install-html-am install-info install-info-am install-man \ | ||
| 659 | install-pdf install-pdf-am install-ps install-ps-am \ | ||
| 660 | install-strip installcheck installcheck-am installdirs \ | ||
| 661 | installdirs-am maintainer-clean maintainer-clean-generic \ | ||
| 662 | mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ | ||
| 663 | ps ps-am tags tags-am uninstall uninstall-am | ||
| 664 | |||
| 665 | |||
| 666 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
| 667 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
| 668 | .NOEXPORT: | ||
diff --git a/plugin/attachment_tool/Makefile.am b/plugin/attachment_tool/Makefile.am new file mode 100644 index 0000000..81079b6 --- /dev/null +++ b/plugin/attachment_tool/Makefile.am | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | libdir = $(plugindir) | ||
| 2 | |||
| 3 | lib_LTLIBRARIES = attachment_tool.la | ||
| 4 | |||
| 5 | attachment_tool_la_SOURCES = attachment_tool.c | ||
| 6 | attachment_tool_la_LDFLAGS = -module -no-undefined -avoid-version | ||
| 7 | |||
| 8 | INCLUDES = \ | ||
| 9 | -I$(top_srcdir) \ | ||
| 10 | -I$(top_srcdir)/libsylph \ | ||
| 11 | -I$(top_srcdir)/src \ | ||
| 12 | $(GTK_CFLAGS) | ||
| 13 | |||
| 14 | attachment_tool_la_LIBADD = \ | ||
| 15 | $(GTK_LIBS) \ | ||
| 16 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 17 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 18 | |||
| 19 | install: | ||
| 20 | install-plugin: install-am | ||
diff --git a/plugin/attachment_tool/Makefile.in b/plugin/attachment_tool/Makefile.in new file mode 100644 index 0000000..0cdead8 --- /dev/null +++ b/plugin/attachment_tool/Makefile.in | |||
| @@ -0,0 +1,711 @@ | |||
| 1 | # Makefile.in generated by automake 1.14.1 from Makefile.am. | ||
| 2 | # @configure_input@ | ||
| 3 | |||
| 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | # This Makefile.in is free software; the Free Software Foundation | ||
| 7 | # gives unlimited permission to copy and/or distribute it, | ||
| 8 | # with or without modifications, as long as this notice is preserved. | ||
| 9 | |||
| 10 | # This program is distributed in the hope that it will be useful, | ||
| 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
| 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 13 | # PARTICULAR PURPOSE. | ||
| 14 | |||
| 15 | @SET_MAKE@ | ||
| 16 | |||
| 17 | VPATH = @srcdir@ | ||
| 18 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | ||
| 19 | am__make_running_with_option = \ | ||
| 20 | case $${target_option-} in \ | ||
| 21 | ?) ;; \ | ||
| 22 | *) echo "am__make_running_with_option: internal error: invalid" \ | ||
| 23 | "target option '$${target_option-}' specified" >&2; \ | ||
| 24 | exit 1;; \ | ||
| 25 | esac; \ | ||
| 26 | has_opt=no; \ | ||
| 27 | sane_makeflags=$$MAKEFLAGS; \ | ||
| 28 | if $(am__is_gnu_make); then \ | ||
| 29 | sane_makeflags=$$MFLAGS; \ | ||
| 30 | else \ | ||
| 31 | case $$MAKEFLAGS in \ | ||
| 32 | *\\[\ \ ]*) \ | ||
| 33 | bs=\\; \ | ||
| 34 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | ||
| 35 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | ||
| 36 | esac; \ | ||
| 37 | fi; \ | ||
| 38 | skip_next=no; \ | ||
| 39 | strip_trailopt () \ | ||
| 40 | { \ | ||
| 41 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | ||
| 42 | }; \ | ||
| 43 | for flg in $$sane_makeflags; do \ | ||
| 44 | test $$skip_next = yes && { skip_next=no; continue; }; \ | ||
| 45 | case $$flg in \ | ||
| 46 | *=*|--*) continue;; \ | ||
| 47 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | ||
| 48 | -*I?*) strip_trailopt 'I';; \ | ||
| 49 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | ||
| 50 | -*O?*) strip_trailopt 'O';; \ | ||
| 51 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | ||
| 52 | -*l?*) strip_trailopt 'l';; \ | ||
| 53 | -[dEDm]) skip_next=yes;; \ | ||
| 54 | -[JT]) skip_next=yes;; \ | ||
| 55 | esac; \ | ||
| 56 | case $$flg in \ | ||
| 57 | *$$target_option*) has_opt=yes; break;; \ | ||
| 58 | esac; \ | ||
| 59 | done; \ | ||
| 60 | test $$has_opt = yes | ||
| 61 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | ||
| 62 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | ||
| 63 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
| 64 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
| 65 | pkglibdir = $(libdir)/@PACKAGE@ | ||
| 66 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
| 67 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
| 68 | install_sh_DATA = $(install_sh) -c -m 644 | ||
| 69 | install_sh_PROGRAM = $(install_sh) -c | ||
| 70 | install_sh_SCRIPT = $(install_sh) -c | ||
| 71 | INSTALL_HEADER = $(INSTALL_DATA) | ||
| 72 | transform = $(program_transform_name) | ||
| 73 | NORMAL_INSTALL = : | ||
| 74 | PRE_INSTALL = : | ||
| 75 | POST_INSTALL = : | ||
| 76 | NORMAL_UNINSTALL = : | ||
| 77 | PRE_UNINSTALL = : | ||
| 78 | POST_UNINSTALL = : | ||
| 79 | build_triplet = @build@ | ||
| 80 | host_triplet = @host@ | ||
| 81 | target_triplet = @target@ | ||
| 82 | subdir = plugin/attachment_tool | ||
| 83 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | ||
| 84 | $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README | ||
| 85 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
| 86 | am__aclocal_m4_deps = $(top_srcdir)/ac/aclocal-include.m4 \ | ||
| 87 | $(top_srcdir)/ac/gnupg-check-typedef.m4 \ | ||
| 88 | $(top_srcdir)/configure.ac | ||
| 89 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
| 90 | $(ACLOCAL_M4) | ||
| 91 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
| 92 | CONFIG_HEADER = $(top_builddir)/config.h | ||
| 93 | CONFIG_CLEAN_FILES = | ||
| 94 | CONFIG_CLEAN_VPATH_FILES = | ||
| 95 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
| 96 | am__vpath_adj = case $$p in \ | ||
| 97 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
| 98 | *) f=$$p;; \ | ||
| 99 | esac; | ||
| 100 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
| 101 | am__install_max = 40 | ||
| 102 | am__nobase_strip_setup = \ | ||
| 103 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
| 104 | am__nobase_strip = \ | ||
| 105 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
| 106 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
| 107 | for p in $$list; do echo "$$p $$p"; done | \ | ||
| 108 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
| 109 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
| 110 | if (++n[$$2] == $(am__install_max)) \ | ||
| 111 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
| 112 | END { for (dir in files) print dir, files[dir] }' | ||
| 113 | am__base_list = \ | ||
| 114 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
| 115 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
| 116 | am__uninstall_files_from_dir = { \ | ||
| 117 | test -z "$$files" \ | ||
| 118 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | ||
| 119 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | ||
| 120 | $(am__cd) "$$dir" && rm -f $$files; }; \ | ||
| 121 | } | ||
| 122 | am__installdirs = "$(DESTDIR)$(libdir)" | ||
| 123 | LTLIBRARIES = $(lib_LTLIBRARIES) | ||
| 124 | am__DEPENDENCIES_1 = | ||
| 125 | attachment_tool_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | ||
| 126 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 127 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 128 | am_attachment_tool_la_OBJECTS = attachment_tool.lo | ||
| 129 | attachment_tool_la_OBJECTS = $(am_attachment_tool_la_OBJECTS) | ||
| 130 | AM_V_lt = $(am__v_lt_@AM_V@) | ||
| 131 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | ||
| 132 | am__v_lt_0 = --silent | ||
| 133 | am__v_lt_1 = | ||
| 134 | attachment_tool_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
| 135 | $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
| 136 | $(AM_CFLAGS) $(CFLAGS) $(attachment_tool_la_LDFLAGS) \ | ||
| 137 | $(LDFLAGS) -o $@ | ||
| 138 | AM_V_P = $(am__v_P_@AM_V@) | ||
| 139 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | ||
| 140 | am__v_P_0 = false | ||
| 141 | am__v_P_1 = : | ||
| 142 | AM_V_GEN = $(am__v_GEN_@AM_V@) | ||
| 143 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | ||
| 144 | am__v_GEN_0 = @echo " GEN " $@; | ||
| 145 | am__v_GEN_1 = | ||
| 146 | AM_V_at = $(am__v_at_@AM_V@) | ||
| 147 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | ||
| 148 | am__v_at_0 = @ | ||
| 149 | am__v_at_1 = | ||
| 150 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
| 151 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
| 152 | am__depfiles_maybe = depfiles | ||
| 153 | am__mv = mv -f | ||
| 154 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
| 155 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
| 156 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 157 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
| 158 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
| 159 | $(AM_CFLAGS) $(CFLAGS) | ||
| 160 | AM_V_CC = $(am__v_CC_@AM_V@) | ||
| 161 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | ||
| 162 | am__v_CC_0 = @echo " CC " $@; | ||
| 163 | am__v_CC_1 = | ||
| 164 | CCLD = $(CC) | ||
| 165 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 166 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
| 167 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
| 168 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | ||
| 169 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | ||
| 170 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
| 171 | am__v_CCLD_1 = | ||
| 172 | SOURCES = $(attachment_tool_la_SOURCES) | ||
| 173 | DIST_SOURCES = $(attachment_tool_la_SOURCES) | ||
| 174 | am__can_run_installinfo = \ | ||
| 175 | case $$AM_UPDATE_INFO_DIR in \ | ||
| 176 | n|no|NO) false;; \ | ||
| 177 | *) (install-info --version) >/dev/null 2>&1;; \ | ||
| 178 | esac | ||
| 179 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | ||
| 180 | # Read a list of newline-separated strings from the standard input, | ||
| 181 | # and print each of them once, without duplicates. Input order is | ||
| 182 | # *not* preserved. | ||
| 183 | am__uniquify_input = $(AWK) '\ | ||
| 184 | BEGIN { nonempty = 0; } \ | ||
| 185 | { items[$$0] = 1; nonempty = 1; } \ | ||
| 186 | END { if (nonempty) { for (i in items) print i; }; } \ | ||
| 187 | ' | ||
| 188 | # Make sure the list of sources is unique. This is necessary because, | ||
| 189 | # e.g., the same source file might be shared among _SOURCES variables | ||
| 190 | # for different programs/libraries. | ||
| 191 | am__define_uniq_tagged_files = \ | ||
| 192 | list='$(am__tagged_files)'; \ | ||
| 193 | unique=`for i in $$list; do \ | ||
| 194 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
| 195 | done | $(am__uniquify_input)` | ||
| 196 | ETAGS = etags | ||
| 197 | CTAGS = ctags | ||
| 198 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
| 199 | ACLOCAL = @ACLOCAL@ | ||
| 200 | ALLOCA = @ALLOCA@ | ||
| 201 | AMTAR = @AMTAR@ | ||
| 202 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
| 203 | AR = @AR@ | ||
| 204 | AUTOCONF = @AUTOCONF@ | ||
| 205 | AUTOHEADER = @AUTOHEADER@ | ||
| 206 | AUTOMAKE = @AUTOMAKE@ | ||
| 207 | AWK = @AWK@ | ||
| 208 | BUILD_REVISION = @BUILD_REVISION@ | ||
| 209 | CATALOGS = @CATALOGS@ | ||
| 210 | CATOBJEXT = @CATOBJEXT@ | ||
| 211 | CC = @CC@ | ||
| 212 | CCDEPMODE = @CCDEPMODE@ | ||
| 213 | CFLAGS = @CFLAGS@ | ||
| 214 | CPP = @CPP@ | ||
| 215 | CPPFLAGS = @CPPFLAGS@ | ||
| 216 | CYGPATH_W = @CYGPATH_W@ | ||
| 217 | DATADIRNAME = @DATADIRNAME@ | ||
| 218 | DEFS = @DEFS@ | ||
| 219 | DEPDIR = @DEPDIR@ | ||
| 220 | DEVEL_VERSION = @DEVEL_VERSION@ | ||
| 221 | DLLTOOL = @DLLTOOL@ | ||
| 222 | DSYMUTIL = @DSYMUTIL@ | ||
| 223 | DUMPBIN = @DUMPBIN@ | ||
| 224 | ECHO_C = @ECHO_C@ | ||
| 225 | ECHO_N = @ECHO_N@ | ||
| 226 | ECHO_T = @ECHO_T@ | ||
| 227 | EGREP = @EGREP@ | ||
| 228 | EXEEXT = @EXEEXT@ | ||
| 229 | EXTRA_VERSION = @EXTRA_VERSION@ | ||
| 230 | FGREP = @FGREP@ | ||
| 231 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
| 232 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
| 233 | GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ | ||
| 234 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
| 235 | GLIB_LIBS = @GLIB_LIBS@ | ||
| 236 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
| 237 | GMOFILES = @GMOFILES@ | ||
| 238 | GMSGFMT = @GMSGFMT@ | ||
| 239 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
| 240 | GPGME_CFLAGS = @GPGME_CFLAGS@ | ||
| 241 | GPGME_CONFIG = @GPGME_CONFIG@ | ||
| 242 | GPGME_LIBS = @GPGME_LIBS@ | ||
| 243 | GREP = @GREP@ | ||
| 244 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
| 245 | GTK_LIBS = @GTK_LIBS@ | ||
| 246 | INSTALL = @INSTALL@ | ||
| 247 | INSTALL_DATA = @INSTALL_DATA@ | ||
| 248 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
| 249 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
| 250 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
| 251 | INSTOBJEXT = @INSTOBJEXT@ | ||
| 252 | INTLLIBS = @INTLLIBS@ | ||
| 253 | LD = @LD@ | ||
| 254 | LDAP_LIBS = @LDAP_LIBS@ | ||
| 255 | LDFLAGS = @LDFLAGS@ | ||
| 256 | LEX = @LEX@ | ||
| 257 | LEXLIB = @LEXLIB@ | ||
| 258 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
| 259 | LIBICONV = @LIBICONV@ | ||
| 260 | LIBOBJS = @LIBOBJS@ | ||
| 261 | LIBS = @LIBS@ | ||
| 262 | LIBSYLPH_CFLAGS = @LIBSYLPH_CFLAGS@ | ||
| 263 | LIBSYLPH_LIBS = @LIBSYLPH_LIBS@ | ||
| 264 | LIBTOOL = @LIBTOOL@ | ||
| 265 | LIPO = @LIPO@ | ||
| 266 | LN_S = @LN_S@ | ||
| 267 | LTLIBICONV = @LTLIBICONV@ | ||
| 268 | LTLIBOBJS = @LTLIBOBJS@ | ||
| 269 | LT_AGE = @LT_AGE@ | ||
| 270 | LT_CURRENT = @LT_CURRENT@ | ||
| 271 | LT_RELEASE = @LT_RELEASE@ | ||
| 272 | LT_REVISION = @LT_REVISION@ | ||
| 273 | MAINT = @MAINT@ | ||
| 274 | MAJOR_VERSION = @MAJOR_VERSION@ | ||
| 275 | MAKEINFO = @MAKEINFO@ | ||
| 276 | MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
| 277 | MICRO_VERSION = @MICRO_VERSION@ | ||
| 278 | MINOR_VERSION = @MINOR_VERSION@ | ||
| 279 | MKDIR_P = @MKDIR_P@ | ||
| 280 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
| 281 | MSGFMT = @MSGFMT@ | ||
| 282 | MSGFMT_OPTS = @MSGFMT_OPTS@ | ||
| 283 | NM = @NM@ | ||
| 284 | NMEDIT = @NMEDIT@ | ||
| 285 | OBJDUMP = @OBJDUMP@ | ||
| 286 | OBJEXT = @OBJEXT@ | ||
| 287 | OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ | ||
| 288 | OPENSSL_LIBS = @OPENSSL_LIBS@ | ||
| 289 | OTOOL = @OTOOL@ | ||
| 290 | OTOOL64 = @OTOOL64@ | ||
| 291 | PACKAGE = @PACKAGE@ | ||
| 292 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
| 293 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
| 294 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
| 295 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
| 296 | PACKAGE_URL = @PACKAGE_URL@ | ||
| 297 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
| 298 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
| 299 | PKG_CONFIG = @PKG_CONFIG@ | ||
| 300 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
| 301 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
| 302 | POFILES = @POFILES@ | ||
| 303 | POSUB = @POSUB@ | ||
| 304 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
| 305 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
| 306 | RANLIB = @RANLIB@ | ||
| 307 | SED = @SED@ | ||
| 308 | SET_MAKE = @SET_MAKE@ | ||
| 309 | SHELL = @SHELL@ | ||
| 310 | STRIP = @STRIP@ | ||
| 311 | SYLPHEED_LIBS = @SYLPHEED_LIBS@ | ||
| 312 | USE_NLS = @USE_NLS@ | ||
| 313 | VERSION = @VERSION@ | ||
| 314 | WINDRES = @WINDRES@ | ||
| 315 | XGETTEXT = @XGETTEXT@ | ||
| 316 | YACC = @YACC@ | ||
| 317 | YFLAGS = @YFLAGS@ | ||
| 318 | abs_builddir = @abs_builddir@ | ||
| 319 | abs_srcdir = @abs_srcdir@ | ||
| 320 | abs_top_builddir = @abs_top_builddir@ | ||
| 321 | abs_top_srcdir = @abs_top_srcdir@ | ||
| 322 | ac_ct_AR = @ac_ct_AR@ | ||
| 323 | ac_ct_CC = @ac_ct_CC@ | ||
| 324 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
| 325 | am__include = @am__include@ | ||
| 326 | am__leading_dot = @am__leading_dot@ | ||
| 327 | am__quote = @am__quote@ | ||
| 328 | am__tar = @am__tar@ | ||
| 329 | am__untar = @am__untar@ | ||
| 330 | bindir = @bindir@ | ||
| 331 | build = @build@ | ||
| 332 | build_alias = @build_alias@ | ||
| 333 | build_cpu = @build_cpu@ | ||
| 334 | build_os = @build_os@ | ||
| 335 | build_vendor = @build_vendor@ | ||
| 336 | builddir = @builddir@ | ||
| 337 | datadir = @datadir@ | ||
| 338 | datarootdir = @datarootdir@ | ||
| 339 | docdir = @docdir@ | ||
| 340 | dvidir = @dvidir@ | ||
| 341 | exec_prefix = @exec_prefix@ | ||
| 342 | faqdir = @faqdir@ | ||
| 343 | host = @host@ | ||
| 344 | host_alias = @host_alias@ | ||
| 345 | host_cpu = @host_cpu@ | ||
| 346 | host_os = @host_os@ | ||
| 347 | host_vendor = @host_vendor@ | ||
| 348 | htmldir = @htmldir@ | ||
| 349 | includedir = @includedir@ | ||
| 350 | infodir = @infodir@ | ||
| 351 | install_sh = @install_sh@ | ||
| 352 | libdir = $(plugindir) | ||
| 353 | libexecdir = @libexecdir@ | ||
| 354 | localedir = @localedir@ | ||
| 355 | localstatedir = @localstatedir@ | ||
| 356 | mandir = @mandir@ | ||
| 357 | manualdir = @manualdir@ | ||
| 358 | mkdir_p = @mkdir_p@ | ||
| 359 | oldincludedir = @oldincludedir@ | ||
| 360 | pdfdir = @pdfdir@ | ||
| 361 | plugindir = @plugindir@ | ||
| 362 | prefix = @prefix@ | ||
| 363 | program_transform_name = @program_transform_name@ | ||
| 364 | psdir = @psdir@ | ||
| 365 | sbindir = @sbindir@ | ||
| 366 | sharedstatedir = @sharedstatedir@ | ||
| 367 | srcdir = @srcdir@ | ||
| 368 | sysconfdir = @sysconfdir@ | ||
| 369 | target = @target@ | ||
| 370 | target_alias = @target_alias@ | ||
| 371 | target_cpu = @target_cpu@ | ||
| 372 | target_os = @target_os@ | ||
| 373 | target_vendor = @target_vendor@ | ||
| 374 | themedir = @themedir@ | ||
| 375 | top_build_prefix = @top_build_prefix@ | ||
| 376 | top_builddir = @top_builddir@ | ||
| 377 | top_srcdir = @top_srcdir@ | ||
| 378 | lib_LTLIBRARIES = attachment_tool.la | ||
| 379 | attachment_tool_la_SOURCES = attachment_tool.c | ||
| 380 | attachment_tool_la_LDFLAGS = -module -no-undefined -avoid-version | ||
| 381 | INCLUDES = \ | ||
| 382 | -I$(top_srcdir) \ | ||
| 383 | -I$(top_srcdir)/libsylph \ | ||
| 384 | -I$(top_srcdir)/src \ | ||
| 385 | $(GTK_CFLAGS) | ||
| 386 | |||
| 387 | attachment_tool_la_LIBADD = \ | ||
| 388 | $(GTK_LIBS) \ | ||
| 389 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 390 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 391 | |||
| 392 | all: all-am | ||
| 393 | |||
| 394 | .SUFFIXES: | ||
| 395 | .SUFFIXES: .c .lo .o .obj | ||
| 396 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | ||
| 397 | @for dep in $?; do \ | ||
| 398 | case '$(am__configure_deps)' in \ | ||
| 399 | *$$dep*) \ | ||
| 400 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
| 401 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
| 402 | exit 1;; \ | ||
| 403 | esac; \ | ||
| 404 | done; \ | ||
| 405 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign plugin/attachment_tool/Makefile'; \ | ||
| 406 | $(am__cd) $(top_srcdir) && \ | ||
| 407 | $(AUTOMAKE) --foreign plugin/attachment_tool/Makefile | ||
| 408 | .PRECIOUS: Makefile | ||
| 409 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
| 410 | @case '$?' in \ | ||
| 411 | *config.status*) \ | ||
| 412 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
| 413 | *) \ | ||
| 414 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
| 415 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
| 416 | esac; | ||
| 417 | |||
| 418 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
| 419 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 420 | |||
| 421 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | ||
| 422 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 423 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | ||
| 424 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 425 | $(am__aclocal_m4_deps): | ||
| 426 | |||
| 427 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) | ||
| 428 | @$(NORMAL_INSTALL) | ||
| 429 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
| 430 | list2=; for p in $$list; do \ | ||
| 431 | if test -f $$p; then \ | ||
| 432 | list2="$$list2 $$p"; \ | ||
| 433 | else :; fi; \ | ||
| 434 | done; \ | ||
| 435 | test -z "$$list2" || { \ | ||
| 436 | echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ | ||
| 437 | $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ | ||
| 438 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ | ||
| 439 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ | ||
| 440 | } | ||
| 441 | |||
| 442 | uninstall-libLTLIBRARIES: | ||
| 443 | @$(NORMAL_UNINSTALL) | ||
| 444 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
| 445 | for p in $$list; do \ | ||
| 446 | $(am__strip_dir) \ | ||
| 447 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ | ||
| 448 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ | ||
| 449 | done | ||
| 450 | |||
| 451 | clean-libLTLIBRARIES: | ||
| 452 | -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) | ||
| 453 | @list='$(lib_LTLIBRARIES)'; \ | ||
| 454 | locs=`for p in $$list; do echo $$p; done | \ | ||
| 455 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | ||
| 456 | sort -u`; \ | ||
| 457 | test -z "$$locs" || { \ | ||
| 458 | echo rm -f $${locs}; \ | ||
| 459 | rm -f $${locs}; \ | ||
| 460 | } | ||
| 461 | |||
| 462 | attachment_tool.la: $(attachment_tool_la_OBJECTS) $(attachment_tool_la_DEPENDENCIES) $(EXTRA_attachment_tool_la_DEPENDENCIES) | ||
| 463 | $(AM_V_CCLD)$(attachment_tool_la_LINK) -rpath $(libdir) $(attachment_tool_la_OBJECTS) $(attachment_tool_la_LIBADD) $(LIBS) | ||
| 464 | |||
| 465 | mostlyclean-compile: | ||
| 466 | -rm -f *.$(OBJEXT) | ||
| 467 | |||
| 468 | distclean-compile: | ||
| 469 | -rm -f *.tab.c | ||
| 470 | |||
| 471 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/attachment_tool.Plo@am__quote@ | ||
| 472 | |||
| 473 | .c.o: | ||
| 474 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
| 475 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 476 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 477 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 478 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< | ||
| 479 | |||
| 480 | .c.obj: | ||
| 481 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
| 482 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 483 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 484 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 485 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | ||
| 486 | |||
| 487 | .c.lo: | ||
| 488 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
| 489 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
| 490 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
| 491 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 492 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< | ||
| 493 | |||
| 494 | mostlyclean-libtool: | ||
| 495 | -rm -f *.lo | ||
| 496 | |||
| 497 | clean-libtool: | ||
| 498 | -rm -rf .libs _libs | ||
| 499 | |||
| 500 | ID: $(am__tagged_files) | ||
| 501 | $(am__define_uniq_tagged_files); mkid -fID $$unique | ||
| 502 | tags: tags-am | ||
| 503 | TAGS: tags | ||
| 504 | |||
| 505 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 506 | set x; \ | ||
| 507 | here=`pwd`; \ | ||
| 508 | $(am__define_uniq_tagged_files); \ | ||
| 509 | shift; \ | ||
| 510 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
| 511 | test -n "$$unique" || unique=$$empty_fix; \ | ||
| 512 | if test $$# -gt 0; then \ | ||
| 513 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 514 | "$$@" $$unique; \ | ||
| 515 | else \ | ||
| 516 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 517 | $$unique; \ | ||
| 518 | fi; \ | ||
| 519 | fi | ||
| 520 | ctags: ctags-am | ||
| 521 | |||
| 522 | CTAGS: ctags | ||
| 523 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 524 | $(am__define_uniq_tagged_files); \ | ||
| 525 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
| 526 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
| 527 | $$unique | ||
| 528 | |||
| 529 | GTAGS: | ||
| 530 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
| 531 | && $(am__cd) $(top_srcdir) \ | ||
| 532 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
| 533 | cscopelist: cscopelist-am | ||
| 534 | |||
| 535 | cscopelist-am: $(am__tagged_files) | ||
| 536 | list='$(am__tagged_files)'; \ | ||
| 537 | case "$(srcdir)" in \ | ||
| 538 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | ||
| 539 | *) sdir=$(subdir)/$(srcdir) ;; \ | ||
| 540 | esac; \ | ||
| 541 | for i in $$list; do \ | ||
| 542 | if test -f "$$i"; then \ | ||
| 543 | echo "$(subdir)/$$i"; \ | ||
| 544 | else \ | ||
| 545 | echo "$$sdir/$$i"; \ | ||
| 546 | fi; \ | ||
| 547 | done >> $(top_builddir)/cscope.files | ||
| 548 | |||
| 549 | distclean-tags: | ||
| 550 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
| 551 | |||
| 552 | distdir: $(DISTFILES) | ||
| 553 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 554 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 555 | list='$(DISTFILES)'; \ | ||
| 556 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
| 557 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
| 558 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
| 559 | case $$dist_files in \ | ||
| 560 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
| 561 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
| 562 | sort -u` ;; \ | ||
| 563 | esac; \ | ||
| 564 | for file in $$dist_files; do \ | ||
| 565 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
| 566 | if test -d $$d/$$file; then \ | ||
| 567 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
| 568 | if test -d "$(distdir)/$$file"; then \ | ||
| 569 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 570 | fi; \ | ||
| 571 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
| 572 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 573 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 574 | fi; \ | ||
| 575 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 576 | else \ | ||
| 577 | test -f "$(distdir)/$$file" \ | ||
| 578 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
| 579 | || exit 1; \ | ||
| 580 | fi; \ | ||
| 581 | done | ||
| 582 | check-am: all-am | ||
| 583 | check: check-am | ||
| 584 | all-am: Makefile $(LTLIBRARIES) | ||
| 585 | installdirs: | ||
| 586 | for dir in "$(DESTDIR)$(libdir)"; do \ | ||
| 587 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
| 588 | done | ||
| 589 | install-exec: install-exec-am | ||
| 590 | install-data: install-data-am | ||
| 591 | uninstall: uninstall-am | ||
| 592 | |||
| 593 | install-am: all-am | ||
| 594 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
| 595 | |||
| 596 | installcheck: installcheck-am | ||
| 597 | install-strip: | ||
| 598 | if test -z '$(STRIP)'; then \ | ||
| 599 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 600 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 601 | install; \ | ||
| 602 | else \ | ||
| 603 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 604 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 605 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | ||
| 606 | fi | ||
| 607 | mostlyclean-generic: | ||
| 608 | |||
| 609 | clean-generic: | ||
| 610 | |||
| 611 | distclean-generic: | ||
| 612 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
| 613 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
| 614 | |||
| 615 | maintainer-clean-generic: | ||
| 616 | @echo "This command is intended for maintainers to use" | ||
| 617 | @echo "it deletes files that may require special tools to rebuild." | ||
| 618 | clean: clean-am | ||
| 619 | |||
| 620 | clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ | ||
| 621 | mostlyclean-am | ||
| 622 | |||
| 623 | distclean: distclean-am | ||
| 624 | -rm -rf ./$(DEPDIR) | ||
| 625 | -rm -f Makefile | ||
| 626 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
| 627 | distclean-tags | ||
| 628 | |||
| 629 | dvi: dvi-am | ||
| 630 | |||
| 631 | dvi-am: | ||
| 632 | |||
| 633 | html: html-am | ||
| 634 | |||
| 635 | html-am: | ||
| 636 | |||
| 637 | info: info-am | ||
| 638 | |||
| 639 | info-am: | ||
| 640 | |||
| 641 | install-data-am: | ||
| 642 | |||
| 643 | install-dvi: install-dvi-am | ||
| 644 | |||
| 645 | install-dvi-am: | ||
| 646 | |||
| 647 | install-exec-am: install-libLTLIBRARIES | ||
| 648 | |||
| 649 | install-html: install-html-am | ||
| 650 | |||
| 651 | install-html-am: | ||
| 652 | |||
| 653 | install-info: install-info-am | ||
| 654 | |||
| 655 | install-info-am: | ||
| 656 | |||
| 657 | install-man: | ||
| 658 | |||
| 659 | install-pdf: install-pdf-am | ||
| 660 | |||
| 661 | install-pdf-am: | ||
| 662 | |||
| 663 | install-ps: install-ps-am | ||
| 664 | |||
| 665 | install-ps-am: | ||
| 666 | |||
| 667 | installcheck-am: | ||
| 668 | |||
| 669 | maintainer-clean: maintainer-clean-am | ||
| 670 | -rm -rf ./$(DEPDIR) | ||
| 671 | -rm -f Makefile | ||
| 672 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
| 673 | |||
| 674 | mostlyclean: mostlyclean-am | ||
| 675 | |||
| 676 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
| 677 | mostlyclean-libtool | ||
| 678 | |||
| 679 | pdf: pdf-am | ||
| 680 | |||
| 681 | pdf-am: | ||
| 682 | |||
| 683 | ps: ps-am | ||
| 684 | |||
| 685 | ps-am: | ||
| 686 | |||
| 687 | uninstall-am: uninstall-libLTLIBRARIES | ||
| 688 | |||
| 689 | .MAKE: install-am install-strip | ||
| 690 | |||
| 691 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | ||
| 692 | clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ | ||
| 693 | ctags-am distclean distclean-compile distclean-generic \ | ||
| 694 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
| 695 | html-am info info-am install install-am install-data \ | ||
| 696 | install-data-am install-dvi install-dvi-am install-exec \ | ||
| 697 | install-exec-am install-html install-html-am install-info \ | ||
| 698 | install-info-am install-libLTLIBRARIES install-man install-pdf \ | ||
| 699 | install-pdf-am install-ps install-ps-am install-strip \ | ||
| 700 | installcheck installcheck-am installdirs maintainer-clean \ | ||
| 701 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
| 702 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
| 703 | tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES | ||
| 704 | |||
| 705 | |||
| 706 | install: | ||
| 707 | install-plugin: install-am | ||
| 708 | |||
| 709 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
| 710 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
| 711 | .NOEXPORT: | ||
diff --git a/plugin/attachment_tool/README b/plugin/attachment_tool/README new file mode 100644 index 0000000..159a2af --- /dev/null +++ b/plugin/attachment_tool/README | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | Attachment Tool Plug-in | ||
| 2 | ======================= | ||
| 3 | |||
| 4 | This is a plug-in for handling messages with attached files. | ||
| 5 | |||
| 6 | Currently, this plug-in can only remove data of attached files with file name. | ||
| 7 | MIME structure will be retained, and users will see 0 byte files. | ||
| 8 | |||
| 9 | This tool is available on local folders only. | ||
| 10 | |||
| 11 | Requirement | ||
| 12 | ----------- | ||
| 13 | |||
| 14 | This plug-in requires Sylpheed 3.1beta3 or later. | ||
| 15 | |||
| 16 | Install | ||
| 17 | ------- | ||
| 18 | |||
| 19 | This plugin will not be installed by 'make install'. | ||
| 20 | To install this test plugin, type 'make install-plugin'. | ||
| 21 | |||
| 22 | Usage | ||
| 23 | ----- | ||
| 24 | |||
| 25 | 1. Select target messages in the summary view. | ||
| 26 | 2. Select 'Tools - Remove attachments'. | ||
diff --git a/plugin/attachment_tool/attachment_tool.c b/plugin/attachment_tool/attachment_tool.c new file mode 100644 index 0000000..de299a2 --- /dev/null +++ b/plugin/attachment_tool/attachment_tool.c | |||
| @@ -0,0 +1,302 @@ | |||
| 1 | /* | ||
| 2 | * Attachment Tool Plug-in -- an attachment processing plug-in for Sylpheed | ||
| 3 | * Copyright (C) 2010 Hiroyuki Yamamoto | ||
| 4 | * | ||
| 5 | * This library is free software; you can redistribute it and/or | ||
| 6 | * modify it under the terms of the GNU Lesser General Public | ||
| 7 | * License as published by the Free Software Foundation; either | ||
| 8 | * version 2.1 of the License, or (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This library is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| 13 | * Lesser General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU Lesser General Public | ||
| 16 | * License along with this library; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include "defs.h" | ||
| 21 | |||
| 22 | #include <glib.h> | ||
| 23 | #include <gtk/gtk.h> | ||
| 24 | |||
| 25 | #include <stdio.h> | ||
| 26 | #include <sys/stat.h> | ||
| 27 | |||
| 28 | #include "sylmain.h" | ||
| 29 | #include "plugin.h" | ||
| 30 | #include "procmsg.h" | ||
| 31 | #include "procmime.h" | ||
| 32 | #include "utils.h" | ||
| 33 | |||
| 34 | #include <glib/gi18n-lib.h> | ||
| 35 | |||
| 36 | static SylPluginInfo info = { | ||
| 37 | "Attachment Tool Plug-in", | ||
| 38 | "0.1.0", | ||
| 39 | "Hiroyuki Yamamoto", | ||
| 40 | "Attachment processing plug-in for Sylpheed" | ||
| 41 | }; | ||
| 42 | |||
| 43 | static void remove_attachment_cb(void); | ||
| 44 | |||
| 45 | void plugin_load(void) | ||
| 46 | { | ||
| 47 | debug_print("initializing attachment_tool plug-in\n"); | ||
| 48 | |||
| 49 | syl_plugin_add_menuitem("/Tools", NULL, NULL, NULL); | ||
| 50 | syl_plugin_add_menuitem("/Tools", _("Remove attachments"), remove_attachment_cb, NULL); | ||
| 51 | |||
| 52 | debug_print("attachment_tool plug-in loading done.\n"); | ||
| 53 | } | ||
| 54 | |||
| 55 | void plugin_unload(void) | ||
| 56 | { | ||
| 57 | debug_print("attachment_tool plug-in unloaded.\n"); | ||
| 58 | } | ||
| 59 | |||
| 60 | SylPluginInfo *plugin_info(void) | ||
| 61 | { | ||
| 62 | return &info; | ||
| 63 | } | ||
| 64 | |||
| 65 | gint plugin_interface_version(void) | ||
| 66 | { | ||
| 67 | return SYL_PLUGIN_INTERFACE_VERSION; | ||
| 68 | } | ||
| 69 | |||
| 70 | static gboolean remove_attachment_rec(MimeInfo *partinfo, FILE *fp, FILE *outfp) | ||
| 71 | { | ||
| 72 | gchar buf[BUFFSIZE]; | ||
| 73 | gchar *boundary = NULL; | ||
| 74 | gint boundary_len = 0; | ||
| 75 | gboolean err = FALSE; | ||
| 76 | |||
| 77 | while (partinfo) { | ||
| 78 | gboolean is_attach_part = FALSE; | ||
| 79 | gint count; | ||
| 80 | |||
| 81 | debug_print("------------------------------------------------- begin %s\n", partinfo->content_type); | ||
| 82 | debug_print("fpos = %ld\n", partinfo->fpos); | ||
| 83 | debug_print("content_type = %s\n", partinfo->content_type); | ||
| 84 | |||
| 85 | if (partinfo->filename || partinfo->name) { | ||
| 86 | is_attach_part = TRUE; | ||
| 87 | debug_print("skip this body\n"); | ||
| 88 | } | ||
| 89 | |||
| 90 | if (fseek(fp, partinfo->fpos, SEEK_SET) < 0) { | ||
| 91 | perror("fseek"); | ||
| 92 | err = TRUE; | ||
| 93 | break; | ||
| 94 | } | ||
| 95 | /* write part headers */ | ||
| 96 | count = 0; | ||
| 97 | while (fgets(buf, sizeof(buf), fp) != NULL) { | ||
| 98 | count++; | ||
| 99 | fputs(buf, outfp); | ||
| 100 | if (buf[0] == '\r' || buf[0] == '\n') break; | ||
| 101 | } | ||
| 102 | debug_print("wrote header: %d lines\n", count); | ||
| 103 | |||
| 104 | /* write until first boundary */ | ||
| 105 | count = 0; | ||
| 106 | if (partinfo->children && partinfo->boundary) { | ||
| 107 | boundary = partinfo->boundary; | ||
| 108 | boundary_len = strlen(boundary); | ||
| 109 | debug_print("write until %s\n", boundary); | ||
| 110 | while (fgets(buf, sizeof(buf), fp) != NULL) { | ||
| 111 | count++; | ||
| 112 | if (IS_BOUNDARY(buf, boundary, boundary_len)) { | ||
| 113 | fputs(buf, outfp); | ||
| 114 | debug_print("start boundary: %s", buf); | ||
| 115 | break; | ||
| 116 | } else { | ||
| 117 | fputs(buf, outfp); | ||
| 118 | } | ||
| 119 | } | ||
| 120 | debug_print("wrote %d lines\n", count); | ||
| 121 | } | ||
| 122 | |||
| 123 | if (partinfo->sub) { | ||
| 124 | debug_print("enter rfc822 -----------------------------\n"); | ||
| 125 | err = !remove_attachment_rec(partinfo->sub, fp, outfp); | ||
| 126 | debug_print("leave rfc822 -----------------------------\n"); | ||
| 127 | if (err) | ||
| 128 | break; | ||
| 129 | } else if (partinfo->children) { | ||
| 130 | debug_print("enter child -----------------------------\n"); | ||
| 131 | err = !remove_attachment_rec | ||
| 132 | (partinfo->children, fp, outfp); | ||
| 133 | debug_print("leave child -----------------------------\n"); | ||
| 134 | if (err) | ||
| 135 | break; | ||
| 136 | } | ||
| 137 | |||
| 138 | if (partinfo->parent && partinfo->parent->boundary) { | ||
| 139 | boundary = partinfo->parent->boundary; | ||
| 140 | boundary_len = strlen(boundary); | ||
| 141 | debug_print("boundary = %s\n", boundary); | ||
| 142 | } else { | ||
| 143 | boundary = NULL; | ||
| 144 | boundary_len = 0; | ||
| 145 | } | ||
| 146 | |||
| 147 | /* write (or skip) part body and end boundary */ | ||
| 148 | if (boundary && !partinfo->main) { | ||
| 149 | count = 0; | ||
| 150 | debug_print("write until %s\n", boundary); | ||
| 151 | while (fgets(buf, sizeof(buf), fp) != NULL) { | ||
| 152 | if (IS_BOUNDARY(buf, boundary, boundary_len)) { | ||
| 153 | count++; | ||
| 154 | fputs(buf, outfp); | ||
| 155 | debug_print("end boundary: %s", buf); | ||
| 156 | break; | ||
| 157 | } else { | ||
| 158 | if (!is_attach_part) | ||
| 159 | count++; | ||
| 160 | if (!is_attach_part) | ||
| 161 | fputs(buf, outfp); | ||
| 162 | } | ||
| 163 | } | ||
| 164 | debug_print("wrote body: %d lines\n", count); | ||
| 165 | } | ||
| 166 | |||
| 167 | debug_print("------------------------------------------------- end %s\n", partinfo->content_type); | ||
| 168 | |||
| 169 | partinfo = partinfo->next; | ||
| 170 | } | ||
| 171 | |||
| 172 | return !err; | ||
| 173 | } | ||
| 174 | |||
| 175 | static gboolean has_attach_part(MimeInfo *mimeinfo) | ||
| 176 | { | ||
| 177 | for (; mimeinfo != NULL; mimeinfo = procmime_mimeinfo_next(mimeinfo)) { | ||
| 178 | if (mimeinfo->filename || mimeinfo->name) | ||
| 179 | return TRUE; | ||
| 180 | } | ||
| 181 | |||
| 182 | return FALSE; | ||
| 183 | } | ||
| 184 | |||
| 185 | static gboolean remove_attachment(MsgInfo *msginfo) | ||
| 186 | { | ||
| 187 | MimeInfo *mimeinfo; | ||
| 188 | FILE *fp, *outfp; | ||
| 189 | gchar *infile, *outfile; | ||
| 190 | gboolean err = FALSE; | ||
| 191 | |||
| 192 | mimeinfo = procmime_scan_message(msginfo); | ||
| 193 | g_return_val_if_fail(mimeinfo != NULL, FALSE); | ||
| 194 | |||
| 195 | if (!has_attach_part(mimeinfo)) { | ||
| 196 | debug_print("remove_attachment: this message doesn't have attachments\n"); | ||
| 197 | procmime_mimeinfo_free_all(mimeinfo); | ||
| 198 | return TRUE; | ||
| 199 | } | ||
| 200 | |||
| 201 | if ((fp = procmsg_open_message(msginfo)) == NULL) { | ||
| 202 | procmime_mimeinfo_free_all(mimeinfo); | ||
| 203 | return FALSE; | ||
| 204 | } | ||
| 205 | |||
| 206 | infile = procmsg_get_message_file(msginfo); | ||
| 207 | outfile = g_strconcat(infile, ".tmp", NULL); | ||
| 208 | debug_print("infile: %s\n", infile); | ||
| 209 | debug_print("outfile: %s\n", outfile); | ||
| 210 | |||
| 211 | if ((outfp = g_fopen(outfile, "wb")) == NULL) { | ||
| 212 | g_free(outfile); | ||
| 213 | g_free(infile); | ||
| 214 | fclose(fp); | ||
| 215 | procmime_mimeinfo_free_all(mimeinfo); | ||
| 216 | return FALSE; | ||
| 217 | } | ||
| 218 | |||
| 219 | err = !remove_attachment_rec(mimeinfo, fp, outfp); | ||
| 220 | |||
| 221 | if (fclose(outfp) == EOF) { | ||
| 222 | FILE_OP_ERROR(outfile, "fclose"); | ||
| 223 | err = TRUE; | ||
| 224 | } | ||
| 225 | |||
| 226 | fclose(fp); | ||
| 227 | |||
| 228 | if (!err) { | ||
| 229 | debug_print("overwriting original message file: %s\n", infile); | ||
| 230 | if (copy_file(outfile, infile, FALSE) == 0) { | ||
| 231 | GStatBuf s; | ||
| 232 | if (g_stat(infile, &s) == 0) { | ||
| 233 | msginfo->size = s.st_size; | ||
| 234 | msginfo->mtime = s.st_mtime; | ||
| 235 | } | ||
| 236 | if (msginfo->folder) | ||
| 237 | msginfo->folder->cache_dirty = TRUE; | ||
| 238 | } else | ||
| 239 | err = TRUE; | ||
| 240 | } | ||
| 241 | |||
| 242 | g_unlink(outfile); | ||
| 243 | g_free(outfile); | ||
| 244 | g_free(infile); | ||
| 245 | procmime_mimeinfo_free_all(mimeinfo); | ||
| 246 | |||
| 247 | return !err; | ||
| 248 | } | ||
| 249 | |||
| 250 | static void remove_attachment_cb(void) | ||
| 251 | { | ||
| 252 | FolderItem *item; | ||
| 253 | GSList *mlist, *cur; | ||
| 254 | gint val; | ||
| 255 | |||
| 256 | debug_print("remove_attachment_cb\n"); | ||
| 257 | |||
| 258 | if (syl_plugin_summary_is_locked()) | ||
| 259 | return; | ||
| 260 | |||
| 261 | item = syl_plugin_summary_get_current_folder(); | ||
| 262 | if (!item || !item->folder || FOLDER_TYPE(item->folder) != F_MH || | ||
| 263 | item->stype == F_VIRTUAL) { | ||
| 264 | syl_plugin_alertpanel_message(_("Error"), _("This tool is available on local folders only."), 3); | ||
| 265 | return; | ||
| 266 | } | ||
| 267 | |||
| 268 | mlist = syl_plugin_summary_get_selected_msg_list(); | ||
| 269 | if (!mlist) | ||
| 270 | return; | ||
| 271 | |||
| 272 | val = syl_plugin_alertpanel(_("Remove attachments"), | ||
| 273 | _("Do you really remove attached files from the selected messages?"), | ||
| 274 | GTK_STOCK_YES, GTK_STOCK_NO, NULL); | ||
| 275 | if (val != 0) { | ||
| 276 | g_slist_free(mlist); | ||
| 277 | return; | ||
| 278 | } | ||
| 279 | |||
| 280 | for (cur = mlist; cur != NULL; cur = cur->next) { | ||
| 281 | MsgInfo *msginfo = (MsgInfo *)cur->data; | ||
| 282 | |||
| 283 | if (!msginfo) | ||
| 284 | continue; | ||
| 285 | if (!MSG_IS_MIME(msginfo->flags)) { | ||
| 286 | debug_print("message %u is not multi-part. skipping.\n", msginfo->msgnum); | ||
| 287 | continue; | ||
| 288 | } | ||
| 289 | debug_print("Removing attachments of message: %u: %s\n", msginfo->msgnum, msginfo->subject ? msginfo->subject : "(No Subject)"); | ||
| 290 | |||
| 291 | if (!remove_attachment(msginfo)) { | ||
| 292 | g_warning("Cannot remove attachments from %u: %s\n", msginfo->msgnum, msginfo->subject ? msginfo->subject : "(No Subject)"); | ||
| 293 | break; | ||
| 294 | } | ||
| 295 | |||
| 296 | syl_plugin_summary_update_by_msgnum(msginfo->msgnum); | ||
| 297 | } | ||
| 298 | |||
| 299 | g_slist_free(mlist); | ||
| 300 | |||
| 301 | syl_plugin_summary_redisplay_msg(); | ||
| 302 | } | ||
diff --git a/plugin/test/Makefile.am b/plugin/test/Makefile.am new file mode 100644 index 0000000..dabf798 --- /dev/null +++ b/plugin/test/Makefile.am | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | libdir = $(plugindir) | ||
| 2 | |||
| 3 | lib_LTLIBRARIES = test.la | ||
| 4 | |||
| 5 | test_la_SOURCES = test.c test.h | ||
| 6 | test_la_LDFLAGS = -module -no-undefined -avoid-version | ||
| 7 | |||
| 8 | INCLUDES = \ | ||
| 9 | -I$(top_srcdir) \ | ||
| 10 | -I$(top_srcdir)/libsylph \ | ||
| 11 | -I$(top_srcdir)/src \ | ||
| 12 | $(GTK_CFLAGS) | ||
| 13 | |||
| 14 | test_la_LIBADD = \ | ||
| 15 | $(GTK_LIBS) \ | ||
| 16 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 17 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 18 | |||
| 19 | install: | ||
| 20 | install-plugin: install-am | ||
diff --git a/plugin/test/Makefile.in b/plugin/test/Makefile.in new file mode 100644 index 0000000..e29bffe --- /dev/null +++ b/plugin/test/Makefile.in | |||
| @@ -0,0 +1,710 @@ | |||
| 1 | # Makefile.in generated by automake 1.14.1 from Makefile.am. | ||
| 2 | # @configure_input@ | ||
| 3 | |||
| 4 | # Copyright (C) 1994-2013 Free Software Foundation, Inc. | ||
| 5 | |||
| 6 | # This Makefile.in is free software; the Free Software Foundation | ||
| 7 | # gives unlimited permission to copy and/or distribute it, | ||
| 8 | # with or without modifications, as long as this notice is preserved. | ||
| 9 | |||
| 10 | # This program is distributed in the hope that it will be useful, | ||
| 11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
| 12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
| 13 | # PARTICULAR PURPOSE. | ||
| 14 | |||
| 15 | @SET_MAKE@ | ||
| 16 | |||
| 17 | VPATH = @srcdir@ | ||
| 18 | am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' | ||
| 19 | am__make_running_with_option = \ | ||
| 20 | case $${target_option-} in \ | ||
| 21 | ?) ;; \ | ||
| 22 | *) echo "am__make_running_with_option: internal error: invalid" \ | ||
| 23 | "target option '$${target_option-}' specified" >&2; \ | ||
| 24 | exit 1;; \ | ||
| 25 | esac; \ | ||
| 26 | has_opt=no; \ | ||
| 27 | sane_makeflags=$$MAKEFLAGS; \ | ||
| 28 | if $(am__is_gnu_make); then \ | ||
| 29 | sane_makeflags=$$MFLAGS; \ | ||
| 30 | else \ | ||
| 31 | case $$MAKEFLAGS in \ | ||
| 32 | *\\[\ \ ]*) \ | ||
| 33 | bs=\\; \ | ||
| 34 | sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | ||
| 35 | | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ | ||
| 36 | esac; \ | ||
| 37 | fi; \ | ||
| 38 | skip_next=no; \ | ||
| 39 | strip_trailopt () \ | ||
| 40 | { \ | ||
| 41 | flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ | ||
| 42 | }; \ | ||
| 43 | for flg in $$sane_makeflags; do \ | ||
| 44 | test $$skip_next = yes && { skip_next=no; continue; }; \ | ||
| 45 | case $$flg in \ | ||
| 46 | *=*|--*) continue;; \ | ||
| 47 | -*I) strip_trailopt 'I'; skip_next=yes;; \ | ||
| 48 | -*I?*) strip_trailopt 'I';; \ | ||
| 49 | -*O) strip_trailopt 'O'; skip_next=yes;; \ | ||
| 50 | -*O?*) strip_trailopt 'O';; \ | ||
| 51 | -*l) strip_trailopt 'l'; skip_next=yes;; \ | ||
| 52 | -*l?*) strip_trailopt 'l';; \ | ||
| 53 | -[dEDm]) skip_next=yes;; \ | ||
| 54 | -[JT]) skip_next=yes;; \ | ||
| 55 | esac; \ | ||
| 56 | case $$flg in \ | ||
| 57 | *$$target_option*) has_opt=yes; break;; \ | ||
| 58 | esac; \ | ||
| 59 | done; \ | ||
| 60 | test $$has_opt = yes | ||
| 61 | am__make_dryrun = (target_option=n; $(am__make_running_with_option)) | ||
| 62 | am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) | ||
| 63 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
| 64 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
| 65 | pkglibdir = $(libdir)/@PACKAGE@ | ||
| 66 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
| 67 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
| 68 | install_sh_DATA = $(install_sh) -c -m 644 | ||
| 69 | install_sh_PROGRAM = $(install_sh) -c | ||
| 70 | install_sh_SCRIPT = $(install_sh) -c | ||
| 71 | INSTALL_HEADER = $(INSTALL_DATA) | ||
| 72 | transform = $(program_transform_name) | ||
| 73 | NORMAL_INSTALL = : | ||
| 74 | PRE_INSTALL = : | ||
| 75 | POST_INSTALL = : | ||
| 76 | NORMAL_UNINSTALL = : | ||
| 77 | PRE_UNINSTALL = : | ||
| 78 | POST_UNINSTALL = : | ||
| 79 | build_triplet = @build@ | ||
| 80 | host_triplet = @host@ | ||
| 81 | target_triplet = @target@ | ||
| 82 | subdir = plugin/test | ||
| 83 | DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ | ||
| 84 | $(top_srcdir)/mkinstalldirs $(top_srcdir)/depcomp README | ||
| 85 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
| 86 | am__aclocal_m4_deps = $(top_srcdir)/ac/aclocal-include.m4 \ | ||
| 87 | $(top_srcdir)/ac/gnupg-check-typedef.m4 \ | ||
| 88 | $(top_srcdir)/configure.ac | ||
| 89 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
| 90 | $(ACLOCAL_M4) | ||
| 91 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
| 92 | CONFIG_HEADER = $(top_builddir)/config.h | ||
| 93 | CONFIG_CLEAN_FILES = | ||
| 94 | CONFIG_CLEAN_VPATH_FILES = | ||
| 95 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
| 96 | am__vpath_adj = case $$p in \ | ||
| 97 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
| 98 | *) f=$$p;; \ | ||
| 99 | esac; | ||
| 100 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
| 101 | am__install_max = 40 | ||
| 102 | am__nobase_strip_setup = \ | ||
| 103 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
| 104 | am__nobase_strip = \ | ||
| 105 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
| 106 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
| 107 | for p in $$list; do echo "$$p $$p"; done | \ | ||
| 108 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
| 109 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
| 110 | if (++n[$$2] == $(am__install_max)) \ | ||
| 111 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
| 112 | END { for (dir in files) print dir, files[dir] }' | ||
| 113 | am__base_list = \ | ||
| 114 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
| 115 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
| 116 | am__uninstall_files_from_dir = { \ | ||
| 117 | test -z "$$files" \ | ||
| 118 | || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ | ||
| 119 | || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ | ||
| 120 | $(am__cd) "$$dir" && rm -f $$files; }; \ | ||
| 121 | } | ||
| 122 | am__installdirs = "$(DESTDIR)$(libdir)" | ||
| 123 | LTLIBRARIES = $(lib_LTLIBRARIES) | ||
| 124 | am__DEPENDENCIES_1 = | ||
| 125 | test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \ | ||
| 126 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 127 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 128 | am_test_la_OBJECTS = test.lo | ||
| 129 | test_la_OBJECTS = $(am_test_la_OBJECTS) | ||
| 130 | AM_V_lt = $(am__v_lt_@AM_V@) | ||
| 131 | am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) | ||
| 132 | am__v_lt_0 = --silent | ||
| 133 | am__v_lt_1 = | ||
| 134 | test_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 135 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
| 136 | $(test_la_LDFLAGS) $(LDFLAGS) -o $@ | ||
| 137 | AM_V_P = $(am__v_P_@AM_V@) | ||
| 138 | am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) | ||
| 139 | am__v_P_0 = false | ||
| 140 | am__v_P_1 = : | ||
| 141 | AM_V_GEN = $(am__v_GEN_@AM_V@) | ||
| 142 | am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) | ||
| 143 | am__v_GEN_0 = @echo " GEN " $@; | ||
| 144 | am__v_GEN_1 = | ||
| 145 | AM_V_at = $(am__v_at_@AM_V@) | ||
| 146 | am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) | ||
| 147 | am__v_at_0 = @ | ||
| 148 | am__v_at_1 = | ||
| 149 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
| 150 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
| 151 | am__depfiles_maybe = depfiles | ||
| 152 | am__mv = mv -f | ||
| 153 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
| 154 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
| 155 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 156 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
| 157 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
| 158 | $(AM_CFLAGS) $(CFLAGS) | ||
| 159 | AM_V_CC = $(am__v_CC_@AM_V@) | ||
| 160 | am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) | ||
| 161 | am__v_CC_0 = @echo " CC " $@; | ||
| 162 | am__v_CC_1 = | ||
| 163 | CCLD = $(CC) | ||
| 164 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
| 165 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
| 166 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
| 167 | AM_V_CCLD = $(am__v_CCLD_@AM_V@) | ||
| 168 | am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) | ||
| 169 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
| 170 | am__v_CCLD_1 = | ||
| 171 | SOURCES = $(test_la_SOURCES) | ||
| 172 | DIST_SOURCES = $(test_la_SOURCES) | ||
| 173 | am__can_run_installinfo = \ | ||
| 174 | case $$AM_UPDATE_INFO_DIR in \ | ||
| 175 | n|no|NO) false;; \ | ||
| 176 | *) (install-info --version) >/dev/null 2>&1;; \ | ||
| 177 | esac | ||
| 178 | am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) | ||
| 179 | # Read a list of newline-separated strings from the standard input, | ||
| 180 | # and print each of them once, without duplicates. Input order is | ||
| 181 | # *not* preserved. | ||
| 182 | am__uniquify_input = $(AWK) '\ | ||
| 183 | BEGIN { nonempty = 0; } \ | ||
| 184 | { items[$$0] = 1; nonempty = 1; } \ | ||
| 185 | END { if (nonempty) { for (i in items) print i; }; } \ | ||
| 186 | ' | ||
| 187 | # Make sure the list of sources is unique. This is necessary because, | ||
| 188 | # e.g., the same source file might be shared among _SOURCES variables | ||
| 189 | # for different programs/libraries. | ||
| 190 | am__define_uniq_tagged_files = \ | ||
| 191 | list='$(am__tagged_files)'; \ | ||
| 192 | unique=`for i in $$list; do \ | ||
| 193 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
| 194 | done | $(am__uniquify_input)` | ||
| 195 | ETAGS = etags | ||
| 196 | CTAGS = ctags | ||
| 197 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
| 198 | ACLOCAL = @ACLOCAL@ | ||
| 199 | ALLOCA = @ALLOCA@ | ||
| 200 | AMTAR = @AMTAR@ | ||
| 201 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
| 202 | AR = @AR@ | ||
| 203 | AUTOCONF = @AUTOCONF@ | ||
| 204 | AUTOHEADER = @AUTOHEADER@ | ||
| 205 | AUTOMAKE = @AUTOMAKE@ | ||
| 206 | AWK = @AWK@ | ||
| 207 | BUILD_REVISION = @BUILD_REVISION@ | ||
| 208 | CATALOGS = @CATALOGS@ | ||
| 209 | CATOBJEXT = @CATOBJEXT@ | ||
| 210 | CC = @CC@ | ||
| 211 | CCDEPMODE = @CCDEPMODE@ | ||
| 212 | CFLAGS = @CFLAGS@ | ||
| 213 | CPP = @CPP@ | ||
| 214 | CPPFLAGS = @CPPFLAGS@ | ||
| 215 | CYGPATH_W = @CYGPATH_W@ | ||
| 216 | DATADIRNAME = @DATADIRNAME@ | ||
| 217 | DEFS = @DEFS@ | ||
| 218 | DEPDIR = @DEPDIR@ | ||
| 219 | DEVEL_VERSION = @DEVEL_VERSION@ | ||
| 220 | DLLTOOL = @DLLTOOL@ | ||
| 221 | DSYMUTIL = @DSYMUTIL@ | ||
| 222 | DUMPBIN = @DUMPBIN@ | ||
| 223 | ECHO_C = @ECHO_C@ | ||
| 224 | ECHO_N = @ECHO_N@ | ||
| 225 | ECHO_T = @ECHO_T@ | ||
| 226 | EGREP = @EGREP@ | ||
| 227 | EXEEXT = @EXEEXT@ | ||
| 228 | EXTRA_VERSION = @EXTRA_VERSION@ | ||
| 229 | FGREP = @FGREP@ | ||
| 230 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ | ||
| 231 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
| 232 | GLIB_COMPILE_RESOURCES = @GLIB_COMPILE_RESOURCES@ | ||
| 233 | GLIB_GENMARSHAL = @GLIB_GENMARSHAL@ | ||
| 234 | GLIB_LIBS = @GLIB_LIBS@ | ||
| 235 | GLIB_MKENUMS = @GLIB_MKENUMS@ | ||
| 236 | GMOFILES = @GMOFILES@ | ||
| 237 | GMSGFMT = @GMSGFMT@ | ||
| 238 | GOBJECT_QUERY = @GOBJECT_QUERY@ | ||
| 239 | GPGME_CFLAGS = @GPGME_CFLAGS@ | ||
| 240 | GPGME_CONFIG = @GPGME_CONFIG@ | ||
| 241 | GPGME_LIBS = @GPGME_LIBS@ | ||
| 242 | GREP = @GREP@ | ||
| 243 | GTK_CFLAGS = @GTK_CFLAGS@ | ||
| 244 | GTK_LIBS = @GTK_LIBS@ | ||
| 245 | INSTALL = @INSTALL@ | ||
| 246 | INSTALL_DATA = @INSTALL_DATA@ | ||
| 247 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
| 248 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
| 249 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
| 250 | INSTOBJEXT = @INSTOBJEXT@ | ||
| 251 | INTLLIBS = @INTLLIBS@ | ||
| 252 | LD = @LD@ | ||
| 253 | LDAP_LIBS = @LDAP_LIBS@ | ||
| 254 | LDFLAGS = @LDFLAGS@ | ||
| 255 | LEX = @LEX@ | ||
| 256 | LEXLIB = @LEXLIB@ | ||
| 257 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ | ||
| 258 | LIBICONV = @LIBICONV@ | ||
| 259 | LIBOBJS = @LIBOBJS@ | ||
| 260 | LIBS = @LIBS@ | ||
| 261 | LIBSYLPH_CFLAGS = @LIBSYLPH_CFLAGS@ | ||
| 262 | LIBSYLPH_LIBS = @LIBSYLPH_LIBS@ | ||
| 263 | LIBTOOL = @LIBTOOL@ | ||
| 264 | LIPO = @LIPO@ | ||
| 265 | LN_S = @LN_S@ | ||
| 266 | LTLIBICONV = @LTLIBICONV@ | ||
| 267 | LTLIBOBJS = @LTLIBOBJS@ | ||
| 268 | LT_AGE = @LT_AGE@ | ||
| 269 | LT_CURRENT = @LT_CURRENT@ | ||
| 270 | LT_RELEASE = @LT_RELEASE@ | ||
| 271 | LT_REVISION = @LT_REVISION@ | ||
| 272 | MAINT = @MAINT@ | ||
| 273 | MAJOR_VERSION = @MAJOR_VERSION@ | ||
| 274 | MAKEINFO = @MAKEINFO@ | ||
| 275 | MANIFEST_TOOL = @MANIFEST_TOOL@ | ||
| 276 | MICRO_VERSION = @MICRO_VERSION@ | ||
| 277 | MINOR_VERSION = @MINOR_VERSION@ | ||
| 278 | MKDIR_P = @MKDIR_P@ | ||
| 279 | MKINSTALLDIRS = @MKINSTALLDIRS@ | ||
| 280 | MSGFMT = @MSGFMT@ | ||
| 281 | MSGFMT_OPTS = @MSGFMT_OPTS@ | ||
| 282 | NM = @NM@ | ||
| 283 | NMEDIT = @NMEDIT@ | ||
| 284 | OBJDUMP = @OBJDUMP@ | ||
| 285 | OBJEXT = @OBJEXT@ | ||
| 286 | OPENSSL_CFLAGS = @OPENSSL_CFLAGS@ | ||
| 287 | OPENSSL_LIBS = @OPENSSL_LIBS@ | ||
| 288 | OTOOL = @OTOOL@ | ||
| 289 | OTOOL64 = @OTOOL64@ | ||
| 290 | PACKAGE = @PACKAGE@ | ||
| 291 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
| 292 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
| 293 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
| 294 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
| 295 | PACKAGE_URL = @PACKAGE_URL@ | ||
| 296 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
| 297 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
| 298 | PKG_CONFIG = @PKG_CONFIG@ | ||
| 299 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
| 300 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
| 301 | POFILES = @POFILES@ | ||
| 302 | POSUB = @POSUB@ | ||
| 303 | PO_IN_DATADIR_FALSE = @PO_IN_DATADIR_FALSE@ | ||
| 304 | PO_IN_DATADIR_TRUE = @PO_IN_DATADIR_TRUE@ | ||
| 305 | RANLIB = @RANLIB@ | ||
| 306 | SED = @SED@ | ||
| 307 | SET_MAKE = @SET_MAKE@ | ||
| 308 | SHELL = @SHELL@ | ||
| 309 | STRIP = @STRIP@ | ||
| 310 | SYLPHEED_LIBS = @SYLPHEED_LIBS@ | ||
| 311 | USE_NLS = @USE_NLS@ | ||
| 312 | VERSION = @VERSION@ | ||
| 313 | WINDRES = @WINDRES@ | ||
| 314 | XGETTEXT = @XGETTEXT@ | ||
| 315 | YACC = @YACC@ | ||
| 316 | YFLAGS = @YFLAGS@ | ||
| 317 | abs_builddir = @abs_builddir@ | ||
| 318 | abs_srcdir = @abs_srcdir@ | ||
| 319 | abs_top_builddir = @abs_top_builddir@ | ||
| 320 | abs_top_srcdir = @abs_top_srcdir@ | ||
| 321 | ac_ct_AR = @ac_ct_AR@ | ||
| 322 | ac_ct_CC = @ac_ct_CC@ | ||
| 323 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
| 324 | am__include = @am__include@ | ||
| 325 | am__leading_dot = @am__leading_dot@ | ||
| 326 | am__quote = @am__quote@ | ||
| 327 | am__tar = @am__tar@ | ||
| 328 | am__untar = @am__untar@ | ||
| 329 | bindir = @bindir@ | ||
| 330 | build = @build@ | ||
| 331 | build_alias = @build_alias@ | ||
| 332 | build_cpu = @build_cpu@ | ||
| 333 | build_os = @build_os@ | ||
| 334 | build_vendor = @build_vendor@ | ||
| 335 | builddir = @builddir@ | ||
| 336 | datadir = @datadir@ | ||
| 337 | datarootdir = @datarootdir@ | ||
| 338 | docdir = @docdir@ | ||
| 339 | dvidir = @dvidir@ | ||
| 340 | exec_prefix = @exec_prefix@ | ||
| 341 | faqdir = @faqdir@ | ||
| 342 | host = @host@ | ||
| 343 | host_alias = @host_alias@ | ||
| 344 | host_cpu = @host_cpu@ | ||
| 345 | host_os = @host_os@ | ||
| 346 | host_vendor = @host_vendor@ | ||
| 347 | htmldir = @htmldir@ | ||
| 348 | includedir = @includedir@ | ||
| 349 | infodir = @infodir@ | ||
| 350 | install_sh = @install_sh@ | ||
| 351 | libdir = $(plugindir) | ||
| 352 | libexecdir = @libexecdir@ | ||
| 353 | localedir = @localedir@ | ||
| 354 | localstatedir = @localstatedir@ | ||
| 355 | mandir = @mandir@ | ||
| 356 | manualdir = @manualdir@ | ||
| 357 | mkdir_p = @mkdir_p@ | ||
| 358 | oldincludedir = @oldincludedir@ | ||
| 359 | pdfdir = @pdfdir@ | ||
| 360 | plugindir = @plugindir@ | ||
| 361 | prefix = @prefix@ | ||
| 362 | program_transform_name = @program_transform_name@ | ||
| 363 | psdir = @psdir@ | ||
| 364 | sbindir = @sbindir@ | ||
| 365 | sharedstatedir = @sharedstatedir@ | ||
| 366 | srcdir = @srcdir@ | ||
| 367 | sysconfdir = @sysconfdir@ | ||
| 368 | target = @target@ | ||
| 369 | target_alias = @target_alias@ | ||
| 370 | target_cpu = @target_cpu@ | ||
| 371 | target_os = @target_os@ | ||
| 372 | target_vendor = @target_vendor@ | ||
| 373 | themedir = @themedir@ | ||
| 374 | top_build_prefix = @top_build_prefix@ | ||
| 375 | top_builddir = @top_builddir@ | ||
| 376 | top_srcdir = @top_srcdir@ | ||
| 377 | lib_LTLIBRARIES = test.la | ||
| 378 | test_la_SOURCES = test.c test.h | ||
| 379 | test_la_LDFLAGS = -module -no-undefined -avoid-version | ||
| 380 | INCLUDES = \ | ||
| 381 | -I$(top_srcdir) \ | ||
| 382 | -I$(top_srcdir)/libsylph \ | ||
| 383 | -I$(top_srcdir)/src \ | ||
| 384 | $(GTK_CFLAGS) | ||
| 385 | |||
| 386 | test_la_LIBADD = \ | ||
| 387 | $(GTK_LIBS) \ | ||
| 388 | $(top_builddir)/src/libsylpheed-plugin-0.la \ | ||
| 389 | $(top_builddir)/libsylph/libsylph-0.la | ||
| 390 | |||
| 391 | all: all-am | ||
| 392 | |||
| 393 | .SUFFIXES: | ||
| 394 | .SUFFIXES: .c .lo .o .obj | ||
| 395 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) | ||
| 396 | @for dep in $?; do \ | ||
| 397 | case '$(am__configure_deps)' in \ | ||
| 398 | *$$dep*) \ | ||
| 399 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
| 400 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
| 401 | exit 1;; \ | ||
| 402 | esac; \ | ||
| 403 | done; \ | ||
| 404 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign plugin/test/Makefile'; \ | ||
| 405 | $(am__cd) $(top_srcdir) && \ | ||
| 406 | $(AUTOMAKE) --foreign plugin/test/Makefile | ||
| 407 | .PRECIOUS: Makefile | ||
| 408 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
| 409 | @case '$?' in \ | ||
| 410 | *config.status*) \ | ||
| 411 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
| 412 | *) \ | ||
| 413 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
| 414 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
| 415 | esac; | ||
| 416 | |||
| 417 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
| 418 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 419 | |||
| 420 | $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) | ||
| 421 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 422 | $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) | ||
| 423 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
| 424 | $(am__aclocal_m4_deps): | ||
| 425 | |||
| 426 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) | ||
| 427 | @$(NORMAL_INSTALL) | ||
| 428 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
| 429 | list2=; for p in $$list; do \ | ||
| 430 | if test -f $$p; then \ | ||
| 431 | list2="$$list2 $$p"; \ | ||
| 432 | else :; fi; \ | ||
| 433 | done; \ | ||
| 434 | test -z "$$list2" || { \ | ||
| 435 | echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ | ||
| 436 | $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ | ||
| 437 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ | ||
| 438 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ | ||
| 439 | } | ||
| 440 | |||
| 441 | uninstall-libLTLIBRARIES: | ||
| 442 | @$(NORMAL_UNINSTALL) | ||
| 443 | @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ | ||
| 444 | for p in $$list; do \ | ||
| 445 | $(am__strip_dir) \ | ||
| 446 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ | ||
| 447 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ | ||
| 448 | done | ||
| 449 | |||
| 450 | clean-libLTLIBRARIES: | ||
| 451 | -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) | ||
| 452 | @list='$(lib_LTLIBRARIES)'; \ | ||
| 453 | locs=`for p in $$list; do echo $$p; done | \ | ||
| 454 | sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ | ||
| 455 | sort -u`; \ | ||
| 456 | test -z "$$locs" || { \ | ||
| 457 | echo rm -f $${locs}; \ | ||
| 458 | rm -f $${locs}; \ | ||
| 459 | } | ||
| 460 | |||
| 461 | test.la: $(test_la_OBJECTS) $(test_la_DEPENDENCIES) $(EXTRA_test_la_DEPENDENCIES) | ||
| 462 | $(AM_V_CCLD)$(test_la_LINK) -rpath $(libdir) $(test_la_OBJECTS) $(test_la_LIBADD) $(LIBS) | ||
| 463 | |||
| 464 | mostlyclean-compile: | ||
| 465 | -rm -f *.$(OBJEXT) | ||
| 466 | |||
| 467 | distclean-compile: | ||
| 468 | -rm -f *.tab.c | ||
| 469 | |||
| 470 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test.Plo@am__quote@ | ||
| 471 | |||
| 472 | .c.o: | ||
| 473 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
| 474 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 475 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 476 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 477 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $< | ||
| 478 | |||
| 479 | .c.obj: | ||
| 480 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
| 481 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
| 482 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
| 483 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 484 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | ||
| 485 | |||
| 486 | .c.lo: | ||
| 487 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
| 488 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
| 489 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
| 490 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
| 491 | @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< | ||
| 492 | |||
| 493 | mostlyclean-libtool: | ||
| 494 | -rm -f *.lo | ||
| 495 | |||
| 496 | clean-libtool: | ||
| 497 | -rm -rf .libs _libs | ||
| 498 | |||
| 499 | ID: $(am__tagged_files) | ||
| 500 | $(am__define_uniq_tagged_files); mkid -fID $$unique | ||
| 501 | tags: tags-am | ||
| 502 | TAGS: tags | ||
| 503 | |||
| 504 | tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 505 | set x; \ | ||
| 506 | here=`pwd`; \ | ||
| 507 | $(am__define_uniq_tagged_files); \ | ||
| 508 | shift; \ | ||
| 509 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
| 510 | test -n "$$unique" || unique=$$empty_fix; \ | ||
| 511 | if test $$# -gt 0; then \ | ||
| 512 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 513 | "$$@" $$unique; \ | ||
| 514 | else \ | ||
| 515 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
| 516 | $$unique; \ | ||
| 517 | fi; \ | ||
| 518 | fi | ||
| 519 | ctags: ctags-am | ||
| 520 | |||
| 521 | CTAGS: ctags | ||
| 522 | ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) | ||
| 523 | $(am__define_uniq_tagged_files); \ | ||
| 524 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
| 525 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
| 526 | $$unique | ||
| 527 | |||
| 528 | GTAGS: | ||
| 529 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
| 530 | && $(am__cd) $(top_srcdir) \ | ||
| 531 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
| 532 | cscopelist: cscopelist-am | ||
| 533 | |||
| 534 | cscopelist-am: $(am__tagged_files) | ||
| 535 | list='$(am__tagged_files)'; \ | ||
| 536 | case "$(srcdir)" in \ | ||
| 537 | [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ | ||
| 538 | *) sdir=$(subdir)/$(srcdir) ;; \ | ||
| 539 | esac; \ | ||
| 540 | for i in $$list; do \ | ||
| 541 | if test -f "$$i"; then \ | ||
| 542 | echo "$(subdir)/$$i"; \ | ||
| 543 | else \ | ||
| 544 | echo "$$sdir/$$i"; \ | ||
| 545 | fi; \ | ||
| 546 | done >> $(top_builddir)/cscope.files | ||
| 547 | |||
| 548 | distclean-tags: | ||
| 549 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
| 550 | |||
| 551 | distdir: $(DISTFILES) | ||
| 552 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 553 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
| 554 | list='$(DISTFILES)'; \ | ||
| 555 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
| 556 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
| 557 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
| 558 | case $$dist_files in \ | ||
| 559 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
| 560 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
| 561 | sort -u` ;; \ | ||
| 562 | esac; \ | ||
| 563 | for file in $$dist_files; do \ | ||
| 564 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
| 565 | if test -d $$d/$$file; then \ | ||
| 566 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
| 567 | if test -d "$(distdir)/$$file"; then \ | ||
| 568 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 569 | fi; \ | ||
| 570 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
| 571 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 572 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
| 573 | fi; \ | ||
| 574 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
| 575 | else \ | ||
| 576 | test -f "$(distdir)/$$file" \ | ||
| 577 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
| 578 | || exit 1; \ | ||
| 579 | fi; \ | ||
| 580 | done | ||
| 581 | check-am: all-am | ||
| 582 | check: check-am | ||
| 583 | all-am: Makefile $(LTLIBRARIES) | ||
| 584 | installdirs: | ||
| 585 | for dir in "$(DESTDIR)$(libdir)"; do \ | ||
| 586 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
| 587 | done | ||
| 588 | install-exec: install-exec-am | ||
| 589 | install-data: install-data-am | ||
| 590 | uninstall: uninstall-am | ||
| 591 | |||
| 592 | install-am: all-am | ||
| 593 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
| 594 | |||
| 595 | installcheck: installcheck-am | ||
| 596 | install-strip: | ||
| 597 | if test -z '$(STRIP)'; then \ | ||
| 598 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 599 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 600 | install; \ | ||
| 601 | else \ | ||
| 602 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
| 603 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
| 604 | "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ | ||
| 605 | fi | ||
| 606 | mostlyclean-generic: | ||
| 607 | |||
| 608 | clean-generic: | ||
| 609 | |||
| 610 | distclean-generic: | ||
| 611 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
| 612 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
| 613 | |||
| 614 | maintainer-clean-generic: | ||
| 615 | @echo "This command is intended for maintainers to use" | ||
| 616 | @echo "it deletes files that may require special tools to rebuild." | ||
| 617 | clean: clean-am | ||
| 618 | |||
| 619 | clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ | ||
| 620 | mostlyclean-am | ||
| 621 | |||
| 622 | distclean: distclean-am | ||
| 623 | -rm -rf ./$(DEPDIR) | ||
| 624 | -rm -f Makefile | ||
| 625 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
| 626 | distclean-tags | ||
| 627 | |||
| 628 | dvi: dvi-am | ||
| 629 | |||
| 630 | dvi-am: | ||
| 631 | |||
| 632 | html: html-am | ||
| 633 | |||
| 634 | html-am: | ||
| 635 | |||
| 636 | info: info-am | ||
| 637 | |||
| 638 | info-am: | ||
| 639 | |||
| 640 | install-data-am: | ||
| 641 | |||
| 642 | install-dvi: install-dvi-am | ||
| 643 | |||
| 644 | install-dvi-am: | ||
| 645 | |||
| 646 | install-exec-am: install-libLTLIBRARIES | ||
| 647 | |||
| 648 | install-html: install-html-am | ||
| 649 | |||
| 650 | install-html-am: | ||
| 651 | |||
| 652 | install-info: install-info-am | ||
| 653 | |||
| 654 | install-info-am: | ||
| 655 | |||
| 656 | install-man: | ||
| 657 | |||
| 658 | install-pdf: install-pdf-am | ||
| 659 | |||
| 660 | install-pdf-am: | ||
| 661 | |||
| 662 | install-ps: install-ps-am | ||
| 663 | |||
| 664 | install-ps-am: | ||
| 665 | |||
| 666 | installcheck-am: | ||
| 667 | |||
| 668 | maintainer-clean: maintainer-clean-am | ||
| 669 | -rm -rf ./$(DEPDIR) | ||
| 670 | -rm -f Makefile | ||
| 671 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
| 672 | |||
| 673 | mostlyclean: mostlyclean-am | ||
| 674 | |||
| 675 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
| 676 | mostlyclean-libtool | ||
| 677 | |||
| 678 | pdf: pdf-am | ||
| 679 | |||
| 680 | pdf-am: | ||
| 681 | |||
| 682 | ps: ps-am | ||
| 683 | |||
| 684 | ps-am: | ||
| 685 | |||
| 686 | uninstall-am: uninstall-libLTLIBRARIES | ||
| 687 | |||
| 688 | .MAKE: install-am install-strip | ||
| 689 | |||
| 690 | .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ | ||
| 691 | clean-libLTLIBRARIES clean-libtool cscopelist-am ctags \ | ||
| 692 | ctags-am distclean distclean-compile distclean-generic \ | ||
| 693 | distclean-libtool distclean-tags distdir dvi dvi-am html \ | ||
| 694 | html-am info info-am install install-am install-data \ | ||
| 695 | install-data-am install-dvi install-dvi-am install-exec \ | ||
| 696 | install-exec-am install-html install-html-am install-info \ | ||
| 697 | install-info-am install-libLTLIBRARIES install-man install-pdf \ | ||
| 698 | install-pdf-am install-ps install-ps-am install-strip \ | ||
| 699 | installcheck installcheck-am installdirs maintainer-clean \ | ||
| 700 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
| 701 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
| 702 | tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES | ||
| 703 | |||
| 704 | |||
| 705 | install: | ||
| 706 | install-plugin: install-am | ||
| 707 | |||
| 708 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
| 709 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
| 710 | .NOEXPORT: | ||
diff --git a/plugin/test/README b/plugin/test/README new file mode 100644 index 0000000..3ba9451 --- /dev/null +++ b/plugin/test/README | |||
| @@ -0,0 +1,4 @@ | |||
| 1 | This is a test plugin for Sylpheed plug-in system. | ||
| 2 | |||
| 3 | This plugin will not be installed by 'make install'. | ||
| 4 | To install this test plugin, use 'make install-plugin'. | ||
diff --git a/plugin/test/test.c b/plugin/test/test.c new file mode 100644 index 0000000..3276f7a --- /dev/null +++ b/plugin/test/test.c | |||
| @@ -0,0 +1,306 @@ | |||
| 1 | /* | ||
| 2 | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client | ||
| 3 | * Copyright (C) 1999-2013 Hiroyuki Yamamoto | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #include <glib.h> | ||
| 21 | #include <gtk/gtk.h> | ||
| 22 | |||
| 23 | #include "sylmain.h" | ||
| 24 | #include "plugin.h" | ||
| 25 | #include "test.h" | ||
| 26 | #include "folder.h" | ||
| 27 | #include "procmsg.h" | ||
| 28 | |||
| 29 | static SylPluginInfo info = { | ||
| 30 | "Test Plugin", | ||
| 31 | "3.4.0", | ||
| 32 | "Hiroyuki Yamamoto", | ||
| 33 | "Test plug-in for Sylpheed plug-in system" | ||
| 34 | }; | ||
| 35 | |||
| 36 | static void init_done_cb(GObject *obj, gpointer data); | ||
| 37 | static void app_exit_cb(GObject *obj, gpointer data); | ||
| 38 | |||
| 39 | static void folderview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 40 | gpointer data); | ||
| 41 | static void summaryview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 42 | gpointer data); | ||
| 43 | |||
| 44 | static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu, | ||
| 45 | GtkTextView *textview, | ||
| 46 | const gchar *uri, | ||
| 47 | const gchar *selected_text, | ||
| 48 | MsgInfo *msginfo); | ||
| 49 | |||
| 50 | static void menu_selected_cb(void); | ||
| 51 | |||
| 52 | static void compose_created_cb(GObject *obj, gpointer compose); | ||
| 53 | static void compose_destroy_cb(GObject *obj, gpointer compose); | ||
| 54 | static gboolean compose_send_cb(GObject *obj, gpointer compose, | ||
| 55 | gint compose_mode, gint send_mode, | ||
| 56 | const gchar *msg_file, GSList *to_list); | ||
| 57 | static void messageview_show_cb(GObject *obj, gpointer msgview, | ||
| 58 | MsgInfo *msginfo, gboolean all_headers); | ||
| 59 | static void inc_start_cb(GObject *obj, PrefsAccount *ac); | ||
| 60 | static void inc_finished_cb(GObject *obj, gint new_messages); | ||
| 61 | |||
| 62 | static void create_window(void); | ||
| 63 | static void create_folderview_sub_widget(void); | ||
| 64 | |||
| 65 | static gulong test_app_exit_handler_id = 0; | ||
| 66 | |||
| 67 | void plugin_load(void) | ||
| 68 | { | ||
| 69 | GList *list, *cur; | ||
| 70 | const gchar *ver; | ||
| 71 | gpointer mainwin; | ||
| 72 | |||
| 73 | g_print("test plug-in loaded!\n"); | ||
| 74 | |||
| 75 | list = folder_get_list(); | ||
| 76 | g_print("folder list = %p\n", list); | ||
| 77 | for (cur = list; cur != NULL; cur = cur->next) { | ||
| 78 | Folder *folder = FOLDER(cur->data); | ||
| 79 | gchar *id = folder_get_identifier(folder); | ||
| 80 | g_print("folder id = %s\n", id); | ||
| 81 | } | ||
| 82 | |||
| 83 | ver = syl_plugin_get_prog_version(); | ||
| 84 | g_print("program ver: %s\n", ver); | ||
| 85 | |||
| 86 | mainwin = syl_plugin_main_window_get(); | ||
| 87 | g_print("mainwin: %p\n", mainwin); | ||
| 88 | syl_plugin_main_window_popup(mainwin); | ||
| 89 | |||
| 90 | create_folderview_sub_widget(); | ||
| 91 | |||
| 92 | syl_plugin_add_menuitem("/Tools", NULL, NULL, NULL); | ||
| 93 | syl_plugin_add_menuitem("/Tools", "Plugin test", create_window, NULL); | ||
| 94 | |||
| 95 | g_signal_connect_after(syl_app_get(), "init-done", G_CALLBACK(init_done_cb), | ||
| 96 | NULL); | ||
| 97 | test_app_exit_handler_id = | ||
| 98 | g_signal_connect(syl_app_get(), "app-exit", G_CALLBACK(app_exit_cb), | ||
| 99 | NULL); | ||
| 100 | syl_plugin_signal_connect("folderview-menu-popup", | ||
| 101 | G_CALLBACK(folderview_menu_popup_cb), NULL); | ||
| 102 | syl_plugin_signal_connect("summaryview-menu-popup", | ||
| 103 | G_CALLBACK(summaryview_menu_popup_cb), NULL); | ||
| 104 | syl_plugin_signal_connect("textview-menu-popup", | ||
| 105 | G_CALLBACK(textview_menu_popup_cb), NULL); | ||
| 106 | syl_plugin_signal_connect("compose-created", | ||
| 107 | G_CALLBACK(compose_created_cb), NULL); | ||
| 108 | syl_plugin_signal_connect("compose-destroy", | ||
| 109 | G_CALLBACK(compose_destroy_cb), NULL); | ||
| 110 | syl_plugin_signal_connect("compose-send", | ||
| 111 | G_CALLBACK(compose_send_cb), NULL); | ||
| 112 | syl_plugin_signal_connect("messageview-show", | ||
| 113 | G_CALLBACK(messageview_show_cb), NULL); | ||
| 114 | syl_plugin_signal_connect("inc-mail-start", | ||
| 115 | G_CALLBACK(inc_start_cb), NULL); | ||
| 116 | syl_plugin_signal_connect("inc-mail-finished", | ||
| 117 | G_CALLBACK(inc_finished_cb), NULL); | ||
| 118 | |||
| 119 | syl_plugin_add_factory_item("<SummaryView>", "/---", NULL, NULL); | ||
| 120 | syl_plugin_add_factory_item("<SummaryView>", "/Test Plug-in menu", | ||
| 121 | menu_selected_cb, NULL); | ||
| 122 | |||
| 123 | g_print("test plug-in loading done\n"); | ||
| 124 | } | ||
| 125 | |||
| 126 | void plugin_unload(void) | ||
| 127 | { | ||
| 128 | g_print("test plug-in unloaded!\n"); | ||
| 129 | g_signal_handler_disconnect(syl_app_get(), test_app_exit_handler_id); | ||
| 130 | } | ||
| 131 | |||
| 132 | SylPluginInfo *plugin_info(void) | ||
| 133 | { | ||
| 134 | return &info; | ||
| 135 | } | ||
| 136 | |||
| 137 | gint plugin_interface_version(void) | ||
| 138 | { | ||
| 139 | return SYL_PLUGIN_INTERFACE_VERSION; | ||
| 140 | } | ||
| 141 | |||
| 142 | static void init_done_cb(GObject *obj, gpointer data) | ||
| 143 | { | ||
| 144 | syl_plugin_update_check_set_check_url("http://localhost/version_pro.txt?"); | ||
| 145 | syl_plugin_update_check_set_download_url("http://localhost/download.php?sno=123&ver=VER&os=win"); | ||
| 146 | syl_plugin_update_check_set_jump_url("http://localhost/index.html"); | ||
| 147 | syl_plugin_update_check_set_check_plugin_url("http://localhost/plugin_version.txt"); | ||
| 148 | syl_plugin_update_check_set_jump_plugin_url("http://localhost/plugin.html"); | ||
| 149 | |||
| 150 | syl_plugin_notification_window_open("Sylpheed app init done", "Normal text\n<b>Bold</b>\n<s>Strikethrough</s>\n<b>This is a long text and will be truncated:</b> ABCDEFGHIJKLMNOPQRSTUVWXYZ", 5); | ||
| 151 | |||
| 152 | g_print("test: %p: app init done\n", obj); | ||
| 153 | } | ||
| 154 | |||
| 155 | static void app_exit_cb(GObject *obj, gpointer data) | ||
| 156 | { | ||
| 157 | g_print("test: %p: app will exit\n", obj); | ||
| 158 | } | ||
| 159 | |||
| 160 | static void folderview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 161 | gpointer data) | ||
| 162 | { | ||
| 163 | g_print("test: %p: folderview menu popup\n", obj); | ||
| 164 | } | ||
| 165 | |||
| 166 | static void summaryview_menu_popup_cb(GObject *obj, GtkItemFactory *ifactory, | ||
| 167 | gpointer data) | ||
| 168 | { | ||
| 169 | GtkWidget *widget; | ||
| 170 | |||
| 171 | g_print("test: %p: summaryview menu popup\n", obj); | ||
| 172 | widget = gtk_item_factory_get_item(ifactory, "/Test Plug-in menu"); | ||
| 173 | if (widget) | ||
| 174 | gtk_widget_set_sensitive(widget, TRUE); | ||
| 175 | } | ||
| 176 | |||
| 177 | static void activate_menu_cb(GtkMenuItem *menuitem, gpointer data) | ||
| 178 | { | ||
| 179 | g_print("menu activated\n"); | ||
| 180 | } | ||
| 181 | |||
| 182 | static void textview_menu_popup_cb(GObject *obj, GtkMenu *menu, | ||
| 183 | GtkTextView *textview, | ||
| 184 | const gchar *uri, | ||
| 185 | const gchar *selected_text, | ||
| 186 | MsgInfo *msginfo) | ||
| 187 | { | ||
| 188 | GtkWidget *separator, *menuitem; | ||
| 189 | |||
| 190 | g_print("test: %p: textview menu popup\n", obj); | ||
| 191 | g_print("test: %p: uri: %s, text: %s\n", obj, uri ? uri : "(none)", | ||
| 192 | selected_text ? selected_text : "(none)"); | ||
| 193 | g_print("test: %p: msg: %s\n", obj, | ||
| 194 | msginfo && msginfo->subject ? msginfo->subject : ""); | ||
| 195 | |||
| 196 | separator = gtk_separator_menu_item_new(); | ||
| 197 | gtk_menu_shell_append(GTK_MENU_SHELL(menu), separator); | ||
| 198 | gtk_widget_show(separator); | ||
| 199 | |||
| 200 | menuitem = gtk_menu_item_new_with_mnemonic("Test menu"); | ||
| 201 | g_signal_connect(menuitem, "activate", G_CALLBACK(activate_menu_cb), NULL); | ||
| 202 | gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem); | ||
| 203 | gtk_widget_show(menuitem); | ||
| 204 | } | ||
| 205 | |||
| 206 | static void menu_selected_cb(void) | ||
| 207 | { | ||
| 208 | gint sel; | ||
| 209 | GSList *mlist; | ||
| 210 | |||
| 211 | g_print("test: summary menu selected\n"); | ||
| 212 | sel = syl_plugin_summary_get_selection_type(); | ||
| 213 | mlist = syl_plugin_summary_get_selected_msg_list(); | ||
| 214 | g_print("test: selection type: %d\n", sel); | ||
| 215 | g_print("test: number of selected summary message: %d\n", | ||
| 216 | g_slist_length(mlist)); | ||
| 217 | g_slist_free(mlist); | ||
| 218 | } | ||
| 219 | |||
| 220 | static void compose_created_cb(GObject *obj, gpointer compose) | ||
| 221 | { | ||
| 222 | gchar *text; | ||
| 223 | |||
| 224 | g_print("test: %p: compose created (%p)\n", obj, compose); | ||
| 225 | |||
| 226 | text = syl_plugin_compose_entry_get_text(compose, 0); | ||
| 227 | g_print("test: compose To: %s\n", text); | ||
| 228 | g_free(text); | ||
| 229 | #if 0 | ||
| 230 | syl_plugin_compose_entry_set(compose, "test-plugin@test", 1); | ||
| 231 | syl_plugin_compose_entry_append(compose, "second@test", 1); | ||
| 232 | #endif | ||
| 233 | } | ||
| 234 | |||
| 235 | static void compose_destroy_cb(GObject *obj, gpointer compose) | ||
| 236 | { | ||
| 237 | g_print("test: %p: compose will be destroyed (%p)\n", obj, compose); | ||
| 238 | } | ||
| 239 | |||
| 240 | static gboolean compose_send_cb(GObject *obj, gpointer compose, | ||
| 241 | gint compose_mode, gint send_mode, | ||
| 242 | const gchar *msg_file, GSList *to_list) | ||
| 243 | { | ||
| 244 | g_print("test: %p: composed message will be sent (%p)\n", obj, compose); | ||
| 245 | g_print("test: compose_mode: %d, send_mode: %d, file: %s\n", | ||
| 246 | compose_mode, send_mode, msg_file); | ||
| 247 | |||
| 248 | return FALSE; /* return TRUE to cancel sending */ | ||
| 249 | } | ||
| 250 | |||
| 251 | static void messageview_show_cb(GObject *obj, gpointer msgview, | ||
| 252 | MsgInfo *msginfo, gboolean all_headers) | ||
| 253 | { | ||
| 254 | g_print("test: %p: messageview_show (%p), all_headers: %d: %s\n", | ||
| 255 | obj, msgview, all_headers, | ||
| 256 | msginfo && msginfo->subject ? msginfo->subject : ""); | ||
| 257 | } | ||
| 258 | |||
| 259 | static void inc_start_cb(GObject *obj, PrefsAccount *ac) | ||
| 260 | { | ||
| 261 | if (ac) | ||
| 262 | g_print("test: receive start: account: %s\n", ac->account_name); | ||
| 263 | else | ||
| 264 | g_print("test: receive start: all accounts\n"); | ||
| 265 | } | ||
| 266 | |||
| 267 | static void inc_finished_cb(GObject *obj, gint new_messages) | ||
| 268 | { | ||
| 269 | g_print("test: received %d new messages\n", new_messages); | ||
| 270 | } | ||
| 271 | |||
| 272 | static void button_clicked(GtkWidget *widget, gpointer data) | ||
| 273 | { | ||
| 274 | g_print("button_clicked\n"); | ||
| 275 | /* syl_plugin_app_will_exit(TRUE); */ | ||
| 276 | } | ||
| 277 | |||
| 278 | static void create_window(void) | ||
| 279 | { | ||
| 280 | GtkWidget *window; | ||
| 281 | GtkWidget *button; | ||
| 282 | |||
| 283 | g_print("creating window\n"); | ||
| 284 | |||
| 285 | window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | ||
| 286 | button = gtk_button_new_with_label("Click this button"); | ||
| 287 | gtk_window_set_default_size(GTK_WINDOW(window), 400, 200); | ||
| 288 | gtk_container_add(GTK_CONTAINER(window), button); | ||
| 289 | g_signal_connect(G_OBJECT(button), "clicked", | ||
| 290 | G_CALLBACK(button_clicked), NULL); | ||
| 291 | gtk_widget_show_all(window); | ||
| 292 | } | ||
| 293 | |||
| 294 | static void create_folderview_sub_widget(void) | ||
| 295 | { | ||
| 296 | GtkWidget *vbox; | ||
| 297 | GtkWidget *button; | ||
| 298 | |||
| 299 | g_print("creating sub widget\n"); | ||
| 300 | |||
| 301 | vbox = gtk_vbox_new(FALSE, 2); | ||
| 302 | button = gtk_button_new_with_label("Test"); | ||
| 303 | gtk_box_pack_start(GTK_BOX(vbox), button, FALSE, FALSE, 0); | ||
| 304 | gtk_widget_show_all(vbox); | ||
| 305 | syl_plugin_folderview_add_sub_widget(vbox); | ||
| 306 | } | ||
diff --git a/plugin/test/test.h b/plugin/test/test.h new file mode 100644 index 0000000..253c915 --- /dev/null +++ b/plugin/test/test.h | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | /* | ||
| 2 | * Sylpheed -- a GTK+ based, lightweight, and fast e-mail client | ||
| 3 | * Copyright (C) 1999-2011 Hiroyuki Yamamoto | ||
| 4 | * | ||
| 5 | * This program is free software; you can redistribute it and/or modify | ||
| 6 | * it under the terms of the GNU General Public License as published by | ||
| 7 | * the Free Software Foundation; either version 2 of the License, or | ||
| 8 | * (at your option) any later version. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, write to the Free Software | ||
| 17 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
| 18 | */ | ||
| 19 | |||
| 20 | #ifndef __TEST_H__ | ||
| 21 | #define __TEST_H__ | ||
| 22 | |||
| 23 | #endif /* __TEST_H__ */ | ||
