Help printing from neomutt?Pretty print mails from mutt?lpr printing wrong ASCII charactersPrinting email...

Character Arcs - What if the character doesn't overcome the big lie, flaws or wounds?

Chemistry Riddle

How can I deal with someone that wants to kill something that isn't supposed to be killed?

How could Barty Crouch Jr. have run out of Polyjuice Potion at the end of the Goblet of Fire movie?

Revolutionaries' fleet armed with kinetic weapons defeats government fleet armed with missiles

Does quantity of data extensions impact performance?

Why is DC so, so, so Democratic?

Why did modems have speakers?

Does downing a character at the start of its turn require an immediate Death Saving Throw?

What is "ass door"?

What kind of world would drive brains to evolve high-throughput sensory?

Bounded Torsion, without Mazur’s Theorem

Were the Apollo broadcasts recorded locally on the LM?

Wiring IKEA light fixture into old fixture

If hash functions append the length, why does length extension attack work?

How does mathematics work?

Are rockets faster than airplanes?

Do you have to hide in order for other creatures to not know your location inside a fog cloud?

Can a creature sustain itself by eating its own severed body parts?

Import data from a current web session?

How can I indicate that what I'm saying is not sarcastic online?

Why are Oscar, India, and X-Ray (O, I, and X) not used as taxiway identifiers?

Is the apartment I want to rent a scam?

What is a "staved" town, like in "Staverton"?



Help printing from neomutt?


Pretty print mails from mutt?lpr printing wrong ASCII charactersPrinting email messages from mutt — how to avoid line break?How to ignore “Tags:” Header in mutt (neomutt)Language in mutt/neomuttHow to change User-Agent in mutt/neomutt?mutt/neomutt - color of 'active' message in index menuOpening attached PDF in neomutt: No PermissionNeomutt - Can't display Swedish charactersWhere did my `p` binding go in neomutt?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I use a print script that I call in my .neomutt/config with



set print_command="/home/myself/.config/neomutt/print.sh" 


The script was working but I haven't used it in a while and these days it successfully launches evince with a /tmp file named mutt_XXXXXXXX.pdf as expected (not literally mutt_XXXXXXXX.pdf the file name is actually mutt_8TR4VsPY.pdf or whatever) but the PDF is a single blank page. When it was working that temporary PDF included the email message as expected.



I'm not seeing any errors, but the email isn't being printed. The print.sh script itself is as follows:



#!/bin/bash
input="$1" pdir="$HOME/Desktop" open_pdf=evince
# check to make sure that enscript and ps2pdf are both installed
if ! command -v enscript >/dev/null || ! command -v ps2pdf >/dev/null; then
echo "ERROR: both enscript and ps2pdf must be installed" 1>&2
exit 1
fi

# create temp dir if it does not exist
if [ ! -d "$pdir" ]; then
mkdir -p "$pdir" 2>/dev/null
if [ $? -ne 0 ]; then
echo "Unable to make directory '$pdir'" 1>&2
exit 2
fi
fi


tmpfile="`mktemp $pdir/mutt_XXXXXXXX.pdf`"

enscript --font=Courier8 $input -2r --word-wrap --fancy-header=mutt --encoding=88593 -p - 2>/dev/null | ps2pdf - $tmpfile
$open_pdf $tmpfile >/dev/null 2>&1 &
sleep 1
rm $tmpfile









