Contribs.org

Please login or register.

Login with username, password and session length

News:

We need you! Please help us to make SME Server a better product. More info here

Pages: 1 2 [3]  All   Go Down

Author Topic: How to make users able to print from cellphones and from outside the LAN  (Read 1273 times)

ReetP

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 901
Logged
...
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

ReetP

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 901

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
Logged
...
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

ReetP

  • Wiki & Docs Team
  • *
  • Offline Offline
  • Posts: 901

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.
Logged
...
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
Pages: 1 2 [3]  All   Go Up
 

Page created in 0.039 seconds with 26 queries.