Filename safe characters

Hello everyone,
I am aware this isn't a Swing question, this forum just has a good turn around time!
Anyhow, I was just wondering if anyone knew of a website that has some definitive rules on OS independent safe filenames?
Thanks,
Muel.

if you stick with:
a-z A-Z 0-9 _ .   you can't go wrong. I think most can handle &...
Windows definitly doesn't like:
\ / : * ? " < > |

Similar Messages

  • Language:  Filename with characters for arabic turns question mark

    Language: Filename with characters for arabic turns question mark
    OS: Solaris 9
    Machine: Sun-Fire 25K
    There is an adobe distiller software that is configured and a java apps. There are postscript files that are being converted to .pdf format using the adobe distiller. Using the GUI (using the Exceed; for remote access), when they use GUI to convert the postscripts to pdf files, the long filenames have the corresponding characters for arabic reading purpose. This is OK.
    When we use the windows RUN to telnet the server and convert the postscripts to pdf, it gives a question marks characters in the filenames ( this; is a sample; filename; ?? ??? ??; right.pdf )
    We are not sure now if we have to add a package of arabic or a patch to resolve this problem.
    Message was edited by:
    yurioira32
    Message was edited by:
    yurioira32

    Solution found, I'll post the work around to those who might encounter the same problem.
    Somewhere in the layers of technology (webwork or weblogic I'd guess), the servlet response is encoded into UTF-8 regardless. The encoding in the database was ISO-8859-1. Sending ISO encoded bytes by UTF-8 caused the conflicting character codes (anything above 127) to show up as undefined.
    The fix is to decode the input byte array into ISO-8859 string, then encode that string into UTF-8, which can be send by Weblogic.
    isoConvert = new String(buf, "ISO-8859-1");
    out.write(isoConvert.getBytes("UTF-8"), 0, isoConvert.getBytes("UTF-8").length);

  • Reading filenames with characters other than a-z

    Hi!
    My problem is that I'm writing very simple integration that only transfers files around. Problem is that some directories and filenames have for example scandinavien characters.
    Examples:
    D:\lähtevä\lähtö.xml
    Problem is that when I read files/directories via following code while in the D:\lähtevä folder:
    File dir = new File(fname);
    String[] chld = dir.list();
    if(chld == null){
    System.out.println("Specified directory does not exist or is not a directory.");
    System.exit(0);
    }else{
    for(int i = 0; i < chld.length; i++){
    String fileName = chld;
    System.out.println(fileName);
    variable "fname" would be "." given from command line when application starts up.
    Result is that all "ä" letters become "&#931;" characters. Other scandinavian letters are also messed up. I'm running on windows machine.
    What is the correct way to read filenames so that their country-specific characters are not messed up?

    Will this small test run correctly on your machine?
    public class ReadingFilesWithNonASCIINames {
        public static void main(String[] args) {
            String dirPath = "E:/lähtevä";
            String fName = "lähtö.txt";
            File directory = new File(dirPath);
            assert directory.exists();
            File file = new File(directory, fName);
            assert file.exists();
            //Now try to read it
            try {
                FileReader reader = new FileReader(file);
                int c;
                while((c = reader.read()) != -1) {
                    System.out.print((char)c);
            } catch (IOException e) {
                e.printStackTrace();
    }Compile it and run it with -ea flag. On my machine it ran without any problems (Windows XP, BE/fr locale, default encoding for files: System default -- windows-1252)

  • ITunes music file with filename 255 characters will not download

    Hi all,
    I recently purchased an album from the iTunes store where by a single track fails to download and produces the error as follows:
       There was a problem downloading
       “Here Comes the Sun / A Symphony of British Music: Music For the Closing Ceremony of the London
       2012 Olympic Games / Urban Voices Collective, Pete Lockett, Rahda Meta, Prabhat Rao, Varun Verma,
       Toby Pitman, David Arnold, Bilwal Iyer, Eos Chater, Tania Dav".
       An unknown error occured (-50).
    Things to note:
    + All other tracks downloaded perfectly
    + I have been able to download other albums/tracks before and after with no problem
    + Looking at the filename, it seems to be >255 characters so wondered if this is the problem.
    + I can download the file via the cloud to my iPad, but for some reason via my Mac it wont work.
    + It's worth pointing out that My iTunes library is located on a Synology 212+ NAS drive.
    + I have an itunes library of over 78G of tunes, movies and apps from the store that all work fine
      on there apart from this one music file - again the file length stands out.
    + every time I download something new ,it keeps erroring with the same message as iTunes tries to re-download the file
      so its essentially stuck. same with check for downloads etc, the file remains stuck and errors the same.
    Are there any known issues with hosting your itunes library on a NAS drive?
    Again, the only thing that stands out about this file is the file length and its the only track I have had a problem with.
    Is there any workaround I could try i.e. some how copying the file from iPad manually over to iTunes library (truncating the name), will this remove the stuck file from my download queue?
    In the meantime this file is essentially stuck in my iTunes (Mac) download queue and I am missing a track from the album.
    Many thanks for any help offered!

    err = -50 when downloading from store - https://discussions.apple.com/thread/3697501 - delete incomplete downloads from downloads folder as per http://support.apple.com/kb/TS3297
    iTunes Store: "Error (-50)" when downloading purchased content - http://support.apple.com/kb/TS1583

  • Compiling for Android does not accept filenames with characteres ã, é, ç, etc.

    I'm trying to compile an Android application, but when i try so, i receive a messagem:
    Error occurred while packaging the application:
    Asset file or directory name contains invalid characters. Error occurred for : aplicação.png
    it does not allow characters like ç ã é á, etc.
    Is that an Android limitation or some Flex configuration i must change?
    Thanks.

    Thanks a lot for the help, etresoft. I just finished this project and I am going to explain how I did it, for the others that might need this information.
    To be true, one doesn't need to escape the characters, unless it's impossible to send 8-bit-encoded text to the printer. At this day and age, this should not be a problem on any platform. Zebra printers accept CP850 and CP1250. I chose to use CP850, also known as "DOS Latin 1".
    My ZPL code is stored in a NSString. I create a temporary file from this NSString and then use PMPrinterPrintWithFile to send it to the printer as a raw print job.
    To create the file, one can simply use +NSString writeToFile:atomically:encoding:error:+ and pass CFStringConvertEncodingToNSStringEncoding(kCFStringEncodingDOSLatin1) as the encoding.
    It just works, beautifully.
    Message was edited by: fdonadio (fixed a typo)
    Message was edited by: fdonadio

  • Bash script to trim all filenames with special characters recursively?

    Hi,
    I have a 30 GB directory full of data I recovered from a friend's laptop after her Windows XP crashed. I'd like to burn that data, but I can't, because many of the filenames contain weird characters (spaces, accents, things even worse that my XTerm displays as inverted question marks). So, mkisofs exits with an error.
    I'd like to clean that mess up, but it would take months to do that manually. Well, I only know a very little Bash, but I think this problem is already too heavy for my modest knowledge. Here's the problem:
    - check the contents of directory ~/backup recursively
    - find files whose filenames contain characters other than [A-Za-z0-9] and then maybe "-" and "_" and ".".
    - replace these characters either by an "_" or just erase them
    Now how would I translate that into a little Bash script?
    Cheers...

    Heyyyyy... nice idea

  • Applescript: filenames from folder to append to csv

    For my bookkeeping I need to scan and store my receipts as a PDF file, but transfer some information (like amount and category) to an Numbers (Excel)-sheet as well. I'm using TextExpender to include al information needed for the Numberssheet inside the filename, which looks something like this:
    UIT4,20130401,23,categoryA,.pdf
    I want to transfer all the pdf-filenames in the folder to append to a csv file, so I get:
    test.csv
    UIT4,201304001,23,categoryA
    UIT5,201305002,25,categoryB
    UIT2,201306001,22,categoryA
    etc.
    I can import the csv in Numbers and all is well.
    My question for you is how can I use applescript to get all the pdf-filenames in a folder to append to a csv-file?
    I've tried this modified script by Pierre L, but I get a error regarding the ending of the file??
    set theFolder to choose folder
    set theTextFile to POSIX file "/Users/user_name/Desktop/test.csv" -- for example
    set theText to read theTextFile
    tell application "Finder"
        set theFileNames to name of files of theFolder whose name extension is "pdf"
        repeat with thisName in theFileNames
            try
                set xx to (text 1 through 2 of thisName) as integer
                set theNewFileName to paragraph (xx + 1) of theText
                if character 3 of thisName is "-" then
                    set theNewFileName to theNewFileName & character 4 of thisName
                end if
                set name of file thisName of theFolder to theNewFileName & ".pdf"
            end try
        end repeat
    end tell
    If you'd like to help out, that would be great!

    Or perhaps you could write the replacement for "_" into ";" in the Applescript itself.
    That's pretty easy using AppleScript - that way you could leave the file names intact and just change them before writing the data to the file. There are several ways of doing this and, unless you really want, I won't delve deep into the process of using text item delimiters, but an example script is below.
    - the script lets me choose a folder in a dialog box, is it also possible to direct it to a pre-specified folder?
    Of course. The first line is the one that triggers the Choose Folder dialog:
    set theFolder to (choose folder)
    You can just change this to any folder on disk by providing its path:
    set theFolder to "Macintosh HD:Users:username:Desktop:My folder"
    and making sure you tell the Finder that this represents a folder path:
              set theFiles to every file of folder theFolder whose name extension is "pdf"
    (note the addition of the 'folder' keyword.
    - is it possible to let the script create a new CSV-file named OUT4_[current date].csv?
    Yes, but....
    The third line in the script creates the output file.
              set csvFile to open for access (file ((path to desktop as text) & "my.csv")) with write permission
    You can call it whatever you like - replace 'my.csv' with the desired file name. Just be careful in putting formatted dates into filenames since characters like the '/' in '11/24/2013' will be confusing since the / is used as a directory delimiter ('11/24/2013' would normally indicate the file called '2013' inside the '24' folder that is inside the '11' folder). Date formatting in AppleScript can be tricky, but its certainly do-able. How do you want it formatted?
    Revised script that incorporates replacing underscores with commas:
    set theFolder to "Macintosh HD:Users:you:Desktop:Some folder"
    tell application "Finder"
              set csvFile to open for access (file ((path to desktop as text) & "my.csv")) with write permission
      set eof csvFile to 0 -- remove this line to append data
              set theFiles to every file of folder theFolder whose name extension is "pdf"
              repeat with eachFile in theFiles
                        set fn to name of eachFile
                        set csvData to my replaceChars(fn, "_", ",")
      write (csvData & return) as text to csvFile
              end repeat
      close access csvFile
    end tell
    on replaceChars(inputFileName, oldChar, newChar)
              set {tid, my text item delimiters} to {my text item delimiters, oldChar}
              set newfilename to text items of inputFileName
              set my text item delimiters to newChar
              set newfilename to newfilename as text
              set my text item delimiters to tid
              return newfilename
    end replaceChars

  • Hyperlinks don't activate in the PDF file

    Hello all:
    I'm working with Pages (v. 1.0.2) and cannot get the text hyperlinks (going to URLs) to work. They work in the Pages app. But when I Print > PDF > Compress PDF, the created file has blue underlined text all right, but when I hover over these links, the cursor doesn't change to a hand that activates the hyperlink(s). Incidentally, although text hyperlinks aren't active on these PDFs, one email hyperlink I've set up on that same PDF DOES work. Go figure!
    What might I do to activate every text hyperlink? (If valuable, is there a way to attach the PDF on this Apple Discussion forum for testing purposes?)
    T, ia.
    Warren
    PowerBook G4   Mac OS X (10.4.9)  

    {quote:title=tmboone wrote:}Here's a snippet of what it's adding "Boones%2527%2520News" It should just read "Boones%27%20News"{quote}
    The numbers with % marks get inserted when you use non-"web-safe" characters in your hyperlink. Web addresses are generally best if they only have letters, numbers, forward slashes, and simple punctuation (e.g., - or _). If a URL has a space in it, that is generally converted to %20 (this is known as "escaping"). A single quote would be converted to %27. An actual percent sign would be shown as %25 in a URL. (You can see the codes by looking in the hex column of the table at http://www.asciitable.com/ ).
    I think what is happening in your case is that you are beginning with a legitimate with URL with %20 and %27 codes in it. But then somewhere in the process it gets "escaped" again, and the % marks each get converted to %25. Sounds like a bug somewhere between Pages and the PDF writer -- the text is getting escaped twice, and the second time shouldn't happen. You might want to report this to Apple as a bug.
    In the mean time, you can make prettier and more reliable URLs by avoiding those weird characters entirely. For example, you could stick in underscores (_) instead of the spaces and single quotes in your original filename, and then it will sail through with no trouble.

  • Pass Finder reference between Automator and Applescript

    Hi - This is doing my head in !
    I have an Automator script that encrypts a PDF and then runs an AppleScript within the Automator workflow that does a rename on the resultant encrypted PDF. The result of this workflow is a filename I need within another calling Applescript.
    So in the Automator workflow I have the following code:
    set the new_item to (move item target_name of the temp_folder to container of the source_item)
    end tell
    return new_item as alias
    When I view the response in the calling Applescript I see this:
    "{alias "Macintosh HD:Support:test-28 (encrypted).pdf"}"
    How do I consume this in my Applescript ?? I need to get it into a POSIX format or something I can use.
    This is my test Applescript:
    http://bit.ly/fQ3s1i
    This is the Applescript within the Automator workflow:
    on run {input, parameters}
    set the result_item to item 1 of input
    set the source_item to item 2 of input
    set the target_item to result_item
    tell application "Finder"
    set the temp_folder to the container of the target_item
    copy my derivefilename(sourceitem, "pdf", "-", "") to {target_name, target_HFSpath}
    set the name of the target_item to target_name
    set the new_item to (move item target_name of the temp_folder to container of the source_item)
    end tell
    return new_item as alias
    end run
    on derivefilename(thisitem, new_extension, increment_separator, target_folder)
    -- A sub-routine used for deriving the name and path of a new file using the name of an existing file
    -- Pass in file ref in alias format, the new name extension, an increment separator, and any target directory (in alias format)
    -- Name and HFS path for new file are returned. The name is incremented if a file exists in the target location.
    -- Pass a null string for the target directory to use the item's parent directory
    -- Pass a null string for the new name extension to use the item's current name extension
    tell application "Finder"
    if target_folder is "" then
    set the target_folder to the container of this_item
    end if
    set the file_name to the name of this_item
    set file_extension to the name extension of this_item
    if the file_extension is "" then
    set the trimmed_name to the file_name
    set extension_separator to " (encrypted)"
    else
    set the trimmed_name to text 1 thru -((length of file_extension) + 2) of the file_name
    set extension_separator to " (encrypted)."
    end if
    if the new_extension is "" then
    set target_name to file_name
    set target_extension to file_extension
    else
    set target_extension to new_extension
    set target_name to (the trimmed_name & extension_separator & target_extension) as Unicode text
    end if
    if (exists document file target_name of target_folder) then
    set the name_increment to 1
    repeat
    set the new_name to (the trimmed_name & increment_separator & (name_increment as Unicode text) & extension_separator & target_extension) as Unicode text
    if not (exists document file new_name of the target_folder) then
    set the target_HFSpath to ((target_folder as Unicode text) & new_name)
    return {new_name, target_HFSpath}
    else
    set the name_increment to the name_increment + 1
    end if
    end repeat
    else
    set the target_HFSpath to ((target_folder as Unicode text) & target_name)
    return {target_name, target_HFSpath}
    end if
    end tell
    end derive_filename
    This is the workflow - I use Automator because I need that Encrypt PDF action, I can't find any other way of doing it:
    http://bit.ly/fzhbyU
    Can anyone help ??
    Message was edited by: brantwinter

    It's not entirely clear what your issue is.
    It sounds like your first script is returning:
    "{alias \"Macintosh HD:Support:test-28 (encrypted).pdf\"}"
    which is pretty easy to follow... you have a list containing one item, and that item is an alias (pointer to a file).
    What's probably confusing you is the fact that you have a list, but that's because Automator always passes lists as the parameters, so the first thing to do is extract the alias from the list:
    set my_file to item 1 of input
    which will result in:
    alias "Macintosh HD:Support:test-28 (encrypted).pdf"
    so now you have a working file reference. If you want the POSIX form of that path, just ask for it:
    set posix_path to quoted form of POSIX path of my_file
    --> '/Support/test-28 (encrypted).pdf'
    (note that I used 'quoted form of' since you have spaces (and, potentially, other non-shell safe characters) in the path.)

  • RoundCube Webmail Authenticating against Open Directory on Mountain Lion 10.8.x

    Hello all,
    I've been battling this issue for over a month with no success. Here is what we got:
    Mac Mini Server running Mountain Lion Server 10.8.2 running Calendar, Contacts, Mail and Web services.
    With there being no webmail present I've gone thru the process of installing RoundCube.
    I'm using Postgres as the database.
    When I test the ability to login I get the following error messages in the console.app
    10/12/12 10:13:27.071 AM log[182]: auth: Error: od(andrew,::1): Authentication server failed to complete the requested operation.
    10/12/12 10:13:27.071 AM log[182]: auth: Error: od(andrew,::1): authentication failed for user=andrew, method=DIGEST-MD5
    The first line I find the most interesting but have had no success determinign exactly what it means.
    I'm using open directory to authenticate and it is working perfectly with every other service so I'm led to believe it's an issue between RoundCube and Open Directory.
    ANY help would be appreciated emmensely!

    Sorry about taking so long to get back on here working on this. I've switched over to MySQL. I had a hard time because mysql.sock was located under /tmp/ rather than /var/mysql/ but I fixed that by using the following command:
    sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock
    Then I reinstalled roundcube. Here is my main.inc.php file:
    <?php
    +-----------------------------------------------------------------------+
    | Main configuration file                                               |
    |                                                                       |
    | This file is part of the Roundcube Webmail client                     |
    | Copyright (C) 2005-2011, The Roundcube Dev Team                       |
    |                                                                       |
    | Licensed under the GNU General Public License version 3 or            |
    | any later version with exceptions for skins & plugins.                |
    | See the README file for a full license statement.                     |
    |                                                                       |
    +-----------------------------------------------------------------------+
    $rcmail_config = array();
    // LOGGING/DEBUGGING
    // system error reporting: 1 = log; 2 = report (not implemented yet), 4 = show, 8 = trace
    $rcmail_config['debug_level'] = 1;
    // log driver:  'syslog' or 'file'.
    $rcmail_config['log_driver'] = 'file';
    // date format for log entries
    // (read http://php.net/manual/en/function.date.php for all format characters) 
    $rcmail_config['log_date_format'] = 'd-M-Y H:i:s O';
    // Syslog ident string to use, if using the 'syslog' log driver.
    $rcmail_config['syslog_id'] = 'roundcube';
    // Syslog facility to use, if using the 'syslog' log driver.
    // For possible values see installer or http://php.net/manual/en/function.openlog.php
    $rcmail_config['syslog_facility'] = LOG_USER;
    // Log sent messages to <log_dir>/sendmail or to syslog
    $rcmail_config['smtp_log'] = true;
    // Log successful logins to <log_dir>/userlogins or to syslog
    $rcmail_config['log_logins'] = false;
    // Log session authentication errors to <log_dir>/session or to syslog
    $rcmail_config['log_session'] = false;
    // Log SQL queries to <log_dir>/sql or to syslog
    $rcmail_config['sql_debug'] = false;
    // Log IMAP conversation to <log_dir>/imap or to syslog
    $rcmail_config['imap_debug'] = false;
    // Log LDAP conversation to <log_dir>/ldap or to syslog
    $rcmail_config['ldap_debug'] = false;
    // Log SMTP conversation to <log_dir>/smtp or to syslog
    $rcmail_config['smtp_debug'] = false;
    // IMAP
    // the mail host chosen to perform the log-in
    // leave blank to show a textbox at login, give a list of hosts
    // to display a pulldown menu or set one host as string.
    // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
    // Supported replacement variables:
    // %n - http hostname ($_SERVER['SERVER_NAME'])
    // %d - domain (http hostname without the first part)
    // %s - domain name after the '@' from e-mail address provided at login screen
    // For example %n = mail.domain.tld, %d = domain.tld
    $rcmail_config['default_host'] = 'localhost';
    // TCP port used for IMAP connections
    $rcmail_config['default_port'] = 143;
    // IMAP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
    // best server supported one)
    $rcmail_config['imap_auth_type'] = null;
    // If you know your imap's folder delimiter, you can specify it here.
    // Otherwise it will be determined automatically
    $rcmail_config['imap_delimiter'] = null;
    // If IMAP server doesn't support NAMESPACE extension, but you're
    // using shared folders or personal root folder is non-empty, you'll need to
    // set these options. All can be strings or arrays of strings.
    // Folders need to be ended with directory separator, e.g. "INBOX."
    // (special directory "~" is an exception to this rule)
    // These can be used also to overwrite server's namespaces
    $rcmail_config['imap_ns_personal'] = null;
    $rcmail_config['imap_ns_other']    = null;
    $rcmail_config['imap_ns_shared']   = null;
    // By default IMAP capabilities are readed after connection to IMAP server
    // In some cases, e.g. when using IMAP proxy, there's a need to refresh the list
    // after login. Set to True if you've got this case.
    $rcmail_config['imap_force_caps'] = false;
    // By default list of subscribed folders is determined using LIST-EXTENDED
    // extension if available. Some servers (dovecot 1.x) returns wrong results
    // for shared namespaces in this case. http://trac.roundcube.net/ticket/1486225
    // Enable this option to force LSUB command usage instead.
    $rcmail_config['imap_force_lsub'] = false;
    // Some server configurations (e.g. Courier) doesn't list folders in all namespaces
    // Enable this option to force listing of folders in all namespaces
    $rcmail_config['imap_force_ns'] = false;
    // IMAP connection timeout, in seconds. Default: 0 (no limit)
    $rcmail_config['imap_timeout'] = 0;
    // Optional IMAP authentication identifier to be used as authorization proxy
    $rcmail_config['imap_auth_cid'] = null;
    // Optional IMAP authentication password to be used for imap_auth_cid
    $rcmail_config['imap_auth_pw'] = null;
    // Type of IMAP indexes cache. Supported values: 'db', 'apc' and 'memcache'.
    $rcmail_config['imap_cache'] = null;
    // Enables messages cache. Only 'db' cache is supported.
    $rcmail_config['messages_cache'] = false;
    // SMTP
    // SMTP server host (for sending mails).
    // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://
    // If left blank, the PHP mail() function is used
    // Supported replacement variables:
    // %h - user's IMAP hostname
    // %n - http hostname ($_SERVER['SERVER_NAME'])
    // %d - domain (http hostname without the first part)
    // %z - IMAP domain (IMAP hostname without the first part)
    // For example %n = mail.domain.tld, %d = domain.tld
    $rcmail_config['smtp_server'] = 'localhost';
    // SMTP port (default is 25; use 587 for STARTTLS or 465 for the
    // deprecated SSL over SMTP (aka SMTPS))
    $rcmail_config['smtp_port'] = 25;
    // SMTP username (if required) if you use %u as the username Roundcube
    // will use the current username for login
    $rcmail_config['smtp_user'] = '';
    // SMTP password (if required) if you use %p as the password Roundcube
    // will use the current user's password for login
    $rcmail_config['smtp_pass'] = '';
    // SMTP AUTH type (DIGEST-MD5, CRAM-MD5, LOGIN, PLAIN or empty to use
    // best server supported one)
    $rcmail_config['smtp_auth_type'] = '';
    // Optional SMTP authentication identifier to be used as authorization proxy
    $rcmail_config['smtp_auth_cid'] = null;
    // Optional SMTP authentication password to be used for smtp_auth_cid
    $rcmail_config['smtp_auth_pw'] = null;
    // SMTP HELO host
    // Hostname to give to the remote server for SMTP 'HELO' or 'EHLO' messages
    // Leave this blank and you will get the server variable 'server_name' or
    // localhost if that isn't defined.
    $rcmail_config['smtp_helo_host'] = '';
    // SMTP connection timeout, in seconds. Default: 0 (no limit)
    $rcmail_config['smtp_timeout'] = 0;
    // SYSTEM
    // THIS OPTION WILL ALLOW THE INSTALLER TO RUN AND CAN EXPOSE SENSITIVE CONFIG DATA.
    // ONLY ENABLE IT IF YOU'RE REALLY SURE WHAT YOU'RE DOING!
    $rcmail_config['enable_installer'] = false;
    // provide an URL where a user can get support for this Roundcube installation
    // PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!
    $rcmail_config['support_url'] = 'http://www.crawfordworks.ca/contact';
    // replace Roundcube logo with this image
    // specify an URL relative to the document root of this Roundcube installation
    $rcmail_config['skin_logo'] = null;
    // automatically create a new Roundcube user when log-in the first time.
    // a new user will be created once the IMAP login succeeds.
    // set to false if only registered users can use this service
    $rcmail_config['auto_create_user'] = true;
    // use this folder to store log files (must be writeable for apache user)
    // This is used by the 'file' log driver.
    $rcmail_config['log_dir'] = 'logs/';
    // use this folder to store temp files (must be writeable for apache user)
    $rcmail_config['temp_dir'] = 'temp/';
    // lifetime of message cache
    // possible units: s, m, h, d, w
    $rcmail_config['message_cache_lifetime'] = '10d';
    // enforce connections over https
    // with this option enabled, all non-secure connections will be redirected.
    // set the port for the ssl connection as value of this option if it differs from the default 443
    $rcmail_config['force_https'] = false;
    // tell PHP that it should work as under secure connection
    // even if it doesn't recognize it as secure ($_SERVER['HTTPS'] is not set)
    // e.g. when you're running Roundcube behind a https proxy
    // this option is mutually exclusive to 'force_https' and only either one of them should be set to true.
    $rcmail_config['use_https'] = false;
    // Allow browser-autocompletion on login form.
    // 0 - disabled, 1 - username and host only, 2 - username, host, password
    $rcmail_config['login_autocomplete'] = 0;
    // Forces conversion of logins to lower case.
    // 0 - disabled, 1 - only domain part, 2 - domain and local part.
    // If users authentication is not case-sensitive this must be enabled.
    // After enabling it all user records need to be updated, e.g. with query:
    // UPDATE users SET username = LOWER(username);
    $rcmail_config['login_lc'] = 0;
    // Includes should be interpreted as PHP files
    $rcmail_config['skin_include_php'] = false;
    // display software version on login screen
    $rcmail_config['display_version'] = false;
    // Session lifetime in minutes
    // must be greater than 'keep_alive'/60
    $rcmail_config['session_lifetime'] = 10;
    // session domain: .example.org
    $rcmail_config['session_domain'] = '';
    // session name. Default: 'roundcube_sessid'
    $rcmail_config['session_name'] = null;
    // Backend to use for session storage. Can either be 'db' (default) or 'memcache'
    // If set to memcache, a list of servers need to be specified in 'memcache_hosts'
    // Make sure the Memcache extension (http://pecl.php.net/package/memcache) version >= 2.0.0 is installed
    $rcmail_config['session_storage'] = 'db';
    // Use these hosts for accessing memcached
    // Define any number of hosts in the form of hostname:port or unix:///path/to/sock.file
    $rcmail_config['memcache_hosts'] = null; // e.g. array( 'localhost:11211', '192.168.1.12:11211', 'unix:///var/tmp/memcached.sock' );
    // check client IP in session athorization
    $rcmail_config['ip_check'] = false;
    // check referer of incoming requests
    $rcmail_config['referer_check'] = false;
    // X-Frame-Options HTTP header value sent to prevent from Clickjacking.
    // Possible values: sameorigin|deny. Set to false in order to disable sending them
    $rcmail_config['x_frame_options'] = 'sameorigin';
    // this key is used to encrypt the users imap password which is stored
    // in the session record (and the client cookie if remember password is enabled).
    // please provide a string of exactly 24 chars.
    $rcmail_config['des_key'] = 'Qw4jLYQK+MyNLPIRmON7Lq+Z';
    // Automatically add this domain to user names for login
    // Only for IMAP servers that require full e-mail addresses for login
    // Specify an array with 'host' => 'domain' values to support multiple hosts
    // Supported replacement variables:
    // %h - user's IMAP hostname
    // %n - http hostname ($_SERVER['SERVER_NAME'])
    // %d - domain (http hostname without the first part)
    // %z - IMAP domain (IMAP hostname without the first part)
    // For example %n = mail.domain.tld, %d = domain.tld
    $rcmail_config['username_domain'] = '';
    // This domain will be used to form e-mail addresses of new users
    // Specify an array with 'host' => 'domain' values to support multiple hosts
    // Supported replacement variables:
    // %h - user's IMAP hostname
    // %n - http hostname ($_SERVER['SERVER_NAME'])
    // %d - domain (http hostname without the first part)
    // %z - IMAP domain (IMAP hostname without the first part)
    // For example %n = mail.domain.tld, %d = domain.tld
    $rcmail_config['mail_domain'] = '';
    // Password charset.
    // Use it if your authentication backend doesn't support UTF-8.
    // Defaults to ISO-8859-1 for backward compatibility
    $rcmail_config['password_charset'] = 'ISO-8859-1';
    // How many seconds must pass between emails sent by a user
    $rcmail_config['sendmail_delay'] = 0;
    // Maximum number of recipients per message. Default: 0 (no limit)
    $rcmail_config['max_recipients'] = 0;
    // Maximum allowednumber of members of an address group. Default: 0 (no limit)
    // If 'max_recipients' is set this value should be less or equal
    $rcmail_config['max_group_members'] = 0;
    // add this user-agent to message headers when sending
    $rcmail_config['useragent'] = 'Roundcube Webmail/'.RCMAIL_VERSION;
    // use this name to compose page titles
    $rcmail_config['product_name'] = 'Tri Innovations Webmail';
    // try to load host-specific configuration
    // see http://trac.roundcube.net/wiki/Howto_Config for more details
    $rcmail_config['include_host_config'] = false;
    // path to a text file which will be added to each sent message
    // paths are relative to the Roundcube root folder
    $rcmail_config['generic_message_footer'] = '';
    // path to a text file which will be added to each sent HTML message
    // paths are relative to the Roundcube root folder
    $rcmail_config['generic_message_footer_html'] = '';
    // add a received header to outgoing mails containing the creators IP and hostname
    $rcmail_config['http_received_header'] = false;
    // Whether or not to encrypt the IP address and the host name
    // these could, in some circles, be considered as sensitive information;
    // however, for the administrator, these could be invaluable help
    // when tracking down issues.
    $rcmail_config['http_received_header_encrypt'] = false;
    // This string is used as a delimiter for message headers when sending
    // a message via mail() function. Leave empty for auto-detection
    $rcmail_config['mail_header_delimiter'] = NULL;
    // number of chars allowed for line when wrapping text.
    // text wrapping is done when composing/sending messages
    $rcmail_config['line_length'] = 72;
    // send plaintext messages as format=flowed
    $rcmail_config['send_format_flowed'] = true;
    // don't allow these settings to be overriden by the user
    $rcmail_config['dont_override'] = array();
    // Set identities access level:
    // 0 - many identities with possibility to edit all params
    // 1 - many identities with possibility to edit all params but not email address
    // 2 - one identity with possibility to edit all params
    // 3 - one identity with possibility to edit all params but not email address
    $rcmail_config['identities_level'] = 0;
    // Mimetypes supported by the browser.
    // attachments of these types will open in a preview window
    // either a comma-separated list or an array: 'text/plain,text/html,text/xml,image/jpeg,image/gif,image/png,application/pdf'
    $rcmail_config['client_mimetypes'] = null;  # null == default
    // mime magic database
    $rcmail_config['mime_magic'] = '/usr/share/misc/magic';
    // path to imagemagick identify binary
    $rcmail_config['im_identify_path'] = null;
    // path to imagemagick convert binary
    $rcmail_config['im_convert_path'] = null;
    // maximum size of uploaded contact photos in pixel
    $rcmail_config['contact_photo_size'] = 160;
    // Enable DNS checking for e-mail address validation
    $rcmail_config['email_dns_check'] = false;
    // PLUGINS
    // List of active plugins (in plugins/ directory)
    $rcmail_config['plugins'] = array();
    // USER INTERFACE
    // default messages sort column. Use empty value for default server's sorting,
    // or 'arrival', 'date', 'subject', 'from', 'to', 'fromto', 'size', 'cc'
    $rcmail_config['message_sort_col'] = '';
    // default messages sort order
    $rcmail_config['message_sort_order'] = 'DESC';
    // These cols are shown in the message list. Available cols are:
    // subject, from, to, fromto, cc, replyto, date, size, status, flag, attachment, 'priority'
    $rcmail_config['list_cols'] = array('subject', 'status', 'fromto', 'date', 'size', 'flag', 'attachment');
    // the default locale setting (leave empty for auto-detection)
    // RFC1766 formatted language name like en_US, de_DE, de_CH, fr_FR, pt_BR
    $rcmail_config['language'] = null;
    // use this format for date display (date or strftime format)
    $rcmail_config['date_format'] = 'Y-m-d';
    // give this choice of date formats to the user to select from
    $rcmail_config['date_formats'] = array('Y-m-d', 'd-m-Y', 'Y/m/d', 'm/d/Y', 'd/m/Y', 'd.m.Y', 'j.n.Y');
    // use this format for time display (date or strftime format)
    $rcmail_config['time_format'] = 'H:i';
    // give this choice of time formats to the user to select from
    $rcmail_config['time_formats'] = array('G:i', 'H:i', 'g:i a', 'h:i A');
    // use this format for short date display (derived from date_format and time_format)
    $rcmail_config['date_short'] = 'D H:i';
    // use this format for detailed date/time formatting (derived from date_format and time_format)
    $rcmail_config['date_long'] = 'Y-m-d H:i';
    // store draft message is this mailbox
    // leave blank if draft messages should not be stored
    // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
    $rcmail_config['drafts_mbox'] = 'Drafts';
    // store spam messages in this mailbox
    // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
    $rcmail_config['junk_mbox'] = 'Junk';
    // store sent message is this mailbox
    // leave blank if sent messages should not be stored
    // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
    $rcmail_config['sent_mbox'] = 'Sent Messages';
    // move messages to this folder when deleting them
    // leave blank if they should be deleted directly
    // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
    $rcmail_config['trash_mbox'] = 'Trash';
    // display these folders separately in the mailbox list.
    // these folders will also be displayed with localized names
    // NOTE: Use folder names with namespace prefix (INBOX. on Courier-IMAP)
    $rcmail_config['default_folders'] = array('INBOX', 'Drafts', 'Sent Messages', 'Junk', 'Trash');
    // automatically create the above listed default folders on first login
    $rcmail_config['create_default_folders'] = false;
    // protect the default folders from renames, deletes, and subscription changes
    $rcmail_config['protect_default_folders'] = true;
    // if in your system 0 quota means no limit set this option to true
    $rcmail_config['quota_zero_as_unlimited'] = false;
    // Make use of the built-in spell checker. It is based on GoogieSpell.
    // Since Google only accepts connections over https your PHP installatation
    // requires to be compiled with Open SSL support
    $rcmail_config['enable_spellcheck'] = true;
    // Enables spellchecker exceptions dictionary.
    // Setting it to 'shared' will make the dictionary shared by all users.
    $rcmail_config['spellcheck_dictionary'] = false;
    // Set the spell checking engine. 'googie' is the default. 'pspell' is also available,
    // but requires the Pspell extensions. When using Nox Spell Server, also set 'googie' here.
    $rcmail_config['spellcheck_engine'] = 'googie';
    // For a locally installed Nox Spell Server, please specify the URI to call it.
    // Get Nox Spell Server from http://orangoo.com/labs/?page_id=72
    // Leave empty to use the Google spell checking service, what means
    // that the message content will be sent to Google in order to check spelling
    $rcmail_config['spellcheck_uri'] = '';
    // These languages can be selected for spell checking.
    // Configure as a PHP style hash array: array('en'=>'English', 'de'=>'Deutsch');
    // Leave empty for default set of available language.
    $rcmail_config['spellcheck_languages'] = NULL;
    // Makes that words with all letters capitalized will be ignored (e.g. GOOGLE)
    $rcmail_config['spellcheck_ignore_caps'] = false;
    // Makes that words with numbers will be ignored (e.g. g00gle)
    $rcmail_config['spellcheck_ignore_nums'] = false;
    // Makes that words with symbols will be ignored (e.g. g@@gle)
    $rcmail_config['spellcheck_ignore_syms'] = false;
    // Use this char/string to separate recipients when composing a new message
    $rcmail_config['recipients_separator'] = ',';
    // don't let users set pagesize to more than this value if set
    $rcmail_config['max_pagesize'] = 200;
    // Minimal value of user's 'keep_alive' setting (in seconds)
    // Must be less than 'session_lifetime'
    $rcmail_config['min_keep_alive'] = 60;
    // Enables files upload indicator. Requires APC installed and enabled apc.rfc1867 option.
    // By default refresh time is set to 1 second. You can set this value to true
    // or any integer value indicating number of seconds.
    $rcmail_config['upload_progress'] = false;
    // Specifies for how many seconds the Undo button will be available
    // after object delete action. Currently used with supporting address book sources.
    // Setting it to 0, disables the feature.
    $rcmail_config['undo_timeout'] = 0;
    // ADDRESSBOOK SETTINGS
    // This indicates which type of address book to use. Possible choises:
    // 'sql' (default) and 'ldap'.
    // If set to 'ldap' then it will look at using the first writable LDAP
    // address book as the primary address book and it will not display the
    // SQL address book in the 'Address Book' view.
    $rcmail_config['address_book_type'] = 'sql';
    // In order to enable public ldap search, configure an array like the Verisign
    // example further below. if you would like to test, simply uncomment the example.
    // Array key must contain only safe characters, ie. a-zA-Z0-9_
    $rcmail_config['ldap_public'] = array();
    // If you are going to use LDAP for individual address books, you will need to
    // set 'user_specific' to true and use the variables to generate the appropriate DNs to access it.
    // The recommended directory structure for LDAP is to store all the address book entries
    // under the users main entry, e.g.:
    //  o=root
    //   ou=people
    //    uid=user@domain
    //  mail=contact@contactdomain
    // So the base_dn would be uid=%fu,ou=people,o=root
    // The bind_dn would be the same as based_dn or some super user login.
    * example config for Verisign directory
    $rcmail_config['ldap_public']['Verisign'] = array(
      'name'          => 'Verisign.com',
      // Replacement variables supported in host names:
      // %h - user's IMAP hostname
      // %n - http hostname ($_SERVER['SERVER_NAME'])
      // %d - domain (http hostname without the first part)
      // %z - IMAP domain (IMAP hostname without the first part)
      // For example %n = mail.domain.tld, %d = domain.tld
      'hosts'         => array('directory.verisign.com'),
      'port'          => 389,
      'use_tls'                => false,
      'ldap_version'  => 3,       // using LDAPv3
      'user_specific' => false,   // If true the base_dn, bind_dn and bind_pass default to the user's IMAP login.
      // %fu - The full username provided, assumes the username is an email
      //       address, uses the username_domain value if not an email address.
      // %u  - The username prior to the '@'.
      // %d  - The domain name after the '@'.
      // %dc - The domain name hierarchal string e.g. "dc=test,dc=domain,dc=com"
      // %dn - DN found by ldap search when search_filter/search_base_dn are used
      'base_dn'       => '',
      'bind_dn'       => '',
      'bind_pass'     => '',
      // It's possible to bind for an individual address book
      // The login name is used to search for the DN to bind with
      'search_base_dn' => '',
      'search_filter'  => '',   // e.g. '(&(objectClass=posixAccount)(uid=%u))'
      // DN and password to bind as before searching for bind DN, if anonymous search is not allowed
      'search_bind_dn' => '',
      'search_bind_pw' => '',
      // Default for %dn variable if search doesn't return DN value
      'search_dn_default' => '',
      // Optional authentication identifier to be used as SASL authorization proxy
      // bind_dn need to be empty
      'auth_cid'       => '',
      // SASL authentication method (for proxy auth), e.g. DIGEST-MD5
      'auth_method'    => '',
      // Indicates if the addressbook shall be hidden from the list.
      // With this option enabled you can still search/view contacts.
      'hidden'        => false,
      // Indicates if the addressbook shall not list contacts but only allows searching.
      'searchonly'    => false,
      // Indicates if we can write to the LDAP directory or not.
      // If writable is true then these fields need to be populated:
      // LDAP_Object_Classes, required_fields, LDAP_rdn
      'writable'       => false,
      // To create a new contact these are the object classes to specify
      // (or any other classes you wish to use).
      'LDAP_Object_Classes' => array('top', 'inetOrgPerson'),
      // The RDN field that is used for new entries, this field needs
      // to be one of the search_fields, the base of base_dn is appended
      // to the RDN to insert into the LDAP directory.
      'LDAP_rdn'       => 'cn',
      // The required fields needed to build a new contact as required by
      // the object classes (can include additional fields not required by the object classes).
      'required_fields' => array('cn', 'sn', 'mail'),
      'search_fields'   => array('mail', 'cn'),  // fields to search in
      // mapping of contact fields to directory attributes
      //   for every attribute one can specify the number of values (limit) allowed.
      //   default is 1, a wildcard * means unlimited
      'fieldmap' => array(
        // Roundcube  => LDAP:limit
        'name'        => 'cn',
        'surname'     => 'sn',
        'firstname'   => 'givenName',
        'title'       => 'title',
        'email'       => 'mail:*',
        'phone:home'  => 'homePhone',
        'phone:work'  => 'telephoneNumber',
        'phone:mobile' => 'mobile',
        'phone:pager' => 'pager',
        'street'      => 'street',
        'zipcode'     => 'postalCode',
        'region'      => 'st',
        'locality'    => 'l',
    // if you uncomment country, you need to modify 'sub_fields' above
    //    'country'     => 'c',
        'department'  => 'departmentNumber',
        'notes'       => 'description',
    // these currently don't work:
    //    'phone:workfax' => 'facsimileTelephoneNumber',
    //    'photo'        => 'jpegPhoto',
    //    'organization' => 'o',
    //    'manager'      => 'manager',
    //    'assistant'    => 'secretary',
      // Map of contact sub-objects (attribute name => objectClass(es)), e.g. 'c' => 'country'
      'sub_fields' => array(),
      'sort'          => 'cn',    // The field to sort the listing by.
      'scope'         => 'sub',   // search mode: sub|base|list
      'filter'        => '(objectClass=inetOrgPerson)',      // used for basic listing (if not empty) and will be &'d with search queries. example: status=act
      'fuzzy_search'  => true,    // server allows wildcard search
      'vlv'           => false,   // Enable Virtual List View to more efficiently fetch paginated data (if server supports it)
      'numsub_filter' => '(objectClass=organizationalUnit)',   // with VLV, we also use numSubOrdinates to query the total number of records. Set this filter to get all numSubOrdinates attributes for counting
      'sizelimit'     => '0',     // Enables you to limit the count of entries fetched. Setting this to 0 means no limit.
      'timelimit'     => '0',     // Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.
      'referrals'     => true|false,  // Sets the LDAP_OPT_REFERRALS option. Mostly used in multi-domain Active Directory setups
      // definition for contact groups (uncomment if no groups are supported)
      // for the groups base_dn, the user replacements %fu, %u, $d and %dc work as for base_dn (see above)
      // if the groups base_dn is empty, the contact base_dn is used for the groups as well
      // -> in this case, assure that groups and contacts are separated due to the concernig filters!
      'groups'        => array(
        'base_dn'     => '',
        'scope'       => 'sub',   // search mode: sub|base|list
        'filter'      => '(objectClass=groupOfNames)',
        'object_classes' => array("top", "groupOfNames"),
        'member_attr'  => 'member',   // name of the member attribute, e.g. uniqueMember
        'name_attr'    => 'cn',       // attribute to be used as group name
    // An ordered array of the ids of the addressbooks that should be searched
    // when populating address autocomplete fields server-side. ex: array('sql','Verisign');
    $rcmail_config['autocomplete_addressbooks'] = array('sql');
    // The minimum number of characters required to be typed in an autocomplete field
    // before address books will be searched. Most useful for LDAP directories that
    // may need to do lengthy results building given overly-broad searches
    $rcmail_config['autocomplete_min_length'] = 1;
    // Number of parallel autocomplete requests.
    // If there's more than one address book, n parallel (async) requests will be created,
    // where each request will search in one address book. By default (0), all address
    // books are searched in one request.
    $rcmail_config['autocomplete_threads'] = 0;
    // Max. numer of entries in autocomplete popup. Default: 15.
    $rcmail_config['autocomplete_max'] = 15;
    // show address fields in this order
    // available placeholders: {street}, {locality}, {zipcode}, {country}, {region}
    $rcmail_config['address_template'] = '{street}<br/>{locality} {zipcode}<br/>{country} {region}';
    // Matching mode for addressbook search (including autocompletion)
    // 0 - partial (*abc*), default
    // 1 - strict (abc)
    // 2 - prefix (abc*)
    // Note: For LDAP sources fuzzy_search must be enabled to use 'partial' or 'prefix' mode
    $rcmail_config['addressbook_search_mode'] = 0;
    // USER PREFERENCES
    // Use this charset as fallback for message decoding
    $rcmail_config['default_charset'] = 'ISO-8859-1';
    // skin name: folder from skins/
    $rcmail_config['skin'] = 'larry';
    // show up to X items in messages list view
    $rcmail_config['mail_pagesize'] = 50;
    // show up to X items in contacts list view
    $rcmail_config['addressbook_pagesize'] = 50;
    // sort contacts by this col (preferably either one of name, firstname, surname)
    $rcmail_config['addressbook_sort_col'] = 'surname';
    // the way how contact names are displayed in the list
    // 0: display name
    // 1: (prefix) firstname middlename surname (suffix)
    // 2: (prefix) surname firstname middlename (suffix)
    // 3: (prefix) surname, firstname middlename (suffix)
    $rcmail_config['addressbook_name_listing'] = 0;
    // use this timezone to display date/time
    // valid timezone identifers are listed here: php.net/manual/en/timezones.php
    // 'auto' will use the browser's timezone settings
    $rcmail_config['timezone'] = 'auto';
    // prefer displaying HTML messages
    $rcmail_config['prefer_html'] = true;
    // display remote inline images
    // 0 - Never, always ask
    // 1 - Ask if sender is not in address book
    // 2 - Always show inline images
    $rcmail_config['show_images'] = 0;
    // compose html formatted messages by default
    // 0 - never, 1 - always, 2 - on reply to HTML message only
    $rcmail_config['htmleditor'] = 0;
    // show pretty dates as standard
    $rcmail_config['prettydate'] = true;
    // save compose message every 300 seconds (5min)
    $rcmail_config['draft_autosave'] = 300;
    // default setting if preview pane is enabled
    $rcmail_config['preview_pane'] = false;
    // Mark as read when viewed in preview pane (delay in seconds)
    // Set to -1 if messages in preview pane should not be marked as read
    $rcmail_config['preview_pane_mark_read'] = 0;
    // Clear Trash on logout
    $rcmail_config['logout_purge'] = false;
    // Compact INBOX on logout
    $rcmail_config['logout_expunge'] = false;
    // Display attached images below the message body
    $rcmail_config['inline_images'] = true;
    // Encoding of long/non-ascii attachment names:
    // 0 - Full RFC 2231 compatible
    // 1 - RFC 2047 for 'name' and RFC 2231 for 'filename' parameter (Thunderbird's default)
    // 2 - Full 2047 compatible
    $rcmail_config['mime_param_folding'] = 0;
    // Set true if deleted messages should not be displayed
    // This will make the application run slower
    $rcmail_config['skip_deleted'] = false;
    // Set true to Mark deleted messages as read as well as deleted
    // False means that a message's read status is not affected by marking it as deleted
    $rcmail_config['read_when_deleted'] = true;
    // Set to true to never delete messages immediately
    // Use 'Purge' to remove messages marked as deleted
    $rcmail_config['flag_for_deletion'] = false;
    // Default interval for keep-alive/check-recent requests (in seconds)
    // Must be greater than or equal to 'min_keep_alive' and less than 'session_lifetime'
    $rcmail_config['keep_alive'] = 60;
    // If true all folders will be checked for recent messages
    $rcmail_config['check_all_folders'] = false;
    // If true, after message delete/move, the next message will be displayed
    $rcmail_config['display_next'] = false;
    // 0 - Do not expand threads
    // 1 - Expand all threads automatically
    // 2 - Expand only threads with unread messages
    $rcmail_config['autoexpand_threads'] = 0;
    // When replying place cursor above original message (top posting)
    $rcmail_config['top_posting'] = false;
    // When replying strip original signature from message
    $rcmail_config['strip_existing_sig'] = true;
    // Show signature:
    // 0 - Never
    // 1 - Always
    // 2 - New messages only
    // 3 - Forwards and Replies only
    $rcmail_config['show_sig'] = 1;
    // When replying or forwarding place sender's signature above existing message
    $rcmail_config['sig_above'] = false;
    // Use MIME encoding (quoted-printable) for 8bit characters in message body
    $rcmail_config['force_7bit'] = false;
    // Defaults of the search field configuration.
    // The array can contain a per-folder list of header fields which should be considered when searching
    // The entry with key '*' stands for all folders which do not have a specific list set.
    // Please note that folder names should to be in sync with $rcmail_config['default_folders']
    $rcmail_config['search_mods'] = null;  // Example: array('*' => array('subject'=>1, 'from'=>1), 'Sent' => array('subject'=>1, 'to'=>1));
    // Defaults of the addressbook search field configuration.
    $rcmail_config['addressbook_search_mods'] = null;  // Example: array('name'=>1, 'firstname'=>1, 'surname'=>1, 'email'=>1, '*'=>1);
    // 'Delete always'
    // This setting reflects if mail should be always deleted
    // when moving to Trash fails. This is necessary in some setups
    // when user is over quota and Trash is included in the quota.
    $rcmail_config['delete_always'] = false;
    // Directly delete messages in Junk instead of moving to Trash
    $rcmail_config['delete_junk'] = false;
    // Behavior if a received message requests a message delivery notification (read receipt)
    // 0 = ask the user, 1 = send automatically, 2 = ignore (never send or ask)
    // 3 = send automatically if sender is in addressbook, otherwise ask the user
    // 4 = send automatically if sender is in addressbook, otherwise ignore
    $rcmail_config['mdn_requests'] = 0;
    // Return receipt checkbox default state
    $rcmail_config['mdn_default'] = 0;
    // Delivery Status Notification checkbox default state
    $rcmail_config['dsn_default'] = 0;
    // Place replies in the folder of the message being replied to
    $rcmail_config['reply_same_folder'] = false;
    // Sets default mode of Forward feature to "forward as attachment"
    $rcmail_config['forward_attachment'] = false;
    // Defines address book (internal index) to which new contacts will be added
    // By default it is the first writeable addressbook.
    // Note: Use '0' for built-in address book.
    $rcmail_config['default_addressbook'] = null;
    // Enables spell checking before sending a message.
    $rcmail_config['spellcheck_before_send'] = false;
    // Skip alternative email addresses in autocompletion (show one address per contact)
    $rcmail_config['autocomplete_single'] = false;
    // Default font for composed HTML message.
    // Supported values: Andale Mono, Arial, Arial Black, Book Antiqua, Courier New,
    // Georgia, Helvetica, Impact, Tahoma, Terminal, Times New Roman, Trebuchet MS, Verdana
    $rcmail_config['default_font'] = '';
    // end of config file

  • How to determine what OS your java prog is running on?

    Is there a Java command to determine what OS your program is running on?
    Yes it IS important -- because there are things that are OS-specific, such as valid characters for filenames.
    I could just disallow ALL "shady characters", but then my program would be skipping a lot of GOOD files in Linux, which only disallows the '/' character.
    http://www.linuxboxadmin.com/articles/tools-and-utilities/linux/mac/windows-file-name-friction.html
    Any ideas how I should proceed?
    Matthew

    I assume, if it's looking at "ALL" files in a directory, that it is running in a loop, right? Well, put the try/catch in the loop, rather than around it, and let it throw an exception. Catch it and keep a list of files that didn't work. But then again, if you're talking about "reading" a file, this shouldn't be a problem, because if it is an invalid character, how did the file get there? and should it really be your worry?
    As far as writing one with a character like that, let the user enter tha name he wants, attempt to create it, and if it fails ask for another, and for those filenames that you generate within the program, stick to the "safe" characters.

  • Why won't my unzipped and rezipped IDML file open in InDesign?

    I'm a developer working on an IDML based project.
    My application opens an IDML file, inflates the contents and (for the moment, without making any changes), deflates them again.
    The result is a file which:
    a) Opens fine in any zip application
    b) My code can then reopen without problems.
    InDesign, however, throws the following error:
    "Cannot open the file "filename.idml". Adobe InDesign may not support the file format, a plug-in that supports the file format may be miussing, or the file may be open in another application."
    I have verified that the file is not open in another app, and that no plug ins are involved.
    InDesign will open the original IDML file that it exported, so there's no general error.
    I assume the issue is with the zip container not being UCF compliant, and I'm trying to diagnose what the problem might be.
    My question(s):
    Has anyone been through this and do they have any suggestions or guidance?
    Is there any way I can get InDesign to tell me in more detail why it cannot open the file?
    What are the most likely issues with the container?
    I have inspected both the original file and the output file using Winzip, and I append the results of a detailed diagnostic on each below. The only difference I can see is that some files in the original are not compressed (they are simply stored in the zip container), but the UCF specification seems to suggest that a container can contain either compressed or normal files, so I don't see why this should be a problem. Would this cause InDesign to have a problem?
    Many thanks in advance for any assistance. Zip file diagnostics follow.
    JcFx Eu.
    DIAGNOSTICS FOR THE ORIGINAL IDML FILE:
    Testing ...
    Current Location part 1 offset 35496
    Archive: ORIGINAL.zip   35518 bytes   2010-06-29 19:16:58
    End central directory record PK0506 (4+18)
    ==========================================
        current  location of end-of-central-dir record: 35496 (0x00008aa8) bytes
        expected location of end-of-central-dir record: 35496 (0x00008aa8) bytes
          based on the size of the central directory of
          990 and its relative offset of 34506 bytes
        part number of this part (0000):                1
        part number of start of central dir (0000):     1
        number of entries in central dir in this part:  15
        total number of entries in central dir:         15
        size of central dir:                            990 (0x000003de) bytes
        relative offset of central dir:                 34506 (0x000086ca) bytes
        zipfile comment length:                         0
    Current Location part 1 offset 34506
    Central directory entry PK0102 (4+42): #1
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                0 (0x00000000) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0800) (bit 15..0):  0000.1000 0000.0000
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (00):                        none (stored)
        file last modified on (0x00003cdd 0x00009a1c):  2010-06-29 19:16:56
        32-bit CRC value:                               0x898f76cb
        compressed size:                                43 bytes
        uncompressed size:                              43 bytes
        length of filename:                             8 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34552
        filename:mimetype
    Current Location part 1 offset 34560
    Central directory entry PK0102 (4+42): #2
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                81 (0x00000051) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1c):  2010-06-29 19:16:56
        32-bit CRC value:                               0x48e193fb
        compressed size:                                2516 bytes
        uncompressed size:                              14146 bytes
        length of filename:                             13 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34606
        filename:designmap.xml
    Current Location part 1 offset 34619
    Central directory entry PK0102 (4+42): #3
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                2640 (0x00000a50) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xbe470667
        compressed size:                                167 bytes
        uncompressed size:                              253 bytes
        length of filename:                             22 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34665
        filename:META-INF\container.xml
    Current Location part 1 offset 34687
    Central directory entry PK0102 (4+42): #4
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                2859 (0x00000b2b) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xa9a4d00e
        compressed size:                                6047 bytes
        uncompressed size:                              29065 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34733
        filename:META-INF\metadata.xml
    Current Location part 1 offset 34754
    Central directory entry PK0102 (4+42): #5
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                8957 (0x000022fd) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x7557d85e
        compressed size:                                1155 bytes
        uncompressed size:                              7428 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34800
        filename:Resources\Graphic.xml
    Current Location part 1 offset 34821
    Central directory entry PK0102 (4+42): #6
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                10163 (0x000027b3) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xf43a42fe
        compressed size:                                3449 bytes
        uncompressed size:                              19673 bytes
        length of filename:                             19 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34867
        filename:Resources\Fonts.xml
    Current Location part 1 offset 34886
    Central directory entry PK0102 (4+42): #7
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                13661 (0x0000355d) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x4accb4c4
        compressed size:                                4627 bytes
        uncompressed size:                              29487 bytes
        length of filename:                             20 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34932
        filename:Resources\Styles.xml
    Current Location part 1 offset 34952
    Central directory entry PK0102 (4+42): #8
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                18338 (0x000047a2) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xd75ae504
        compressed size:                                10962 bytes
        uncompressed size:                              69779 bytes
        length of filename:                             25 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 34998
        filename:Resources\Preferences.xml
    Current Location part 1 offset 35023
    Central directory entry PK0102 (4+42): #9
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                29355 (0x000072ab) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x65ae6db3
        compressed size:                                218 bytes
        uncompressed size:                              302 bytes
        length of filename:                             12 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 35069
        filename:XML\Tags.xml
    Current Location part 1 offset 35081
    Central directory entry PK0102 (4+42): #10
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                29615 (0x000073af) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x037dee40
        compressed size:                                692 bytes
        uncompressed size:                              2328 bytes
        length of filename:                             34 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 35127
        filename:MasterSpreads\MasterSpread_ubc.xml
    Current Location part 1 offset 35161
    Central directory entry PK0102 (4+42): #11
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                30371 (0x000076a3) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x43b1858a
        compressed size:                                1573 bytes
        uncompressed size:                              7799 bytes
        length of filename:                             22 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 35207
        filename:Spreads\Spread_ub5.xml
    Current Location part 1 offset 35229
    Central directory entry PK0102 (4+42): #12
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                31996 (0x00007cfc) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x0bc7a874
        compressed size:                                342 bytes
        uncompressed size:                              606 bytes
        length of filename:                             20 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 35275
        filename:XML\BackingStory.xml
    Current Location part 1 offset 35295
    Central directory entry PK0102 (4+42): #13
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                32388 (0x00007e84) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x0c652477
        compressed size:                                685 bytes
        uncompressed size:                              3219 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 35341
        filename:Stories\Story_uff.xml
    Current Location part 1 offset 35362
    Central directory entry PK0102 (4+42): #14
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                33124 (0x00008164) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x59a2cf03
        compressed size:                                646 bytes
        uncompressed size:                              3041 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 35408
        filename:Stories\Story_ue5.xml
    Current Location part 1 offset 35429
    Central directory entry PK0102 (4+42): #15
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                33821 (0x0000841d) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x6fc8a48f
        compressed size:                                634 bytes
        uncompressed size:                              2935 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 35475
        filename:Stories\Story_ucb.xml
    Current Location part 1 offset 0
    Local directory entry PK0304 (4+26): #1
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0800) (bit 15..0):  0000.1000 0000.0000
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (00):                        none (stored)
        file last modified on (0x00003cdd 0x00009a1c):  2010-06-29 19:16:56
        32-bit CRC value:                               0x898f76cb
        compressed size:                                43 bytes
        uncompressed size:                              43 bytes
        length of filename:                             8 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 30
        filename:mimetype
    Current Location part 1 offset 38
    Testing mimetype                 OK
    Current Location part 1 offset 81
    Local directory entry PK0304 (4+26): #2
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1c):  2010-06-29 19:16:56
        32-bit CRC value:                               0x48e193fb
        compressed size:                                2516 bytes
        uncompressed size:                              14146 bytes
        length of filename:                             13 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 111
        filename:designmap.xml
    Current Location part 1 offset 124
    Testing designmap.xml            OK
    Current Location part 1 offset 2640
    Local directory entry PK0304 (4+26): #3
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xbe470667
        compressed size:                                167 bytes
        uncompressed size:                              253 bytes
        length of filename:                             22 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 2670
        filename:META-INF\container.xml
    Current Location part 1 offset 2692
    Testing META-INF\container.xml   OK
    Current Location part 1 offset 2859
    Local directory entry PK0304 (4+26): #4
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xa9a4d00e
        compressed size:                                6047 bytes
        uncompressed size:                              29065 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 2889
        filename:META-INF\metadata.xml
    Current Location part 1 offset 2910
    Testing META-INF\metadata.xml    OK
    Current Location part 1 offset 8957
    Local directory entry PK0304 (4+26): #5
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x7557d85e
        compressed size:                                1155 bytes
        uncompressed size:                              7428 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 8987
        filename:Resources\Graphic.xml
    Current Location part 1 offset 9008
    Testing Resources\Graphic.xml    OK
    Current Location part 1 offset 10163
    Local directory entry PK0304 (4+26): #6
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xf43a42fe
        compressed size:                                3449 bytes
        uncompressed size:                              19673 bytes
        length of filename:                             19 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 10193
        filename:Resources\Fonts.xml
    Current Location part 1 offset 10212
    Testing Resources\Fonts.xml      OK
    Current Location part 1 offset 13661
    Local directory entry PK0304 (4+26): #7
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x4accb4c4
        compressed size:                                4627 bytes
        uncompressed size:                              29487 bytes
        length of filename:                             20 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 13691
        filename:Resources\Styles.xml
    Current Location part 1 offset 13711
    Testing Resources\Styles.xml     OK
    Current Location part 1 offset 18338
    Local directory entry PK0304 (4+26): #8
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0xd75ae504
        compressed size:                                10962 bytes
        uncompressed size:                              69779 bytes
        length of filename:                             25 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 18368
        filename:Resources\Preferences.xml
    Current Location part 1 offset 18393
    Testing Resources\Preferences.xml   OK
    Current Location part 1 offset 29355
    Local directory entry PK0304 (4+26): #9
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x65ae6db3
        compressed size:                                218 bytes
        uncompressed size:                              302 bytes
        length of filename:                             12 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 29385
        filename:XML\Tags.xml
    Current Location part 1 offset 29397
    Testing XML\Tags.xml             OK
    Current Location part 1 offset 29615
    Local directory entry PK0304 (4+26): #10
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x037dee40
        compressed size:                                692 bytes
        uncompressed size:                              2328 bytes
        length of filename:                             34 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 29645
        filename:MasterSpreads\MasterSpread_ubc.xml
    Current Location part 1 offset 29679
    Testing MasterSpreads\MasterSpread_ubc.xml   OK
    Current Location part 1 offset 30371
    Local directory entry PK0304 (4+26): #11
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x43b1858a
        compressed size:                                1573 bytes
        uncompressed size:                              7799 bytes
        length of filename:                             22 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 30401
        filename:Spreads\Spread_ub5.xml
    Current Location part 1 offset 30423
    Testing Spreads\Spread_ub5.xml   OK
    Current Location part 1 offset 31996
    Local directory entry PK0304 (4+26): #12
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x0bc7a874
        compressed size:                                342 bytes
        uncompressed size:                              606 bytes
        length of filename:                             20 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 32026
        filename:XML\BackingStory.xml
    Current Location part 1 offset 32046
    Testing XML\BackingStory.xml     OK
    Current Location part 1 offset 32388
    Local directory entry PK0304 (4+26): #13
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x0c652477
        compressed size:                                685 bytes
        uncompressed size:                              3219 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 32418
        filename:Stories\Story_uff.xml
    Current Location part 1 offset 32439
    Testing Stories\Story_uff.xml    OK
    Current Location part 1 offset 33124
    Local directory entry PK0304 (4+26): #14
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x59a2cf03
        compressed size:                                646 bytes
        uncompressed size:                              3041 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 33154
        filename:Stories\Story_ue5.xml
    Current Location part 1 offset 33175
    Testing Stories\Story_ue5.xml    OK
    Current Location part 1 offset 33821
    Local directory entry PK0304 (4+26): #15
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0802) (bit 15..0):  0000.1000 0000.0010
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                no
        compression method (08):                        deflated
          compression sub-type (deflation):             maximum
        file last modified on (0x00003cdd 0x00009a1d):  2010-06-29 19:16:58
        32-bit CRC value:                               0x6fc8a48f
        compressed size:                                634 bytes
        uncompressed size:                              2935 bytes
        length of filename:                             21 characters
        length of extra field:                          0 bytes
    Current Location part 1 offset 33851
        filename:Stories\Story_ucb.xml
    Current Location part 1 offset 33872
    Testing Stories\Story_ucb.xml    OK
    No errors detected in compressed data of ORIGINAL.zip.
    DIAGNOSTICS FOR THE REZIPPED IDML FILE:
    Testing ...
    Current Location part 1 offset 34822
    Archive: OUTPUT.zip   34844 bytes   2010-07-21 17:48:46
    End central directory record PK0506 (4+18)
    ==========================================
        current  location of end-of-central-dir record: 34822 (0x00008806) bytes
        expected location of end-of-central-dir record: 34822 (0x00008806) bytes
          based on the size of the central directory of
          990 and its relative offset of 33832 bytes
        part number of this part (0000):                1
        part number of start of central dir (0000):     1
        number of entries in central dir in this part:  15
        total number of entries in central dir:         15
        size of central dir:                            990 (0x000003de) bytes
        relative offset of central dir:                 33832 (0x00008428) bytes
        zipfile comment length:                         0
    Current Location part 1 offset 33832
    Central directory entry PK0102 (4+42): #1
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                0 (0x00000000) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0008) (bit 15..0):  0000.0000 0000.1000
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                yes
        compression method (08):                        deflated
          compression sub-type (deflation):             normal
        file last modified on (0x00003ce3 0x00008e13):  2010-07-03 17:48:38
        32-bit CRC value:                               0x898f76cb
        compressed size:                                44 bytes
        uncompressed size:                              43 bytes
        length of filename:                             8 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 33878
        filename:mimetype
    Current Location part 1 offset 33886
    Central directory entry PK0102 (4+42): #2
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                98 (0x00000062) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0008) (bit 15..0):  0000.0000 0000.1000
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                yes
        compression method (08):                        deflated
          compression sub-type (deflation):             normal
        file last modified on (0x00003ce3 0x00008e13):  2010-07-03 17:48:38
        32-bit CRC value:                               0x65263983
        compressed size:                                2412 bytes
        uncompressed size:                              13985 bytes
        length of filename:                             13 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 33932
        filename:designmap.xml
    Current Location part 1 offset 33945
    Central directory entry PK0102 (4+42): #3
    ======================================
        part number in which file begins (0000):        1
        relative offset of local header:                2569 (0x00000a09) bytes
        version made by operating system (00):          MS-DOS, OS/2, NT FAT
        version made by zip software (20):              2.0
        operat. system version needed to extract (00):  MS-DOS, OS/2, NT FAT
        unzip software version needed to extract (20):  2.0
        general purpose bit flag (0x0008) (bit 15..0):  0000.0000 0000.1000
          file security status  (bit 0):                not encrypted
          extended local header (bit 3):                yes
        compression method (08):                        deflated
          compression sub-type (deflation):             normal
        file last modified on (0x00003ce3 0x00008e13):  2010-07-03 17:48:38
        32-bit CRC value:                               0x817f37ea
        compressed size:                                132 bytes
        uncompressed size:                              196 bytes
        length of filename:                             22 characters
        length of extra field:                          0 bytes
        length of file comment:                         0 characters
        internal file attributes:                       0x0000
          apparent file type:                           binary
        external file attributes:                       0x00000000
          non-MSDOS external file attributes:           0x000000
          MS-DOS file attributes (0x00):                none
    Current Location part 1 offset 33991
        filename:META-INF\container.xml
    Current Location part 1 offset 34013
    Central directory entry PK0102 (4+42): #4
    ======================================
        part number in which file begins (0000):        1

    How are you zipping it?
    In needs to be a "clean" zip...
    Also, take a look at app.packageUCF() and app.unpackageUCF()...
    Harbs

  • Cannot install my product using a long installation path with windows installer when a short installation path works fine

    Hello,
    I'm using Visual Studio 2010 to build a msi installer (windows installer 3.5). This msi will install all necessary files, dlls, documentation in order to have my application correctly installed and ready to run. One of my custom action allow to browse the
    installation directory the default path is c:\program file\company name\product name). In that case the install works fine ie succesful installation.
    However when entering a huge filename (>215 characters and less than 255 chars) such as: C:\Program Files\SITA\SITATEX v8\abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\abcdefghijklmnopqrstuvwxyz0123456789\0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
    I get a dialog box:
    Error writing to file: C:\Program Files\SITA\SITATEX v8\abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\abcdefghijklmnopqrstuvwxyz0123456789\...\Single User Installation Quick Reference Guide.pdf. Verify that you have access
    to that directory
    "Try Again"           "Cancel"
    When I hit "Try again" button, I get another dialog box:
    The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2350.
    And the installation of my product fails.
    I can create the huge path (>215 chars) manually with windows explorer without problem. I'm using the same account(Admin) when running the installer and when I create manually the path
    Am I reaching the file path limit or? Any clue?
    Thanks for help
    Philippe

    Hi
    I have tried to install the product with the following path (198 chars): C:\Program Files\SITA\SITATEX v8\abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\abcdefghijklmnopqrstuvwxyz0123456789\0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQR the
    installation did not succeed but this time no dialog box, no error was displayed. The installation just failed
    I then tried with 180 chars: C:\Program Files\SITA\SITATEX v8\abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\abcdefghijklmnopqrstuvwxyz0123456789\0123456789abcdefghijklmnopqrstuvwxyz
    with same result. The installation did not succeed and no dialog box, no error was displayed.
    I tried with 175chars
    C:\Program Files\SITA\SITATEX v8\abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\abcdefghijklmnopqrstuvwxyz0123456789\0123456789abcdefghijklmnopqrstu
    and this time the installation was successful.
    I have captured the events with
    processmonitor and I have uploaded 2 additional files (LogfilePath175charsSuccessfullInstall.zip and LogfilePath198charsInstallFailed.zip) to Windows Live SkyDrive (http://www.skydrive.live.com) at the same
    place http://cid-35bc4002ff715ab5.office.live.com/browse.aspx/.Public?uc=0 for your attention.
    Thank you
    Philippe

  • Use Powershell to read contents on email message pipe to variable

    Hey guys,
           Got a new one for ya'll. I've been tasked with writing a powershell app that will watch an Exchange inbox and if the body of the email contains MSDS=xxxxxxxx.pdf email the xxxxxxx.pdf file to a external customer.
    The email portion i know how to do no problem. I'm stumped on reading the body of the email and returning the variable xxxxx.pdf to pipe out that variable to my email function.
    Tried doing some googling on this without much luck. Anyone done this before or have a tutorial/resource to point me in the right direction ?
    Thanks
    Rich
    Rich Thompson

    Here's what i've come up with just googling around throwing something quick and dirty together. I'm sure im way off on this but it's helping me visually get the idea of what i need. This is an Exchange server so i dont even know if MAPI is enabled server
    side or not. Will figure that one out later on.
    $olFolderInbox = 6
    $outlook = new-object -com outlook.application;
    $ns = $outlook.GetNameSpace("MAPI");
    $inbox = $ns.GetDefaultFolder($olFolderInbox)
    $inbox.items | foreach
    if ($_.body -match "MSDS=")
    $filename = ALL CHARACTERS AFTER "=" UP UNTIL .PDF IF MULTIPLE .PDF FILES ATTACH ALL OF THEM IN THE NEW EMAIL
    Send-MailMessage -SmtpServer smtp-mail.xxxxxxxx.com -To $sender -From [email protected] -Subject "MSDS(s) Requested from TESTING, Inc." -Attachments
    Rich Thompson
    You cannot run Outlook on the Exchange server.  It can only be run from a non-Exchange client with Outlook installed.
    ¯\_(ツ)_/¯

  • How to write an applescript and ignore errors

    I'm writing an applescript that uses a shell command that will always return an error. Applescript stops as soon as the error occurs. I want the applescript to continue running. How should I tell Applescript to ignore errors?

    The basic construct is a try/end try block which runs your own code when an error occurs rather than stopping your script.
    An alternative when using do shell script is to suppress stdout and stderr so that errors are not returned to the application. Which you can do by appending ' > /dev/null 2>&1 &' to the end of the shell command.
    Note, though, that your command will not work as written because 'choose folder' will return an alias object which can not be passed to a shell command as-is. Shell commands require unix-style paths for all file/folder parameters. Fortunately, AppleScript makes this easy by providing a POSIX path command which will convert an alias to a unix path. Additionally, since Mac paths can commonly include spaces and other non-shell safe characters, you may want to quote the path, too, like:
    <pre class=command>set shell_script to "usr/local/bin/readpst -o " & quoted form of POSIX path of mbox_output & " " & pst_input & " > /dev/null 2>&1 &"</pre>

Maybe you are looking for

  • Sound Effects Not working Correctly in Mail 6.0 or Notification Center...

    I recently installed Mountain Lion on my MacBook Pro (2012 Retina Screen, 2.7 GHz Core i7, 16 GB RAM) and all the sound effects are no longer working in the new version of Mail 6.0. There are also Sound Effect problems with the Notification Center. 

  • Payment Wizard ck print issue

    AP check Wizard u2013 went through all the steps again trying to print two checks, but when I get to the last step where it is going to print the checks, if there are more than one box checked I get an error message that states u201C Printed page cou

  • Icons for Insert/Delete Pages to Adobe Acrobat Pro 9.

    I want to add icons for Insert Pages and Delete Pages so that I have quicker access than clicking on the Document option or the Navigation Panel. Used to have this on my old version of Adobe, but it was recently updated at work and I can't figure out

  • Alternative to reinstalling?

    I have been told that I need to reinstall Safari and the updates due to problems I have been having (won't let me into a secured site I have, but other computers with Safari will), but was wondering whether I can close Safari and delete some preferen

  • MF4350d won't complete scanning a page

    Machine used to work fine, now it will not complete scanning a single page thru the ADF. Page starts scanning, percentage gets up to 65%, then the page is ejected. If there are more pages, they're all pulled through quickly and the percentage stays t