|
@@ -189,12 +189,12 @@ programs must be defined:
|
189
|
189
|
|
190
|
190
|
A translator is a program that receives in standard input one or more
|
191
|
191
|
folder names,
|
192
|
|
-and must return 0 and print on standard output a corresponding folder name
|
193
|
|
-on success, or return 1 and prints the string `ERROR` on the first line
|
194
|
|
-and an optional following error message otherwise. Note that the folder
|
195
|
|
-names will be complete of the `MAILBOX` part and will always terminate
|
196
|
|
-with `cur`, `new` or `tmp`. For example, consider the following configuration
|
197
|
|
-file:
|
|
192
|
+and must print on standard output a corresponding folder name
|
|
193
|
+on success, or prints the string `ERROR` followed by a new line
|
|
194
|
+and an optional following error message otherwise end exists returning 1.
|
|
195
|
+Note that the folder names will be complete of the `MAILBOX_LOCAL` or
|
|
196
|
+`MAILBOX_REMOTE` part and will always terminate with `cur`, `new` or `tmp`.
|
|
197
|
+For example, consider the following configuration file:
|
198
|
198
|
|
199
|
199
|
MAILBOX_LOCAL=Mail
|
200
|
200
|
MAILBOX_REMOTE=Maildir
|
|
@@ -240,11 +240,12 @@ may take a long time depending on the size of your mailboxes.
|
240
|
240
|
To avoid common mistakes in writing translators, some recurrent renaming
|
241
|
241
|
scenarios are handled by the `smd-translate` utility.
|
242
|
242
|
Assuming the `MAILBOX_LOCAL` configuration variable is set to `Mail`
|
243
|
|
-and the `MAILBOX_REMOTE` is set to `Maildir`, one can use the following
|
244
|
|
-configuration file snippet in `~/.smd/config.endpoint`:
|
|
243
|
+and the `MAILBOX_REMOTE` is set to `Maildir`,
|
|
244
|
+One can use the following configuration file snippet as a reference,
|
|
245
|
+where default must be repaced with the endpoint name:
|
245
|
246
|
|
246
|
|
- TRANSLATOR_RL="smd-translate -m oimap-dovecot -d RL endpoint"
|
247
|
|
- TRANSLATOR_LR="smd-translate -m oimap-dovecot -d LR endpoint"
|
|
247
|
+ TRANSLATOR_RL="smd-translate -m oimap-dovecot -d RL default"
|
|
248
|
+ TRANSLATOR_LR="smd-translate -m oimap-dovecot -d LR default"
|
248
|
249
|
|
249
|
250
|
### smd-loop
|
250
|
251
|
|