| 1441 |
ariadna |
1 |
Description of Roundcube Framework library import into Moodle
|
| 1 |
efrain |
2 |
|
|
|
3 |
We now use the client part of Roundcube Framework as a library in Moodle.
|
|
|
4 |
This library is used to receive emails from Moodle.
|
|
|
5 |
This library is not used to send emails.
|
|
|
6 |
|
| 1441 |
ariadna |
7 |
For more information on this version of Roundcube Framework, check out https://github.com/roundcube/roundcubemail/releases/tag/X.Y.Z
|
| 1 |
efrain |
8 |
|
|
|
9 |
To upgrade this library:
|
| 1441 |
ariadna |
10 |
1. Download the latest release of Roundcube Framework (roundcube-framework-xyz-tar.gz) in https://github.com/roundcube/roundcubemail/releases.
|
| 1 |
efrain |
11 |
2. Extract the contents of the release archive to a temp folder.
|
|
|
12 |
3. Copy the following files from the temp folder to the Moodle folder admin/tool/messageinbound/roundcube:
|
|
|
13 |
- rcube_charset.php
|
|
|
14 |
- rcube_imap_generic.php
|
|
|
15 |
- rcube_message_header.php
|
|
|
16 |
- rcube_mime.php
|
|
|
17 |
- rcube_result_index.php
|
|
|
18 |
- rcube_result_thread.php
|
|
|
19 |
- rcube_utils.php
|
| 1441 |
ariadna |
20 |
|
|
|
21 |
To ease the process, you can execute the below command:
|
|
|
22 |
```
|
|
|
23 |
cp rcube_charset.php \
|
|
|
24 |
rcube_imap_generic.php \
|
|
|
25 |
rcube_message_header.php \
|
|
|
26 |
rcube_mime.php \
|
|
|
27 |
rcube_result_index.php \
|
|
|
28 |
rcube_result_thread.php \
|
|
|
29 |
rcube_utils.php \
|
|
|
30 |
/path/to/moodle/admin/tool/messageinbound/roundcube/
|
|
|
31 |
```
|
|
|
32 |
4. Enter to the /path/to/moodle/admin/tool/messageinbound/roundcube/.
|
|
|
33 |
5. Find and replace all array_first() calls with array_shift() in the following files:
|
| 1 |
efrain |
34 |
- rcube_imap_generic.php
|
|
|
35 |
- rcube_result_index.php
|
|
|
36 |
- rcube_result_thread.php
|
| 1441 |
ariadna |
37 |
|
|
|
38 |
To ease the process, you can execute the below command:
|
|
|
39 |
```
|
|
|
40 |
sed -i 's/array_first(/array_shift(/g' \
|
|
|
41 |
rcube_imap_generic.php \
|
|
|
42 |
rcube_result_index.php \
|
|
|
43 |
rcube_result_thread.php
|
|
|
44 |
```
|
|
|
45 |
6. Update the library's version in admin/tool/messageinbound/thirdpartylibs.xml.
|