Interchange

CVS log for interchange/code/UserTag/email.tag

[BACK] Up to [Local Repository] / interchange / code / UserTag

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 31 00:20:18 2007 UTC (21 months, 1 week ago) by pajamian
Branches: STABLE_5_4-branch
CVS tags: REL_5_4_3
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +8 -3 lines
Fix incorrect license in headers GPL v2 -> GPL v2 "or later".  Update copyrights.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Fri Mar 30 23:40:56 2007 UTC (21 months, 1 week ago) by pajamian
Branches: MAIN
CVS tags: STABLE_5_6-root, STABLE_5_6-branch, REL_5_7_1, REL_5_6_1, REL_5_5_3, REL_5_5_2, REL_5_5_1, HEAD, DEB_5_6_1_2, DEB_5_5_1_1_1, DEB_5_5_1
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -3 lines
Fix incorrect license in headers GPL v2 -> GPL v2 "or later".  Update copyrights.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Feb 1 09:27:27 2007 UTC (23 months, 1 week ago) by ton
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +13 -3 lines
	Extended Net::SMTP support.

	Before it was not possible to send email with attachments
	while using Net::SMTP as the mail agent.
	From now on the email tag does not rely on the email_raw
	tag anymore.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Nov 8 18:14:42 2005 UTC (3 years, 2 months ago) by jon
Branches: MAIN
CVS tags: STABLE_5_4-root, REL_5_4_2, REL_5_4_1, REL_5_4_0, REL_5_3_3, REL_5_3_2
Branch point for: STABLE_5_4-branch
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2 lines
Big copyright and version number update to prepare for 5.3.2 release.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Oct 19 15:09:38 2005 UTC (3 years, 2 months ago) by mheins
Branches: MAIN
CVS tags: DEB_5_3_0_20051028_1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +2 -1 lines
* Prevent double-setting of From: header.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Oct 14 13:04:05 2005 UTC (3 years, 2 months ago) by racke
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +4 -3 lines
fix garbled subject if reply is set, the newline is important

Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Sep 28 22:07:24 2005 UTC (3 years, 3 months ago) by jon
Branches: MAIN
CVS tags: DEB_5_3_0_20051004_1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +6 -5 lines
Move check for MIME::Lite to earliest sensible place.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Sep 26 19:36:59 2005 UTC (3 years, 3 months ago) by jon
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +23 -10 lines
Prevent spammer abuse of [email] tag via header injection in inputs such
as To, From, Subject. Properly handle multiple-line "folded" headers as
per RFC, but reject any other newlines attempted injection abuses.

Properly tolerate missing MIME::Lite module, as appears to have been
originally intended.

Bring back cosmetic changes from version 1.6, which were nuked in 1.7.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Aug 28 14:31:30 2005 UTC (3 years, 4 months ago) by mheins
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +131 -8 lines
* Enhance [email ...] tag to handle attachments. Requires MIME::Lite module,
  which I have added to Bundle::Interchange[KitchenSink].

* To do the common request of HTML messages, you simply add an html parameter
  thusly:

    [email
            from=foo@bar.com
            to=bar@foo.com
            subject=test
            html="[scratch some_big_hairy_mess]"
            ]This is the plain text part.[/email]


   This sets the main message type as multipart/alternative, automatically
   sets the content-type and disposition of the two parts, and creates a
   valid text-and-HTML message.

* To add a single file as an attachment, you just do:

    [email
            from=foo@bar.com
            to=bar@foo.com
            subject=test
            attach=foo.gif
            ] Here is the gif file I promised.  [/email]

   It automatically picks up the MIME type, and handles many if you
   have the optional MIME::Types module installed.

* To add multiple files, or for more control over the attachments,
  the attach option accepts hashes.

    [email
            from=foo@bar.com
            to=bar@foo.com
            subject=test
            attach.0=`{
                type => 'image/gif',
                path => 'images/foo.gif',
            }`
            attach.1=`{
                type => 'image/jpeg',
                path => 'images/foo.jpg',
            }`
        ] Here are the files I promised. [/email]

   This would be the same as:

    [email
            from=foo@bar.com
            to=bar@foo.com
            subject=test
            attach=`[
                {
                    type => 'image/gif',
                    path => 'images/foo.gif',
                    filename => 'PrettyName.gif',
                },
                {
                    type => 'image/jpeg',
                    data => $Tag->file('tmp/foo.jpeg')
                            || $Tag->file('images/broken.jpg'),
                    filename => 'PrettyName.jpg',
                },
            ]`
        ] Here are the files I promised. [/email]

