XPost: alt.computer.workshop   
   From: nobody@haph.org   
      
   Brock McNuggets    
   news:69756ea8$10$20$882e4bbb@reader.netnews.com Sun, 25 Jan 2026 01:15:20   
   GMT in alt.computer.workshop, wrote:   
      
   > Mine is set to name the files based on MID and source. For example, if I   
   > get yours from Paganini it is named:   
      
   I do not care. I didn't post it for you or to get your input, bud. I posted   
   it for those who might want to use it vs relying on HK. Some individuals use   
   their clients to pull the MIDs - that's great. The client I use is a bit   
   lacking in so far as reliability with that command. It's nice to have other   
   options. Which is why I shared these two scripts.   
      
   Since you think it's such a big deal that you have right click support -   
   Here's another version for right click along with instructions to integrate   
   it into Thunar. It does use Zenity so if it's not already installed that   
   needs to be done first. This script works just fine and integrates easily.   
      
   The resulting naming convention can be altered as the user likes.   
      
   BEGIN SCRIPT   
   #!/bin/bash   
      
   # --- Configuration ---   
   SERVER="paganini.bofh.team" # Replace with your NNTP server   
   PORT=119 # Default NNTP port   
   # ---------------------   
      
   # 1. Ask for the Message-ID (MID)   
   MID=$(zenity --entry \   
    --title="NNTP Fetcher" \   
    --text="Enter the Message-ID (including <>):" \   
    --entry-text="")   
      
   # 2. Exit if user cancelled   
   if [ -z "$MID" ]; then   
    exit 0   
   fi   
      
   # 3. Connect to the server and request the article   
   # We send 'ARTICLE ' followed by 'QUIT'   
   (   
    echo "ARTICLE $MID"   
    sleep 1   
    echo "QUIT"   
   ) | nc -w 5 $SERVER $PORT > "article_$(date +%s).txt"   
      
   # 4. Notify the user   
   zenity --info --text="Fetch attempted. Check the generated .txt file in   
   your folder."   
   END SCRIPT. C/P BETWEEN THIS LINE AND THE FIRST ONE.   
      
   It does use zenity, so you need to install that before you can use this   
   script. Once you save the file, chmod +x it or use your GUI to grant it   
   execute permissions. Then sudo cp rightclk.sh /usr/bin/rightclk   
      
      
   To add it to Thunar right click menu do this:   
      
   Install zenity if you don't already have it   
   sudo apt install zenity   
      
   save the script as rightclk.sh   
   open a terminal in the same folder as where you just saved rightclk.sh   
   chmod +x rightclk.sh   
   sudo cp rightclk.sh /usr/bin/rightclk   
      
   Close the terminal Window.   
      
   Open Thunar   
      
   Click Edit>>configure custom actions   
   Click + to create a new action   
   Give it a name. I chose Lookup MID   
   For description I put "Looks up MIDs" without the quotes.   
   Command is set to /usr/bin/rightclk   
      
   Under Appearance Conditions the first two entries have a single *   
   And all of the boxes are checked below. This ensures that Lookup MID will   
   be available regardless of the content of the folder you might be in when   
   you right click.   
   Click ok   
   Click close   
      
   --   
   Liar, lawyer; mirror show me, what's the difference?   
   Kangaroo done hung the guilty with the innocent   
   Liar, lawyer; mirror for ya', what's the difference?   
   Kangaroo be stoned. He's guilty as the government   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|