Add the -m flag to lpr so the user gets an email confirmation message
authorRobert Sesek <rsesek@bluestatic.org>
Wed, 27 Feb 2008 22:13:45 +0000 (17:13 -0500)
committerRobert Sesek <rsesek@bluestatic.org>
Wed, 27 Feb 2008 22:13:45 +0000 (17:13 -0500)
* Source/AppController.m

Source/AppController.m

index 2e4dcb35c3ae9a4384221a7b63ddf4e9def86855..6943754186a56ab64aaa8e5975b1484be44e0cc7 100644 (file)
        [self readChannel:channel];
        
        // send the job to lpr
-       char *cmd = (char *)[[NSString stringWithFormat:@"lpr -P%@ __bu_print_drop__.pdf\r\n\0", printer] UTF8String];
+       char *cmd = (char *)[[NSString stringWithFormat:@"lpr -m -P%@ __bu_print_drop__.pdf\r\n\0", printer] UTF8String];
        libssh2_channel_write(channel, cmd, sizeof(char) * strlen(cmd));
        [self readChannel:channel];