Revision 1.6: download - view: text, markup, annotated - select for diffs
Fri Aug 19 04:54:05 2005 UTC (3 years, 4 months ago) by jon
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +6 -8 lines
Clean up formatting a bit and remove unused named code block.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Feb 10 14:38:39 2005 UTC (3 years, 10 months ago) by docelic
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -4 lines
Header/license fix or Version update+minor formatting fix, or both

Revision 1.4: download - view: text, markup, annotated - select for diffs
Thu Oct 14 20:07:36 2004 UTC (4 years, 2 months ago) by docelic
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -0 lines

* header/license fix
* documented in xmldocs

Revision 1.3.2.1: download - view: text, markup, annotated - select for diffs
Sat Jan 25 22:20:36 2003 UTC (5 years, 11 months ago) by racke
Branches: LINUXIA
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +0 -0 lines
updated LINUXIA branch to 4.9 sources in order to use it as testbed again

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Feb 3 21:58:16 2002 UTC (6 years, 11 months ago) by mheins
Branches: MAIN
CVS tags: STABLE_5_2-root, STABLE_5_2-branch, STABLE_5_0-root, STABLE_5_0-branch, REL_5_2_1, REL_5_2_0, REL_5_1_1, REL_5_1_0, REL_5_0_2, REL_5_0_1, REL_5_0_0_RC2, REL_5_0_0_RC1, REL_5_0_0, REL_4_9_9, REL_4_9_8, REL_4_9_6, REL_4_9_5, REL_4_9_4, REL_4_9_2, REL_4_9_1, MANIFEST, DEB_5_2_1_1, DEB_5_0_0_2, DEB_4_9_8_20031014_1, DEB_4_9_8_20031010_1, DEB_4_9_8_20030911_1, DEB_4_9_8_20030706_1, DEB_4_9_8_2
Branch point for: LINUXIA
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +1 -1 lines
	* Merge change from stable (remove archaic split use, add error check)

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Feb 2 21:39:25 2002 UTC (6 years, 11 months ago) by mheins
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +4 -12 lines
	* Add enhancement made by Jurgen Botz to use send_mail program
	  so that Net::SMTP can send the email tag. Thanks Jurgen!

Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Jan 29 05:52:42 2002 UTC (6 years, 11 months ago) by mheins
Branches: MAIN
	* The great tag breakout!

	* Almost all tags are now UserTag definitions. The only exceptions
	  are:

		and bounce goto if label or unless

    * New TagDir directive (default is VENDROOT/code) sets the
	  directory (or directories) which are searched for code definitions
	  set by UserTag and CodeDef.

	* New TagGroup directive establishes groups of ITL tags which can
	  be included.

	  	TagGroup :crufty "banner default ecml html_table onfly sql"

	  The default groups include :core, which contains all of the
	  ITL tags defined in 4.8/early 4.9. The groups are defined
	  in $Vend::Cfg::StdTags and can be undefined if desired
	  with "TagGroup :group".

	* New TagInclude directive allows inclusion of tags (or groups
	  of tags). If a tag is defined as a core tag (with a .coretag
	  or .tag or .ct extension) and is not included, it will not
	  be compiled and placed in the tag map. This is for all catalogs,
	  so if *any* catalog uses a tag it must be included.

	  Examples:

		# Include the base tags
	  	TagInclude :core

		# Not the commerce tags
		TagInclude !:commerce

		# But make sure item-list is included even though
		# it is in :commerce
		TagInclude item-list

		## Double negatives are honored
		TagGroup    :foo "bar !baz buz"
		## With the group above, the below is equivalent
		## to TagInclude !bar baz !buz
		TagInclude !:foo

    * New CodeDef directive allows the setting of filters,
	  order checks, FormAction, ActionMap, ItemAction,
	  and LocaleChange.

			## filters
			CodeDef  mixedcase Filter
			CodeDef  mixedcase Routine <<EOR
			sub {
				my $val = shift;
				## [filter mixedcase]mixed case[/filter]
				## outputs "MiXeD CaSe"
				$val =~ s/(.)(.)/\u$1\l$2/g;
				return $val;
			}
			EOR

			## order checks
			CodeDef  mixedcase OrderCheck
			CodeDef  foo  Routine <<EOR
			sub {
				my ($ref, $var, $val) = @_;
				return (1,$var) if $val eq 'bar';
				return (0,$var, "foo must be bar");
			}
			EOR

	   All work in catalog.cfg; LocaleChange and ItemAction are not
	   global. FormAction, ActionMap, and ItemAction directives
	   are equivalent to their CodeDef equivalents.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

Interchange CVSweb <info@icdevgroup.org>