Kompx.com or Compmiscellanea.com

Renaming files in mc

Operating systems : Linux

Renaming a file in mc / Midnight Commander:

- Select a file --> Shift - F6 --> Edit existing file name into a new one --> Enter

Select a file

[ Image ] : mc - Select a file

Edit file name

[ Image ] : mc - Edit file name

The original way of renaming a file - the one mc / Midnight Commander had before "Shift - F6" was implemented - is also still there:

- Select a file --> F6 --> Enter a new file name --> Enter

Select a file

[ Image ] : mc - Select a file

Enter file name

[ Image ] : mc - Enter file name

And "Esc - 6" may be used instead of "F6":

- Select a file --> Esc - 6 --> Enter a new file name --> Enter

Select a file

[ Image ] : mc - Select a file

Enter file name

[ Image ] : mc - Enter file name

Aliosque subditos et thema

 

Renaming folders in mc

 

Renaming a folder in mc / Midnight Commander: - Select a folder --> Shift - F6 --> Edit existing folder name into a new one --> Enter Select a folder Edit folder name The original way of renaming a folder - the one mc / Midnight Commander had before "Shift - F6" was implemented - is also still there: - Select a folder --> F6 --> Enter a new folder name --> Enter Select a folder Enter folder name And "Esc - 6" may be used instead of "F6": - Select a file --> Esc - 6 --> Enter a new folder name --> Enter Select a folder Enter folder name

Imapsync IMAP migration under Windows

 

Migrating an IMAP e-mail box from one IMAP server to another under Windows [ 1 ] [ 2 ] by means of imapsync: Copying an e-mail box with all its contents and keeping its folder structure; The e-mail box is hosted at a web hosting company's server and transfered to a common Yandex Mail (not Yandex Mail for Domain); Both IMAP servers support SSL. The process is done in three steps: test run, migrating folder structure, migrating e-mails. Test run Content of imapsync-test.bat: .\imapsync.exe ^ --host1 imap.domain.ru --user1 email1@domain.ru --password1 "password1" ^ --host2 imap.yandex.ru --user2 email2@yandex.ru --password2 "password2" ^ --ssl1 --ssl2 --sslargs1 SSL_verify_mode=0 --sslargs2 SSL_verify_mode=1 ^ --skipheader "^(?!Message-Id)" ^ --automap ^ --regextrans2 "s/^INBOX\.(.+)/$1/" ^ --addheader ^ --justfolders ^ --dry @PAUSE Note: the caret character ( ^ ) at the end of line means "this command continues on the next line". It allows to break long command with many options into several parts to put them in several lines for better readability. This step is meant for testing if imapsync may be run at all, if it can connect to both e-mail boxes and can read the basic structure of the first one. Imapsync runs without actually doing anything, just printing what would have been done without the --dry option. Adding --justfolders is to make testing faster, as imapsync does its job only for folders then. A log file with full details for each run is placed into the LOG_imapsync folder. Migrating folder structure Content of imapsync-folders.bat: .\imapsync.exe ^ --host1 imap.domain.ru --user1 email1@domain.ru --password1 "password1" ^ --host2 imap.yandex.ru --user2 email2@yandex.ru --password2 "password2" ^ --ssl1 --ssl2 --sslargs1 SSL_verify_mode=0 --sslargs2 SSL_verify_mode=1 ^ --skipheader "^(?!Message-Id)" ^ --automap ^ --regextrans2 "s/^INBOX\.(.+)/$1/" ^ --addheader ^ --justfolders @PAUSE This step reproduces the folder structure of the e-mail box being migrated in the one it is being migrated to. Migrating e-mails Content of imapsync-emails.bat: .\imapsync.exe ^ --host1 imap.domain.ru --user1 email1@domain.ru --password1 "password1" ^ --host2 imap.yandex.ru --user2 email2@yandex.ru --password2 "password2" ^ --ssl1 --ssl2 --sslargs1 SSL_verify_mode=0 --sslargs2 SSL_verify_mode=1 ^ --skipheader "^(?!Message-Id)" ^ --automap ^ --regextrans2 "s/^INBOX\.(.+)/$1/" ^ --addheader @PAUSE Now e-mails are being copied.