Steffen Nurpmeso <stef...@sdaoden.eu> wrote:

> Hello.
> 
> Your moderate flag was still on.
> 
> Χάρης Καραχριστιανίδης wrote in
>  <20230216081131.myqru%haris...@otenet.gr>:
>  |Steffen Nurpmeso <stef...@sdaoden.eu> wrote:
>  |> Χάρης Καραχριστιανίδης wrote in
>  ...
>  |> Oh it is _such_ a pity i cannot speek Greek!
>  |Aber ich spreche Deutch! :-) Deutschland ist auch sehr schoen!
> 
> Na ja.  Not where i life, and not in winter.  Too grey, too dark,
> too cold.  Autobahn ist schön, for some strange notion of schön,
> but i do not use it.
> 
>  |> With "open" you mean the "type" or "print" command?
>  |I just write the email number and press enter. I suppose it is open?
> 
> This eventually ends up as the `next' command on the given message
> list, so i tend to agree.
> 
>  |With
>  | ? set pipe-text/html='?* lynx -stdin -dump -force_html'
>  | ? type HTML-MESSAGE
>  |
>  |I get this error: "s-nail: type: needs an active mailbox"
> 
> Well, you should have opened one first :-)
> 
>  |Hereis my .mailrc :
>  |
>  |   set v15-compat
> 
> Make it set v15-compat=y.
> Like this you do not need "wysh", and the rest is upwards
> compatible.
> 
>  |   set emptystart
>  |   set sendcharsets=utf-8,iso-8859-1
>  |   set reply-in-same-charset
>  |   set sendwait
> 
> Is default.
> 
>  |   set mimetypes-load-control
> 
> Without value is like not set.  I'll change this for v14.10, when
> the variable was introduced we could not yet forbit empty
> variables.  Credits.
> 
>  |wysh set pipe-application/pdf='?&=?      trap "rm -f \"${MAILX_FILENAME_\
>  |TEMPORARY}\"" EXIT;     trap "trap \"\" INT QUIT TERM; exit 1" INT \
>  |QUIT TERM;     mupdf "${MAILX_FILENAME_TEMPORARY}"'
> 
> (No "wysh", then.  But like i said, you possibly want to create
> a ~/.mailcap that can be shared with other programs.
> For example
> 
>   #@ ~/.mailcap
> 
>   application/pdf;\
>     /Applications/Preview.app/Contents/MacOS/Preview %s;\
>     test = [ "$(uname -s|tr '[:upper:]' '[:lower:]')" = darwin ] 2>/dev/null;\
>     nametemplate=%s.pdf; x-mailx-test-once
>   application/pdf;\
>     infile=%s\;\
>       trap "rm -f ${infile}" EXIT\;\
>       trap "exit 75" INT QUIT TERM\;\
>       mupdf "${infile}";\
>     test = [ -n "${DISPLAY}" ] >/dev/null 2>&1;\
>     nametemplate = %s.pdf; x-mailx-async; x-mailx-test-once
>   application/pdf;\
>     pdfinfo %s\; pdftotext -layout %s -;\
>     test = command -v pdfinfo >/dev/null 2>&1; \
>     copiousoutput; nametemplate=%s.pdf; x-mailx-test-once
> 
>   application/*;\
>     echo 'This is "%t", it looks like:'\; < %s head -c 512 | cat -vet\; echo;\
>     copiousoutput; x-mailx-noquote; x-mailx-last-resort
> 
>   image/*;\
>     display %s;\
>     test = { [ -n "${DISPLAY}" ] && command -v display\; } >/dev/null 2>&1;\
>     x-mailx-test-once
> 
> 
>  |set pipe-text/html='?* lynx -stdin -dump -force_html'
>  |type HTML-MESSAGE
>  |
>  |account account1 {
>  |   localopts yes
> 
> Not needed in an account.
> 
>  |   set ssl_force_tls
> 
> This is nada -> set smtp-use-starttls
> (Will be implied default in v14.10.)
> 
>  |   set mta=smtp://user:p...@server.com:993
>  |   set from="Me em...@email.com"
> 
> This surely does not work.  It must be either "Me <em@ai.l>" or
> plain em@ai.l.  It seems you also want set fullnames.
> 
>  |   set folder=.mail/account1
>  |   set record=imaps://user:p...@server.com:993/Sent
>  |   set inbox=imaps://user:p...@server.com:993
> 
> I would suggest simply setting user and password, and drop that
> user:pass thing everywhere.  For example
> 
>   set user=user password=pass
> 
>  |   set imap-keepalive=240
>  |   set imap-cache=~/.mail/.imap_cache
>  |   shortcut imap imaps://user:p...@server.com:993
>  |   # Type oi to login to the IMAP account
>  |   commandalias oi 'fi imap'
>  |}
>  |
>  |and account2 follows
>  |I open account1 with a .bashrc entry:
>  |alias o="export MAIL=$HOME/.mail/account1/ && mailx -A account1"
> 
> ..ok.. you could simply do this in the account
> 
>   ? set verbose; varshow MAIL; unset verbose
>   #sync-environ
>     set MAIL=/var/mail/steffen
>   ? set MAIL=/dubi.du
>   ? var MAIL
>   set MAIL=/dubi.du
>   ? ! echo $MAIL
>   /dubi.du
> 
> As this is exported automatically .. to at least children of
> s-nail, not to its parent shell.
> 
>  |Everything works normally I think and without the 2 added lines (
>  |set pipe-text/html='?* lynx -stdin -dump -force_html'
>  |type HTML-MESSAGE
>  |)
>  |I don't have this error about active mailbox.
>  |Thanks a lot for reply!
> 
> Ciao.
> 
> --steffen
> |
> |Der Kragenbaer,                The moon bear,
> |der holt sich munter           he cheerfully and one by one
> |einen nach dem anderen runter  wa.ks himself off
> |(By Robert Gernhardt)

For message "s-nail: type: needs an active mailbox" how should my mailbox be? 
Everything in my .mailrc points to the web imap folder.
I made a very simple .mailcap:
application/pdf; mupdf %s
application/x-msexcel; libreoffice --calc %s
application/ms-exc; libreoffice --calc %s
application/excel; libreoffice --calc %s
application/msexcel; libreoffice --calc %s
application/vnd.ms-exc; libreoffice --calc %s
application/vnd.ms-excel; libreoffice --calc %s
application/x-starimpress; libreoffice --impress %s
application/vnd.sun.xml.impress.template; libreoffice --impress %s
application/vnd.sun.xml.impress; libreoffice --impress %s
application/vnd.stardivision.impress; libreoffice --impress %s
application/vnd.stardivision.impress-packed; libreoffice --impress %s
application/msword; libreoffice --writer %s
application/pdf; mupdf %s
image/gif; feh %s
image/jp2;  feh %s
image/jpeg; feh %s
image/png;  feh %s
image/tiff; feh %s
video/*; mplayer %s

Reply via email to