Hellcore Mailer may be run with the following parameters (switches and commands) to activate special functionality (helpful within batch scripts) or change the way application works. You enter parameters in shortcut properties, within a command line, or in a batch script. Switches and commands are case-insensitive and should be precedeed either with "-" or "/". Some of switches should be located in a program's configuration window, but because of their specific usage, they're available only in this form.
Parameters are grouped as follows:
ex. hcm.exe /datapath z:\hcm
Defines application data directory (for default directory, see here. This directory contains "Users" directory (containing user's data) and "USR_TEMP" (temporary data storage).
ex. hcm.exe /mime-debug
Activates special "Mime-Debug" mode. When active, messages downloaded from mail and news servers are stored in a special file ("StoredMsgs.$$$"), located in active user's directory. In case of failure or bug, you may recover lost messages by importing messages from this file using "Import archive" option, located in "Folders" menu.
ex. hcm.exe /nocache
Disables editor window caching. Window caching significantly speeds up opening message editor windows by using already created (but hidden) windows. The only drawback is increased memory and resource usage. Cached windows may be freed immediately (see here).
ex. hcm.exe /oval
Changes button look from rectangular to oval.
ex. hcm.exe /defbuttons
Disables HCM button look and enables system' one.
ex. hcm.exe /noprebuffer
Completely disables file prebuffering (loading whole file to RAM, this often gives additional performance gains) before processing. Whether file will be prebuffered, depends on file size, amount of free RAM and presence of this switch.
ex. hcm.exe /readonly
Enables "read-only" mode - no changes will be made to either configuration or data files.
ex. hcm.exe /noxpuserdirs
Forces program to use local (installation) directory - instead of user's profile directory - for data store.
ex. hcm.exe /translator
Enables additional support for user interface translators. Read more.
ex. hcm.exe /revertassocs
Restores original file and protocol associations (if association was made from within program).
ex. hcm.exe /startuser asm
or hcm.exe /startuser "c:\useria\asm.hcm"
Skips user selection window and loads up user specified by second parameter. If it doesn't exists, it is treated as filename. In case of failure, displays appropriate messagebox and starts normally.
ex. hcm.exe /checkandpop "main,my work"
May be used with or without "/startuser". Starts application and checks mail on all not ignored or specified accounts (account names are entered in second parameter in double quotes, every account name is separated by a single comma). Will show notification when there's new mail or shut down if not.
ex. hcm.exe /sendorpop "wielkie,główne"
May be used with or without "/startuser". Similar to above, will send mail from specified accounts (or not ignored) and shut down on success.
ex. hcm.exe /importuser "a:\maile.hcm"
Imports data from specified HCM file. If "/startuser" was omitted, user selection window may be displayed.
ex. hcm.exe /base64 c:\konwersja\*.*
Base 64-Encodes specified files. New files get .b64 extension, old files remain as-is.
ex. hcm.exe /bzpack c:\ebooki\*.*
Compresses specified files with Bzip2 compressor. New files get .bzip extension, old files remain as-is. NOTE: use /bzunpack to decompress files (original bzip2 program may not decompress them).
ex. hcm.exe /bzunpack c:\ebooki\*.*
Decompresses specified files from BZip2 compression. New files get .inflate extension, old files remain as-is.
ex. hcm.exe /convert utf-8 windows-1250 c:\konwersja\*.*
Changes encoding in specified files from source (csrc) to destination (cdst). Instead of source encoding, you may enter "AUTO" to force source files encoding automatic detection.
ex. hcm.exe /deflate c:\ebooki\*.*
Compresses specified files with Zlib compressor. New files get .deflate extension, old files remain as-is. NOTE: use /inflate to decompress files (original gzip/pkzip program may not decompress them).
ex. hcm.exe /hcm c:\archiwum_gośka.hcm c:\archiwum\gośka\*.*
Packs specified files (wildcards are supported) into "archive_name" archive in native HCM format (HCM user file).
ex. hcm.exe /inflate c:\ebooki\*.*
Decompresses specified files from Zlib compression. New files get .inflate extension, old files remain as-is.
ex. hcm.exe /rot c:\konwersja\*.*
Encodes text files by rotating alphabet by 13 letters (ROT-13).
ex. hcm.exe /showeml "c:\archiwum\gośka\15-01-2003 23:34.eml"
Displays .eml (message) file specified by second parameter.
ex. hcm.exe /showpic "c:\obrazki\samochody\ferrari testarossa.jpg"
Displays image specified by second parameter.
ex. hcm.exe /showfile "c:\obrazki\samochody\ferrari testarossa.jpg"
Displays image, e-mail or opens user file specified by second parameter. File type (and therefore action) is automatically detected.
ex. hcm.exe /unhcm c:\archiwum_gośka.hcm c:\archiwum\gośka\
Unpacks specified HCM file to "target" directory. If "target" doesn't exist, it will be created.
ex. hcm.exe /wipe c:\tajne\*.*
Removes filename by overwriting it three times with random data, destroying its size and first sector number information in directory, and finally performing actual removal. ATTENTION: there's no possibility to recover files deleted this way!
ex. hcm.exe /quickwipe c:\tajne\*.*
Removes filename by destroying it's size and first sector number information in directory, and finally performing actual removal. Although fast and less secure, this method is still far better than "standard" file removal.
ex. hcm.exe /yenc c:\konwersja\*.*
Encodes files with yEnc encoder. New files get .yenc extension, old files remain as-is.
ex. hcm.exe /url mailto:piotrek@hellcore-mailer.pl?subject=test
Opens the specified link using Hellcore Mailer. If link protocol is supported internally, appropriate action will be taken (for example, in case of mailto: links - a new editor window will be opened), otherwise assigned application will be launched and program will continue working. Do not forget putting link in double quutes (") if it contains spaces.