Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-13412

Allow callers of email_to_user() to set wordwrap

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: 1.9.1
    • Component/s: Libraries
    • Labels:
      None

      Description

      It would be good if it were possible to modify the wordwrap behaviour of emails.

      For example, one of the third party sms blocks sends email using email_to_user():

      http://moodle.org/mod/forum/discuss.php?d=61204

      SMS messages are getting truncated to 75 chars as the word wrap feature wraps the mail and the second line gets ignored according to the clickatell API.

      A patch is attached which adds some missing @param comments and adds $wordwrapwidth as an optional parameter with default 79.

      This should (I hope) leave the current behaviour unchanged but allow a caller to specify the wrap width.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            gavinmc Gavin Mccullagh
            Tester:
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/May/08