share|improve this question





























    0















    I use a print script that I call in my .neomutt/config with



    set print_command="/home/myself/.config/neomutt/print.sh" 


    The script was working but I haven't used it in a while and these days it successfully launches evince with a /tmp file named mutt_XXXXXXXX.pdf as expected (not literally mutt_XXXXXXXX.pdf the file name is actually mutt_8TR4VsPY.pdf or whatever) but the PDF is a single blank page. When it was working that temporary PDF included the email message as expected.



    I'm not seeing any errors, but the email isn't being printed. The print.sh script itself is as follows:



    #!/bin/bash
    input="$1" pdir="$HOME/Desktop" open_pdf=evince
    # check to make sure that enscript and ps2pdf are both installed
    if ! command -v enscript >/dev/null || ! command -v ps2pdf >/dev/null; then
    echo "ERROR: both enscript and ps2pdf must be installed" 1>&2
    exit 1
    fi

    # create temp dir if it does not exist
    if [ ! -d "$pdir" ]; then
    mkdir -p "$pdir" 2>/dev/null
    if [ $? -ne 0 ]; then
    echo "Unable to make directory '$pdir'" 1>&2
    exit 2
    fi
    fi


    tmpfile="`mktemp $pdir/mutt_XXXXXXXX.pdf`"

    enscript --font=Courier8 $input -2r --word-wrap --fancy-header=mutt --encoding=88593 -p - 2>/dev/null | ps2pdf - $tmpfile
    $open_pdf $tmpfile >/dev/null 2>&1 &
    sleep 1
    rm $tmpfile









    share|improve this question

























      0












      0








      0








      I use a print script that I call in my .neomutt/config with



      set print_command="/home/myself/.config/neomutt/print.sh" 


      The script was working but I haven't used it in a while and these days it successfully launches evince with a /tmp file named mutt_XXXXXXXX.pdf as expected (not literally mutt_XXXXXXXX.pdf the file name is actually mutt_8TR4VsPY.pdf or whatever) but the PDF is a single blank page. When it was working that temporary PDF included the email message as expected.



      I'm not seeing any errors, but the email isn't being printed. The print.sh script itself is as follows:



      #!/bin/bash
      input="$1" pdir="$HOME/Desktop" open_pdf=evince
      # check to make sure that enscript and ps2pdf are both installed
      if ! command -v enscript >/dev/null || ! command -v ps2pdf >/dev/null; then
      echo "ERROR: both enscript and ps2pdf must be installed" 1>&2
      exit 1
      fi

      # create temp dir if it does not exist
      if [ ! -d "$pdir" ]; then
      mkdir -p "$pdir" 2>/dev/null
      if [ $? -ne 0 ]; then
      echo "Unable to make directory '$pdir'" 1>&2
      exit 2
      fi
      fi


      tmpfile="`mktemp $pdir/mutt_XXXXXXXX.pdf`"

      enscript --font=Courier8 $input -2r --word-wrap --fancy-header=mutt --encoding=88593 -p - 2>/dev/null | ps2pdf - $tmpfile
      $open_pdf $tmpfile >/dev/null 2>&1 &
      sleep 1
      rm $tmpfile









      share|improve this question














      I use a print script that I call in my .neomutt/config with



      set print_command="/home/myself/.config/neomutt/print.sh" 


      The script was working but I haven't used it in a while and these days it successfully launches evince with a /tmp file named mutt_XXXXXXXX.pdf as expected (not literally mutt_XXXXXXXX.pdf the file name is actually mutt_8TR4VsPY.pdf or whatever) but the PDF is a single blank page. When it was working that temporary PDF included the email message as expected.



      I'm not seeing any errors, but the email isn't being printed. The print.sh script itself is as follows:



      #!/bin/bash
      input="$1" pdir="$HOME/Desktop" open_pdf=evince
      # check to make sure that enscript and ps2pdf are both installed
      if ! command -v enscript >/dev/null || ! command -v ps2pdf >/dev/null; then
      echo "ERROR: both enscript and ps2pdf must be installed" 1>&2
      exit 1
      fi

      # create temp dir if it does not exist
      if [ ! -d "$pdir" ]; then
      mkdir -p "$pdir" 2>/dev/null
      if [ $? -ne 0 ]; then
      echo "Unable to make directory '$pdir'" 1>&2
      exit 2
      fi
      fi


      tmpfile="`mktemp $pdir/mutt_XXXXXXXX.pdf`"

      enscript --font=Courier8 $input -2r --word-wrap --fancy-header=mutt --encoding=88593 -p - 2>/dev/null | ps2pdf - $tmpfile
      $open_pdf $tmpfile >/dev/null 2>&1 &
      sleep 1
      rm $tmpfile






      shell-script printing mutt






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 1 hour ago









      AmandaAmanda

      4253 silver badges17 bronze badges




      4253 silver badges17 bronze badges






















          0






          active

          oldest

          votes














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531776%2fhelp-printing-from-neomutt%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f531776%2fhelp-printing-from-neomutt%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m