Hiwater mrk что за файл
Файл MRK содержит информацию о порядке, в котором графические данные должны быть напечатаны или переданы с устройства захвата изображения (камеры) на устройство обработки изображения. MRK файлы хранят данные в текстовом формате. Первая версия стандарта DPOF, определяющая структуру и возможности формата MRK, определила процедуру как параметры и порядок печати фотографий , обычно сохраняемые в AUTPRINT.MRK.
Стандарт был разработан в 1998 году компаниями Canon, Kodak, Fuji Film и Matsushita Electric. Спецификация стандартного расширения DPOF 1.10, опубликованная в 2000 году, определяет необязательный файл Auto Transfer ( autxfer.mrk ), который определяет структуру передаваемых файлов, и файл Auto Play ( autplay.mrk ) для представления изображений. Презентации могут также содержать аудио и видео материалы. Кроме того, была указана функция, позволяющая печатать несколько фотографий на одной странице и атрибут размера печати. Файлы MRK определяют такие параметры как:
- [HDR] Заголовок, который содержит общую информацию о файле, стандартной версии, программном обеспечении, с которым файл был создан, дату и дополнительную информацию о пользователе камеры,
- [JOB] Информация о задании, в том числе:
- Тип задания - процесс печати, передача данных, презентация,
- Идентификационный номер задачи,
- Связанный файл,
- Дополнительные параметры, такие как адрес электронной почты, качество печати и т. Д.
Файлы MRK используются устройствами обработки изображений - серверами службы печати или другими устройствами, поддерживающими стандарт DPOF. Файлы MRK позволяют пользователям подключать камеру к такому устройству и автоматически распечатывать , отправлять по электронной почте или просматривать презентации выбранных фотографий.
Программы, которые поддерживают MRK расширение файла
Следующий список содержит программы, сгруппированные по 2 операционным системам, которые поддерживают MRK файлы. Файлы с расширением MRK, как и любые другие форматы файлов, можно найти в любой операционной системе. Указанные файлы могут быть переданы на другие устройства, будь то мобильные или стационарные, но не все системы могут быть способны правильно обрабатывать такие файлы.
I managed to dig up some information on the IMAP.MRK file, for anyone brave enough to want to modify it pragmatically. The format is actually fairly simple, one header followed by zero or more message records.
If a MSG file has no corresponding record, MDaemon will update the IMAP.MRK file the next time an IMAP client or WorldClient user touches the folder, and the message will be treated as UNSEEN and UNREAD
The header is defined as follows:
struct IMAPMrkHeader
unsigned HeaderVersion;
unsigned UIDValidity;
unsigned UIDNext;
unsigned LastWriteCounter;
unsigned Filler0;
unsigned Filler1;
unsigned Filler2;
unsigned Filler3;
unsigned CRLF;
>;Each MSG file will have one record, which is defined as follows:
So what do all those fields mean?
- HeaderVersion is a tag to identify what file format the IMAP.MRK is using. The current value is 1. UIDValidity is the IMAP UID Validity for the folder. UIDNext is the UID that will be used for the next message added to the folder.
- LastWriteCounter is a value that changes whenever something has changed in the file. This was added when IDLE support was added to the IMAP server, so that there’s a quick way to check for changes (by comparing this one value rather than doing a compare of the entire file’s contents).When changing records in the file, lock the IMAP folder, increment the LastWriteCounter, change the records, then unlock the folder.
- UIDNext is the next UID to be assigned. To add records, lock the IMAP folder, increment the LastWriteCounter, and for each record you’re adding, use the current UIDNext value as its UID and then increment UIDNext.
So how do you lock a folder?
- Lock an IMAP folder by creating a file “IMAP-foldername-email.lck”, where foldername is a “filename-safe” version of the folder name (” and ‘/’ characters replaced with ‘_’) and email is the owner’s email address (use “public” for public folders). If the lock file already exists, something is currently operating on the IMAP.MRK so you should wait until it is unlocked before you lock it and continue.
Hope this helps someone.
4 Replies to “Automatically creating IMAP folders for new users”
Great solution! I have a similar request. I don’t need new folders created, I just want new users to be automatically subscribed to one of my public folders. If I edited your files to omit the new folder creation part, would that do the trick or is there an easier way?
You can use just the hiwater.mrk component to pre-subscribe users if you’d like.
Just create one account and subscribe to several folders including public folders to figure out the format.
Excellent info here for me being a new MD user!!
If I was looking to hook a script to auto create new users from a form – would I use the same files ?That was a great post…I love this site… thanks
Для чего нужен файловый формат .MRK?
Файловое расширение .mrk имеет основное отношение к типу и формату файлов "Файл пометок Pro/Engineer" (.mrk) в рамках сложной и мощной параметрической САПР Pro/Engineer от PTC. В Pro/Engineer пометки представляют собой прозрачный слой с произвольным текст и/или фигурами, накладываемый поверх чертежа изделия или сборного узла. Пометки сохраняются отдельно в виде файлов .mrk и используются для вставки комментариев, отметки мест исправлений и добавления прочей мета-информации, отображаемой вместе с объектом Pro/Engineer без его изменения.
Коммерческий почтовый сервер MDaemon Messaging Server от Alt-N Technologies использует расширение .mrk для обозначения своих конфигурационных файлов учетных записей и почтовых папок. MDaemon использует несколько типов файлов .mrk, каждый из которых хранит важные настройки обработки и хранения почты. Например, каждая учетная запись электронной почты в MDaemon в отдельном каталоге вида ".IMAP" обязательно имеет главный конфигурационный файл "HIWATER.mrk". Настройки почтовых папок, адресной книги, календаря и поиска также управляются соответствующими файлами .mrk. Все эти файлы являются служебными и не предназначены для непосредственного открытия пользователем.
В качестве обозначения типа/формата файлов "Текстовый файл MARC" (.mrk) расширение .mrk также имеет отношение к MarcEdit – бесплатной программе для работы с записями библиотечных каталогов в формате MARC (Machine Readable Cataloging) в среде Майкрософт Windows (автор: Terry Reese). В данном случае файл .mrk содержит удобочитаемый вариант каталожных записей MARC (.mrc). MRK-файлы получаются путем "разбивки" файлов MARC с помощью утилиты MarcBreaker, их можно непосредственно просматривать и редактировать в MarcEdit. После редактирования каждый файл .mrk нужно с помощью MarcMaker преобразовать в формат MARC.
В мощном звуковом редакторе профессионального уровня Wavelab от Steinberg Media Technologies GmbH расширение .mrk присваивается файлам маркеров. Маркерный файл (.mrk) — это временный служебный файл, который автоматически создается и обновляется Wavelab для каждой звуковой дорожки с пользовательскими маркерами с целью сохранения их позиций. Поскольку маркерные файлы (.mrk) имеют свойство накапливаться и засорять каталоги проектов, в последних версиях Wavelab предусмотрена опция, отключающая их создание.
Кроме того, в рамках известной коммерческой настольной издательской системы Adobe InDesign от Adobe Systems расширение .mrk служит для обозначения файлов меток печати (Printer Marks Definition, PMD). Файл PMD (.mrk) представляет собой обычный текстовый файл со сложным структурированным описанием меток печати, их положения и прочих настроек. Такие файлы можно корректировать в текстовом редакторе. Размещаются они в каталоге "Program Files\Common Files\Adobe\PrintSpt" (Майкрософт Windows) и доступны для выбора в качестве пунктов меню в панели "Метки и обрезка" (Marks and Bleed).
Программа промышленной маркировки CMS-MARK-WIN от Phoenix Contact (Майкрософт Windows) использует расширение .mrk в качестве идентификатора для своих файлов маркировок. Файл маркировки (.mrk) содержит расположенный в соответствии с шаблоном набор надписей и/или символов легенды, предназначенный для печати на кабелях, табличках и прочих носителях из различных материалов. CMS-MARK-WIN регистрирует тип файлов .mrk в системе и создает для него собственную ассоциацию. Несколько файлов с образцами маркировки (напр., "Tutorial1.mrk") включены в комплект поставки программы.
Расширение .mrk также имеет отношение к Brava! Enterprise – разработанной OpenText Corp. коммерческой системе управления содержимым в корпоративной среде (ECM) и обеспечения совместной работы с документами. В данном случае файл .mrk является файлом пометок, содержащим пользовательские комментарии или правки по отношению к документу Brava! Enterprise. Такие пометки (.mrk) сохраняются в директории "Markups" сервера и могут как отображаться вместе с документами, так и необратимо объединяться с ними.
Помимо этого, расширение .mrk также используется для обозначения текстовых управляющих файлов заказа отпечатков формата DPOF (Digital Print Order Format), создаваемых цифровыми фотоаппаратами. Такие файлы, а именно: "AUTPRINT.mrk" (файл автопечати) и "AUTXFER.mrk" (файл автопередачи), изменяются путем выбора параметров заказа в меню фотоаппарата и сохраняются на карте памяти, которая передается в центр печати. Эти файлы задают различные параметры заказа отпечатков, включая выбор снимков, число экземпляров, ориентацию, размер бумаги и т.д.
Leave a Reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
I recently had a request to automatically create one or more IMAP folders for all new users, and subscribe to them automatically.
I was originally hoping to implement it entirely in the content filter, but it was a bit more complex then I’d hoped.
Right now my script assumes that MDaemon is installed at C:\MDaemon\ and user folders are C:\MDaemon\Users\$DOMAIN$\$MAILBOX$\ if this is not correct, you will need to modify the batch file and content filter rules to update the paths, or post back here and I can send an updated version.
Download newuser-imap-folders which contains three files, cfrules.txt, newuser.cmd and newuser.mrk.
- Make a directory called C:\MDaemon\Scripts
- Copy the “newuser.cmd” and “newuser.mrk” files into this directory.
- Open cfrules.dat in notepad, copy the contents into the clipboard.
- Open \MDaemon\App\cfrules.dat in notepad, paste the content of my cfrules.txt into the top of cfrules.dat, save cfrules.dat and close it.
- Go to MDaemon, open the content filter, you should see a new rule called “Trap Welcome Message” — Enable it.
At this point any newly created user should have three folders, “Test1”, “Test2” and “Test3” created, and they should be automatically subscribed to these folders.
Changing the list of folders requires editing the two newuser files.
In newuser.cmd, there are three lines at the bottom that look like this:
You can add as many of these lines as you want, just replace the “Test1” with the name of the folder you want to create.
If you want to use a foldername with spaces, use this instead:
MD “C:\MDaemon\Users\%2\%1\Test 1.IMAP”
You’ll also need to edit newuser.mrk, there are three lines at the bottom that look like this:
This file controls the IMAP subscriptions for the user, so if you want the created folders to be automatically subscribed, list the folders here. No quotes are required for a folder name with spaces here.
Hopefully this all makes sense and you don’t have any troubles, but if you do, please reply back in the comments and I’d be happy to assist.
UPDATE (2008/08/20): ZIP file was not properly linked/attached the first time around, re-uploaded to the server and updated the page.
Leave a Reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Have a problem opening a .MRK file? We collect information about file formats and can explain what MRK files are. Additionally we recommend software suitable for opening or converting such files.
10 Replies to “IMAP.MRK file format”
very usefull thanx, but i got one question.
How whould i read the imap.mrk ?In case i would like to store somewhere the information for a user, if a message is unread or read , deleted or forwarded.
In mdaemon rules there isn’t any command for reading the imap.mrk file. So how i can open it, and then fetch the information from inside? ( I already try the notepad, but probably is somehow Db File)
Thanx for your time.
There aren’t any tools included with MDaemon (other than MDaemon and WorldClient itself) that can read IMAP.MRK.
In fact, the point of this article is, in part, to give you the information you need to write your own such tool.
If you just want to view a mailbox, share it from the MDaemon GUI and use IMAP or WorldClient to access it.
In case i need to write a program that to read the flag information from this file, it could be difficult ? can you provide some hint ? some source code? or any available website that can help with this ?
There’s nothing particularly difficult about it, the blog article contains the header information in C format “struct”
One other thought: the IMAP standard has no “Forwarded” flag, so although you can get “Replied” or not, you can’t get forwarded status as this isn’t known to MDaemon.
Extremely interesting information that I could not find anywhere else, thanks Dave! One question, do you have an idea what might be the issue if MDaemon stopped writing or reading the flags correctly, with the result that messages stay ‘unread’ forever? The IMAP.MRK is being updated, just the messages are not getting flagged. As this happens only from a specific message onwards, there seems to be a glitch that maybe can be ironed out somehow, anything that “historically” comes to your mind that could be tried in such cases? Many thanks!
One thing that comes to mind, are you using the normal filename format for messages, or did you rename them? While you don’t need to use the standard name, if you exceed the size of the MAX_IMAP_FILENAME 23 field, MDaemon will truncate the filename when it writes flags to IMAP.MRK, and then the next time the folder is scanned, the (untruncated) filename isn’t found and therefore the message gets the UNREAD and UNSEEN flags (and the truncated filename found in IMAP.MRK doesn’t exist as a file on disk, so it’s removed from the IMAP.MRK automatically)
tl;dr: MDaemon forgets flags for messages with filenames longer than 23 characters. MDaemon won’t create these files itself, but if you manipulate the filesystem yourself (for example, to merge folders without filename conflicts), you can create names like this yourself.
If this describes your situation, there are tons of methods/tools to fix it, but I use Bulk Rename Utility for this type of task. It’s a monster to get started with, but you could set “Name (2)” to “XX” and then “Numbering (10)” to mode Suffix to append a sequential number. Just take care to not rename MDaemon’s MD*.MSG files or you’ll wipe the flags for all messages.
Hopefully at least some of that makes sense, if not, let me know?
Hi Dave,
thank you, very interesting insight, but unfortunately, the files and directories are untouched, so do not go beyond this filename’s length limit…. but do you know if there is a limit of how many messages the IMAP:MRK can handle? The mailbox contains approx. 500k messages…I don’t know if any hard limit, but 500K is a lot (especially at the NTFS level), it wouldn’t surprise me if there is some point where it breaks.
You could test by copying the MSG files to a temporary account and see if you can reproduce it, if so, delete 100K of messages that do work and see if you suddenly gain the ability to set flags.
Stupid question, but just to make sure, can you star or mark an older message and does it stick?
I tried to move 200k messages out of the folder, but this unfortunately didn’t solve it – they are still not being flagged. And I tried to mark/star an older message from times where flagging still worked, and it also isn’t being flagged now. But, such older messages/flags are still showing correctly eg. as SEEN, they just cannot be changed anymore to eg. ANSWERED. The weird thing is, that new messages are constantly being added to the imap.mrk as they come in, but only flagging isn’t working (I was wondering about this initially as I was assuming NTFS permissions might had broken down at some point) …
I’m at a bit of a loss. It wouldn’t be hard to set up a test account with 500K messages to see if I can reproduce. Want me to give it a try, or did you find a workaround/solution?
What is the .MRK file type?
Primarily, the .mrk filename extension is associated with the Pro/Engineer Markup File (.mrk) file type and format used in the scope of Pro/Engineer, a highly complex and powerful parametric CAD system from PTC. In Pro/Engineer, a markup is a transparent layer of arbitrary text and/or shapes applied as an overlay to a part or assembly drawing. Saved separately as .mrk files, markups are used for comments, correction requests, and other meta-information that can be shown together with a Pro/Engineer object without changing it.
MDaemon Messaging Server, a commercial mail server from Alt-N Technologies, uses the .mrk extension for its account and mailbox folder configuration files. MDaemon uses several types of .mrk files, each of which stores vital settings for proper mail processing and storage. For instance, every MDaemon e-mail account (an ".IMAP" directory) must have its main account configuration file ("HIWATER.mrk"). Mailbox folder, address book, calendar, and search settings are controlled by their respective .mrk files, too. All such .mrk files are service files and are not meant to be directly opened by the user.
Standing for the MARC Text File (.mrk) file type/format, the .mrk extension also relates to MarcEdit, a freeware Microsoft Windows tool written by Terry Reese to manipulate MARC (Machine Readable Cataloging) library records. The .mrk file contains a human-readable representation of a MARC (.mrc) record file. Such MRK files are produced by 'breaking' MARC files using the MarcBreaker tool and can be directly viewed and edited in MarcEdit. Upon editing, each .mrk file must be translated into the raw MARC format using MarcMaker.
In Wavelab, a powerful professional-level waveform sound editor from Steinberg Media Technologies GmbH, the .mrk filename suffix is attached to marker files. A marker file (.mrk) is a temporary service file automatically created and updated by Wavelab for each waveform with user-inserted marks to save their positions. As such marker files (.mrk) tend to accumulate and clutter the project's directory, the latest Wavelab versions introduced an option to disable their creation.
Apart from that, the .mrk extension acts as a designation of the Printer Marks Definition (PMD) files in Adobe InDesign, a major commercial desktop publishing software from Adobe Systems. A PMD file (.mrk) is a regular text file with a complex structured description of printer marks, their positions, and other relevant settings. Editable with a text editor, such files are placed into the "Program Files\Common Files\Adobe\PrintSpt" directory (Microsoft Windows), adding new entries in the Marks and Bleed panel.
CMS-MARK-WIN, Phoenix Contact's labeling software for industrial applications (Microsoft Windows), uses the .mrk extension for its markings files. A markings file (.mrk) contains a set of inscriptions and/or legend symbols arranged after a template, to be printed on cables, prefabricated label inserts, etc. made of different materials. CMS-MARK-WIN registers the .mrk file type and sets up its own association for it. Several sample markings files are included with the software (e.g., "Tutorial1.mrk").
The .mrk extension is also related to Brava! Enterprise, a commercial ECM (Enterprise Content Management) and collaboration software from OpenText Corp. Here, the .mrk file is a markup file that contains users' comments or redactions against a document served with Brava! Enterprise. Saved in the server's "Markups" directory, such markup files can be displayed with the document or permanently applied to it (burned in).
Additionally, the .mrk extension marks the DPOF (Digital Print Order Format) text-based control files created by digital cameras. Modified through the camera's menu and saved on its memory card to be taken to a print shop, such files, namely "AUTPRINT.mrk" (auto-print file) and "AUTXFER.mrk" (auto-transfer file), define various print order parameters, including images to be printed, number of copies, orientation, paper size, etc.
У вас есть проблема с открытием .MRK-файлов? Мы собираем информацию о файловых форматах и можем рассказать для чего нужны файлы MRK. Дополнительно мы рекомендуем программы, которые больше всего подходят для открытия или конвертирования таких файлов.
Читайте также: