Koozali.org: home of the SME Server

How to make users able to print from cellphones and from outside the LAN

Offline ReetP

  • *
  • 3,722
  • +5/-0
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,722
  • +5/-0
smeserver-qmail-printpdf v0.1-6 in my repo

It generates the /etc/printpdf.conf template correctly if the Printer and Pass are set to something other than None and status is enabled. Not tested beyond that

Bugs on git at the minute whilst in pre pre pre Alpha
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,722
  • +5/-0
I was having another look at this.

Another method, and one that would not require passwords being thrown around, is to try and use procmail and a script to process the PDF.

I have been messing about with this at work but get stuck on passing the body of the mail message to the script. I can get the script to run from .procmailrc but just can't see the body which is mean to be on STDIN. Allegedly.

Something like this seems to copy the mail to the 'Printed' directory and echo a bit to a tmp file but no idea how top access the actual mail body:

Code: [Select]
# ----  user rules ------------------

:0
* ^Subject.*Order
{
:0cWhi
|~/echotest.sh
:0
$MAILDIR/.Printed/
}

I'm pretty sure if I can get the mail body then the scripts we have already got will process the mail.

Any suggestions appreciated.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation