• How Can I Run a Separate .pinerc with a Date Displayed?

    From Chime Hart@chime@hubert-humphrey.com to comp.mail.pine on Thu Jul 3 09:48:15 2025
    From Newsgroup: comp.mail.pine

    Hi All: Well, finally, I have most of my Clari issues solved. But now I would like to run a slightly altered .pinerc when reading Clari articles. I figure I could call it .pinerc-clari
    Anyway, in this script, I type "clari" and mostly just shows these Clari groups, but I wouldn't have any idea what to add to reference a separate .pinerc file?
    #!/bin/sh

    # Run alpine with just the Clarinet groups

    NEWSRC=${HOME}/.newsrc.clari-news.us.easynews.com;export NEWSRC
    alpine -IL -newsrc-path=${NEWSRC}
    Back again live. Having a date in an index wastes alot of time listening with a
    screen-reader, but wanting to save these articles based on date-and-year is important. Thanks in advance for any guidance
    Chime
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Adam H. Kerman@ahk@chinet.com to comp.mail.pine on Thu Jul 3 17:41:40 2025
    From Newsgroup: comp.mail.pine

    Chime Hart <chime@hubert-humphrey.com> wrote:

    Well, finally, I have most of my Clari issues solved. But now I would
    like to run a slightly altered .pinerc when reading Clari articles. I
    figure I could call it .pinerc-clari
    Anyway, in this script, I type "clari" and mostly just shows these Clari >groups, but I wouldn't have any idea what to add to reference a separate >.pinerc file?
    #!/bin/sh

    # Run alpine with just the Clarinet groups

    NEWSRC=${HOME}/.newsrc.clari-news.us.easynews.com;export NEWSRC
    alpine -IL -newsrc-path=${NEWSRC}
    Back again live. Having a date in an index wastes alot of time listening
    with a screen-reader, but wanting to save these articles based on >date-and-year is important. Thanks in advance for any guidance

    The .newsrc file maintains the list of read article numbers. alpine
    requires a specific syntax for the name of that file. I don't use alpine
    as a newsreader but I do use the filename style so I retain the option
    of using it. My other newsreader just wants a reference to the file
    name.

    I'm a user on news.eternal-september.org. Here's the filename.

    .newsrc-news.eternal-september.org

    Note the "-" and not "." after newsrc.

    I am not invoking it with a shell script.

    I cannot guess why you would need a separate .pinerc. Are you trying to
    prefill headers in the composer? Use a role for that.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Chime Hart@chime@hubert-humphrey.com to comp.mail.pine on Thu Jul 3 11:02:19 2025
    From Newsgroup: comp.mail.pine

    Hi Adam: In my regular inbox I don't want to hear the date of each item, but in
    just these Clari articles, I do have
    index-format=msgno date from subject(75%
    I have no idea if that date option can also display the year? Thanks for your analysis.
    Chime
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Adam H. Kerman@ahk@chinet.com to comp.mail.pine on Thu Jul 3 18:43:14 2025
    From Newsgroup: comp.mail.pine

    Chime Hart <chime@hubert-humphrey.com> wrote:

    In my regular inbox I don't want to hear the date of each item, but in
    just these Clari articles, I do have
    index-format=msgno date from subject(75%
    I have no idea if that date option can also display the year? Thanks for your >analysis.

    You don't mean "inbox". I think you mean the index screen. Ok, I can see
    that.

    You still don't need a shell script. Do it with command-line arguments.
    Use -p to specify .pinerc and -f to specify folder. Then store the
    command and create a shortcut to it.

    With a lot of trial and error, I have figured out the syntax for
    specifying a folder if I'm opening a remote inbox from the command line. However, I've never tried to specify the syntax to open a News folder.

    If I'm in the mood later, maybe I'll look into it, or Eduardo may tell
    you the syntax as he'll know it off the top of his head.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Thorsten Glaser@tg@mirbsd.de to comp.mail.pine on Thu Jul 3 23:53:53 2025
    From Newsgroup: comp.mail.pine

    Hi Chime,

    index-format=msgno date from subject(75%

    basically just make a copy of your normal .pinerc under a
    new name and add that line at the end and you should be
    good to go. It might need upper-case letters though for
    the "tokens".

    If you use DATEISO you also get the year, or SHORTDATE1 if
    you want the US-american format with just two-digit years.
    There is also DAYDATE and PREFDATE which use the operating
    system's idea of how dates can be formatted, or you can use
    things like DAY2DIGIT, MONTHABBREV or MONTH2DIGIT, and YEAR
    or YEAR2DIGIT respectively to roll your own.

    Good luck,
    //mirabilos (from the lynx list)
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Eduardo Chappa@chappa@washington.edu to comp.mail.pine on Thu Jul 3 18:46:21 2025
    From Newsgroup: comp.mail.pine

    On Thu, 3 Jul 2025, Adam H. Kerman wrote:

    If I'm in the mood later, maybe I'll look into it, or Eduardo may tell
    you the syntax as he'll know it off the top of his head.

    There is no need to use a separate .pinerc. The official way of doing this
    is to use "Other Rules", which can be configured from the Main Screen by pressing "S R O". The configuration is similar to that one of roles,
    filters or scores, but you can define index-formats per folders.

    Alternatively or additionally, depending on your version of Alpine, there
    is a patch for Alpine which uses a different syntax to do the same, but it
    can do this on a per-collection basis too. The patch can be found in my
    page below

    https://alpineapp.email/alpine/info/rules.html

    I hope this helps.
    --
    Eduardo
    https://alpineapp.email (web)
    http://repo.or.cz/alpine.git (Git)
    --- Synchronet 3.21d-Linux NewsLink 1.2