GithubHelp home page GithubHelp logo

cupsmailprinter's Introduction

cupsmailprinter

This is an email printer driver for CUPS that I have experimented with. It is a derivative work of the cups-mailto project by Robert Sander. It will go through a slight tweaking to enable easier set-up and make it compatible with the new version of ps2pdf filter included in CUPS. The reason I created this project is to enable smooth, local-printer-like use experience when printing to school's printers from my Linux laptop.

Deprecation

CUPS printer drivers, backends and filters have been deprecated. It means that this driver will not be developed anymore. Similar functionality could be achieved using something like h2g2bob's IPP server.

To do

  • Troubleshoot and modify the ppd file to fix the compatibility problem with the current ps2pdf filter that causes blank borders in pages.
  • Replace the mailfrom and mailto job options with printer options accessible from CUPS Web UI, see issue #1.
  • Investigate and fix sandboxing conflicts that affect some systems (issues #3 and #4)

cupsmailprinter's People

Contributors

ilmaisin avatar

Watchers

James Cloos avatar  avatar

Forkers

xuhui

cupsmailprinter's Issues

Make to and from addresses settable from web ui

Curretly this driver gets the to and from addresses from manually defined lpoptions mailfrom and mailto. This is however not a very good user experience. Starting from CUPS 1.3, it has been possible to have PPD files accept arbitary strings as configuration options, but the syntax is confusing to me.

Another option would be to have a separate configuration file like CUPS-PDF has, but that would again be inferior to the former option in what it comes to user experience.

SELinux esmtp conflict

On Fedora, SELinux is preventing esmtp from read access on the file /var/spool/cups/tmp/.esmtp_queue/

Possible fix: Use smtp instead of sendmail command.

Solve the problem with macOS sandboxing

Following was told me in IRC:

16:00 -!- Irssi: Starting query in Freenode with nick omitted
16:00 <nick omitted> hi, are you working on cups-mailto? :)
16:01 <nick omitted> in its current state it's impossible to get it to work with os x el capitan and newer
16:02 <nick omitted> because they took away the sandbox: off option in cups-files.conf
16:03 <nick omitted> i'm not an os x user myself though, so it's a bit difficult to debug

Incompatibility with some ACL systems

The MTA seemingly cannot read the spool file on some systems, like Fedora, or as I have heard, OS X El Capitan and newer. That is because security measures like SELinux (in Fedora's case) and the sandboxing system in OS X/macOS.

Possible solution: take the input as STDIN instead of spool file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.