Interchange

CVS log for interchange/lib/Vend/Email.pm

[BACK] Up to [Local Repository] / interchange / lib / Vend

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Dec 28 11:47:51 2007 UTC (12 months, 1 week ago) by racke
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, HEAD, DEB_5_6_1_2
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +3 -3 lines
fix debug statement

Revision 1.10: download - view: text, markup, annotated - select for diffs
Tue Dec 18 09:53:19 2007 UTC (12 months, 3 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +43 -5 lines
fallback mode implemented for missing MIME::Lite module

Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Dec 14 10:24:21 2007 UTC (12 months, 3 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +3 -2 lines
specify default character set with MV_EMAIL_CHARSET variables

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Dec 13 23:54:18 2007 UTC (12 months, 3 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +12 -14 lines
better solution to implement charset option for [email]

Revision 1.7: download - view: text, markup, annotated - select for diffs
Thu Dec 13 22:24:32 2007 UTC (12 months, 3 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -2 lines
prevent email headers like Attach: HASH(0xc643078)

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Dec 13 15:38:12 2007 UTC (12 months, 3 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +29 -17 lines
respect new "charset" parameter for [email], allows sending UTF-8 emails

Revision 1.5: download - view: text, markup, annotated - select for diffs
Thu Oct 18 19:33:25 2007 UTC (14 months, 3 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +17 -6 lines
Copy option hash to avoid messing with caller's data
Unravel code setting reply_to from reply input, primarily
to fix a bug which resulted in "1" as reply-to header

Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Oct 10 17:29:41 2007 UTC (14 months, 4 weeks ago) by racke
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -5 lines
remove obsolete dependencies

Revision 1.3: download - view: text, markup, annotated - select for diffs
Fri May 4 09:43:26 2007 UTC (20 months ago) by docelic
Branches: MAIN
CVS tags: REL_5_5_1, DEB_5_5_1_1_1, DEB_5_5_1
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +695 -71 lines

* Working Email.pm.
* Compatibility functions for send_mail(), mail() and tag email.
* Should be a drop-in replacement.

There is another part of this commit, that I will add later today or
tomorrow. (Re-directions from traditional send_mail, mail and tag email
to code in this module).

I'd like to give you a chance for peer review or comments before we
actually switch to Email.pm.

Cya folks
-doc

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 9 21:39:49 2007 UTC (21 months ago) by docelic
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +236 -112 lines

* Updated version of Email.pm

 - Handles headers better (only accepts valid header names)
 - Supports multiple to/cc/bcc/reply-to fields
 - Uses debug/error messages equal/similar to send_mail()
 - Aligned comments the usual way

 Work left to do:
 - Verify header values for malicious input (MIME::Lite already
   takes care about one part of it - it is NOT possible to pass it something
   like  To: user1\nSome-other-header: some-other-value  , because it inserts
   a space after \n so it looks like continuation of previous line. It is
   also not possible to send headers as part of the message, because headers
   and the message itself are passed to MIME::Lite in two separate calls)
 - Wrapper/compatibility functions for existing methods
 - Attachments

 Jon, does the above solve your concerns about header injection? If not,
 do you have a general example of the problem you have in mind?

Revision 1.1: download - view: text, markup, annotated - select for diffs
Mon Apr 2 17:10:19 2007 UTC (21 months, 1 week ago) by docelic
Branches: MAIN

* Add Email.pm, handling mail functions.

  The module works by help of MIME::Lite and properly handless various
  types of email.

  Shortly, I will add compatibility support so that the existing
  mail functions start calling this module.

  I'll make the "compatibility" functions compatible as possible, but
  given that Email.pm depends on some non-standard Perl modules
  (such as MIME::Lite), are we okay with that, or there should be a
  config option to enable when you want to use Email.pm instead of
  old code?

  Short-term TODO:
  - Support for attachments
  - Write compatibility functions
  - Word-encoding of header fields (did it, but need to troubleshoot)



  If anyone wants to try it, I used the following tag to call it:

UserTag mime_lite_email hasEndTag
UserTag mime_lite_email addAttr
UserTag mime_lite_email PosNumber   0
UserTag mime_lite_email Interpolate
UserTag mime_lite_email Version     $Revision: 1.0 $
UserTag mime_lite_email MapRoutine  Vend::Email::tag_mime_lite_email


  And the usage is [mime_lite_email header(s)=value(s)]...[/mime_lite_email]:

  [mime_lite_email
    to="[value email]"
    subject="Thank you [value fname]"
    from="__COMPANY__ Customer Service"]

    Dear __COMPANY__ customer, ....
    ....

  [/mime_lite_email]

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>