[Remind-Fans] mailing myself items for next few days

Justin Alcorn justin at jalcorn.net
Wed Sep 9 10:54:23 EDT 2009


the -i switch sets a variable.   When the variable "plain" is set it
picks up definitions from my ~/.rem/rem.def that remove all formatting
for plain text:

# Here is an example of how to use msgprefix() and msgsuffix().  These
# will highlight priority-0 reminders in bright red,
# priority-2500 in red, and priority-7500 in blue.  All others
# will be in the normal colors
IF defined("web")
    SET Sep "<span class='comment'>"
    SET NrmPre "<span class='normal'>"
    SET Nrm   "</span>"
    SET Blk   "<span>"
    SET Red   "<span class='important'>"
    SET Grn   "<span>"
    SET Ylw   "<span>"
    SET Blu   "<span class='notice'>"
    SET Mag   "<span>"
    SET Cyn   "<span>"
    SET Wht   "<span>"
    SET Gry   "<span>"
    SET BrRed "<span class='urgent'>"
    SET BrGrn "<span>"
    SET BrYlw "<span>"
    SET BrBlu "<span class='warning'>"
    SET BrMag "<span>"
    SET BrCyn "<span>"
    SET BrWht "<span>"
    SET Bull  "&bull;"
    FSET msgprefix(x) iif(x<999, BrRed, x<1001, Red, x<1400,
BrBlu,x<5000, Blu, x==9999, Sep,Bull+" "+NrmPre)
#   FSET msgsuffix(x) Nrm
ELSE
    IF (defined("plain"))
        SET Esc   ""
        SET Nrm   ""
        SET Blk   ""
        SET Red   ""
        SET Grn   ""
        SET Ylw   ""
        SET Blu   ""
        SET Mag   ""
        SET Cyn   ""
        SET Wht   ""
        SET Gry   ""
        SET BrRed ""
        SET BrGrn ""
        SET BrYlw ""
        SET BrBlu ""
        SET BrMag ""
        SET BrCyn ""
        SET BrWht ""
    ELSE
        SET Esc   CHAR(27)
        SET Nrm   Esc + "[0m"
        SET Blk   Esc + "[0;30m"
        SET Red   Esc + "[0;31m"
        SET Grn   Esc + "[0;32m"
        SET Ylw   Esc + "[0;33m"
        SET Blu   Esc + "[0;34m"
        SET Mag   Esc + "[0;35m"
        SET Cyn   Esc + "[0;36m"
        SET Wht   Esc + "[0;37m"
        SET Gry   Esc + "[30;1m"
        SET BrRed Esc + "[31;1m"
        SET BrGrn Esc + "[32;1m"
        SET BrYlw Esc + "[33;1m"
        SET BrBlu Esc + "[34;1m"
        SET BrMag Esc + "[35;1m"
        SET BrCyn Esc + "[36;1m"
        SET BrWht Esc + "[37;1m"
            FSET msgprefix(x) iif(x<998, BrRed, x<1000, Red, x<2000,
BrBlu, x<5000, Blu, Nrm)
        #   FSET msgsuffix(x) Nrm
    ENDIF
ENDIF


My understanding is that -b1 is only for calendar formats, not list format.

On Wed, Sep 9, 2009 at 9:02 AM, Thomas Klausner<tk at giga.or.at> wrote:
> Hi Justin!
>
> On Thu, Aug 20, 2009 at 04:42:48PM -0400, Justin Alcorn wrote:
>> I do it this way, after ical2rem has put everything into a file
>> included by .reminders::
>>
>> 3 6 * * * local/bin/remind -q -iplain=1 ~/.reminders | mail -s
>> "Reminders" justin at jalcorn.net
>
> That's neat. I couldn't find docs for this "-iplain=1" -- where is
> this documented?
> Can I make it accept "-b1"? It currently seems to ignore that.
>
> Thanks,
>  Thomas
> _______________________________________________
> Remind-fans mailing list
> Remind-fans at lists.whatexit.org
> http://lists.whatexit.org/mailman/listinfo/remind-fans
>



More information about the Remind-fans mailing list