Re: [libreoffice-users] Question on send to email option in linux..

2022-07-19 Thread Philip Jackson

On 18/07/2022 22:56, Michael D. Setzer II wrote:

On 18 Jul 2022 at 22:12, Philip Jackson wrote:

Date sent:  Mon, 18 Jul 2022 22:12:20 +0200
Subject:Re: [libreoffice-users] Question on send to
email option in linux..
From:   Philip Jackson
To: LibreOffice


On 18/07/2022 21:35, Michael D. Setzer II wrote:

Thanks for the reply. I have LibreOffice 7.2.7.2 version as
loaded by default for my Fedora 35 and also have
LibreOffice 7.3.4.2 downloaded from libreoffice.

With both I have tried a simple saved file with the word
test in it. File is saved. Have Tools / Options / Internet /
Email set to /usr/bin/WSENDTO (Thou I did also try using
the direct path to program as well.).

Strange - but in all the years I've been using LO Writer and email, I've never 
thought or had reason to look at that setting. But now that you've made me 
curious, I've had a look to see what I've got in Tools / Options / Internet / 
Email and it informs me that my email program is :  sensible-lomua.

I've no idea what that is. I've used Thunderbird in conjunction with Linux and 
LO for many years and it just worked.

Sorry.

Thanks again for the quick response. Don't know if it is
trying something else. In browser I can type
mailto:mi...@guam.net  and it pulls up email client with
no problem. Just seeing nothing with libreoffice, but the
macro works fine.


I thought I'd try to find out a bit more about 'sensible-lomua' which is what 
exists by default in my Tools / Options / Internet / Email.  I guessed that the 
lomua was Libreoffice mail user agent and apparently that has been inherited 
from OpenOffice where it was 'sensible-oomua'.

There was a bug opened in 2011 by someone who had a similar problem:

https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/841184

Their solution was simply to replace 'sensible-lomua' with 'thunderbird'  
(without the quotes and without any path).

Philip


--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Question on send to email option in linux..

2022-07-18 Thread Michael D. Setzer II
On 18 Jul 2022 at 22:12, Philip Jackson wrote:

Date sent:  Mon, 18 Jul 2022 22:12:20 +0200
Subject:Re: [libreoffice-users] Question on send to 
email option in linux..
From:   Philip Jackson 
To: LibreOffice 

> On 18/07/2022 21:35, Michael D. Setzer II wrote:
> > Thanks for the reply. I have LibreOffice 7.2.7.2 version as
> > loaded by default for my Fedora 35 and also have
> > LibreOffice 7.3.4.2 downloaded from libreoffice.
> >
> > With both I have tried a simple saved file with the word
> > test in it. File is saved. Have Tools / Options / Internet /
> > Email set to /usr/bin/WSENDTO (Thou I did also try using
> > the direct path to program as well.).
> 
> Strange - but in all the years I've been using LO Writer and email, I've 
> never thought or had reason to look at that setting. But now that you've made 
> me curious, I've had a look to see what I've got in Tools / Options / 
> Internet / Email and it informs me that my email program is :  sensible-lomua.
> 
> I've no idea what that is. I've used Thunderbird in conjunction with Linux 
> and LO for many years and it just worked.
> 
> Sorry.

Thanks again for the quick response. Don't know if it is 
trying something else. In browser I can type 
mailto:mi...@guam.net and it pulls up email client with 
no problem. Just seeing nothing with libreoffice, but the 
macro works fine. 

Thanks.



> 
> > /usr/bin/WSENDTO has this.
> > #!/bin/bash
> > echo $0 $1 $2 $3
> > /home/msetzerii/.wine/drive_c/PMAIL/Programs/WSENDT
> > O.EXE $1
> >
> > Strange thing is that absolutely nothing happens. No box
> > opens, and nothing in way of a error message is showing
> > up.. But with my simple macro - running it opens the
> > email client and has the document attached with no
> > problem...
> >
> > Simple Macro
> > Sub Mailto
> > Dim oDoc As Object
> > Dim Path$
> > oDoc = ThisComponent
> > Path$ = oDoc.getURL()
> > If oDoc.HasLocation() Then
> > shell("/home/msetzerii/.wine/drive_c/PMAIL/Programs/W
> > SENDTO.EXE " (Path$,8,100) )
> > Else
> >Print "The document has not yet been stored"
> > End If
> > End Sub
> >
> > Tools / Marco / Run and selecting it opens the email client
> > with the file attached..
> >
> > Not getting anything is what confuses me. Would expect
> > something to show on screen, but nothing. The macro
> > calls same program and takes the passed parameter, and
> > does trim theFILE://  off the parameter.
> >
> >
> >> +
> >>>Michael D. Setzer II - Computer Science Instructor
> >>> (Retired)
> >>>mailto:mi...@guam.net
> >>>mailto:msetze...@gmail.com
> >>>Guam - Where America's Day Begins
> >>>G4L Disk Imaging Project maintainer
> >>>http://sourceforge.net/projects/g4l/
> >>> ++
> >>>
> >>>
> >>>
> >>>
> 
> -- 
> To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
> Problems? 
> https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
> Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
> List archive: https://listarchives.libreoffice.org/global/users/
> Privacy Policy: https://www.documentfoundation.org/privacy


++
 Michael D. Setzer II - Computer Science Instructor 
(Retired) 
 mailto:mi...@guam.net
 mailto:msetze...@gmail.com
 Guam - Where America's Day Begins
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
++




-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy



Re: [libreoffice-users] Question on send to email option in linux..

2022-07-18 Thread Stephan Bergmann

On 7/18/22 21:35, Michael D. Setzer II wrote:
[...]

Thanks for the reply. I have LibreOffice 7.2.7.2 version as
loaded by default for my Fedora 35 and also have
LibreOffice 7.3.4.2 downloaded from libreoffice.

With both I have tried a simple saved file with the word
test in it. File is saved. Have Tools / Options / Internet /
Email set to /usr/bin/WSENDTO (Thou I did also try using
the direct path to program as well.).

/usr/bin/WSENDTO has this.
#!/bin/bash
echo $0 $1 $2 $3
/home/msetzerii/.wine/drive_c/PMAIL/Programs/WSENDT
O.EXE $1

Strange thing is that absolutely nothing happens. No box
opens, and nothing in way of a error message is showing
up.. But with my simple macro - running it opens the
email client and has the document attached with no
problem...


LO doesn't actually call /usr/bin/WSENDTO with the document's pathname 
as an argument (as one might expect).  What rather happens, for better 
or worse (see CmdMailSuppl::sendSimpleMailMessage at 
), 
is that LO calls its senddoc helper script (see 
) 
with lots of arguments, among them `--mailclient` `/usr/bin/WSENDTO`.


And that senddoc script then tries to guess from the given mail client's 
basename what program that is, and knows how to pass it along all the 
other arguments, potentially specifying the mail's to, cc, body, 
attachment, etc.  But that senddoc script doesn't know anything about a 
mail client with basename WSENDTO, so gives up and tries something like 
xdg-email instead, but which apparently doesn't lead to any success with 
your setup, either.



--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Question on send to email option in linux..

2022-07-18 Thread Philip Jackson

On 18/07/2022 21:35, Michael D. Setzer II wrote:

Thanks for the reply. I have LibreOffice 7.2.7.2 version as
loaded by default for my Fedora 35 and also have
LibreOffice 7.3.4.2 downloaded from libreoffice.

With both I have tried a simple saved file with the word
test in it. File is saved. Have Tools / Options / Internet /
Email set to /usr/bin/WSENDTO (Thou I did also try using
the direct path to program as well.).


Strange - but in all the years I've been using LO Writer and email, I've never 
thought or had reason to look at that setting. But now that you've made me 
curious, I've had a look to see what I've got in Tools / Options / Internet / 
Email and it informs me that my email program is :  sensible-lomua.

I've no idea what that is. I've used Thunderbird in conjunction with Linux and 
LO for many years and it just worked.

Sorry.


/usr/bin/WSENDTO has this.
#!/bin/bash
echo $0 $1 $2 $3
/home/msetzerii/.wine/drive_c/PMAIL/Programs/WSENDT
O.EXE $1

Strange thing is that absolutely nothing happens. No box
opens, and nothing in way of a error message is showing
up.. But with my simple macro - running it opens the
email client and has the document attached with no
problem...

Simple Macro
Sub Mailto
Dim oDoc As Object
Dim Path$
oDoc = ThisComponent
Path$ = oDoc.getURL()
If oDoc.HasLocation() Then
shell("/home/msetzerii/.wine/drive_c/PMAIL/Programs/W
SENDTO.EXE " (Path$,8,100) )
Else
   Print "The document has not yet been stored"
End If
End Sub

Tools / Marco / Run and selecting it opens the email client
with the file attached..

Not getting anything is what confuses me. Would expect
something to show on screen, but nothing. The macro
calls same program and takes the passed parameter, and
does trim theFILE://  off the parameter.



+

   Michael D. Setzer II - Computer Science Instructor
(Retired)
   mailto:mi...@guam.net
   mailto:msetze...@gmail.com
   Guam - Where America's Day Begins
   G4L Disk Imaging Project maintainer
   http://sourceforge.net/projects/g4l/
++






--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


Re: [libreoffice-users] Question on send to email option in linux..

2022-07-18 Thread Michael D. Setzer II
On 18 Jul 2022 at 18:25, Philip Jackson wrote:

Date sent:  Mon, 18 Jul 2022 18:25:45 +0200
Subject:Re: [libreoffice-users] Question on send to 
email option in linux..
To: users@global.libreoffice.org
From:   Philip Jackson 

> Could there be a problem with your installation of LO?
> 
> I'm using LO Writer 6.4.7.2 on UbuntuStudio 20.04 and the Send to email
> works fine. Clicking the File > 'Send to email' opens a write window in my
> Thunderbird mail client with the document already attached. 
>

Thanks for the reply. I have LibreOffice 7.2.7.2 version as 
loaded by default for my Fedora 35 and also have 
LibreOffice 7.3.4.2 downloaded from libreoffice.

With both I have tried a simple saved file with the word 
test in it. File is saved. Have Tools / Options / Internet / 
Email set to /usr/bin/WSENDTO (Thou I did also try using 
the direct path to program as well.).

/usr/bin/WSENDTO has this.
#!/bin/bash
echo $0 $1 $2 $3
/home/msetzerii/.wine/drive_c/PMAIL/Programs/WSENDT
O.EXE $1

Strange thing is that absolutely nothing happens. No box 
opens, and nothing in way of a error message is showing 
up.. But with my simple macro - running it opens the 
email client and has the document attached with no 
problem...

Simple Macro
Sub Mailto
Dim oDoc As Object
Dim Path$
oDoc = ThisComponent
Path$ = oDoc.getURL()
If oDoc.HasLocation() Then 
shell("/home/msetzerii/.wine/drive_c/PMAIL/Programs/W
SENDTO.EXE " (Path$,8,100) )
Else
  Print "The document has not yet been stored"
End If
End Sub
 
Tools / Marco / Run and selecting it opens the email client 
with the file attached..

Not getting anything is what confuses me. Would expect 
something to show on screen, but nothing. The macro 
calls same program and takes the passed parameter, and 
does trim the FILE:// off the parameter. 


> Philip
> 
> On 18/07/2022 12:14, Michael D. Setzer II wrote:
> > Was trying to get the option to work, but after setting the
> > program for Internet email nothing  happened when I
> > tried to send to email. No message No Error.
> >
> > Created a macro that does seem to work, but is very
> > basic. Just copied stuff I found on web, so some parts
> > might be better. First writer macro I've done. Usually do
> > macros in calc.
> > Found code getURL that gets path to file that must be
> > saved already. Probable a command to get it without the
> > file://  but found another thing to remove that.
> > Then it is just a matter of calling the WSENDTO.EXE
> > program and adding the full path to the already save file.
> > That brings up the Pegasus Email client, and adds the
> > document as an attachment.
> >
> > Sub Mailto
> > Dim oDoc As Object
> > Dim Path$
> > oDoc = ThisComponent
> > Path$ = oDoc.getURL()
> > If oDoc.HasLocation() Then
> >Print "The Document URL is " & oDoc.getURL()
> >uWithoutProto = Split(oDoc.getURL(),"file://")(1)
> > shell("/home/msetzerii/.wine/drive_c/PMAIL/Programs/W
> > SENDTO.EXE " & uWithoutProto)
> > Else
> >Print "The document has not yet been stored"
> > End If
> > End Sub
> >
> > Has print statements from original code, that could be
> > removed. The WSENDTO.EXE is the mapi client that
> > works in windows and works from firefox.  Surprized that
> > nothing shows with libreoffice.
> >
> > Thanks.
> >
> > ++
> >   Michael D. Setzer II - Computer Science Instructor
> > (Retired)
> >   mailto:mi...@guam.net
> >   mailto:msetze...@gmail.com
> >   Guam - Where America's Day Begins
> >   G4L Disk Imaging Project maintainer
> >   http://sourceforge.net/projects/g4l/
> > ++
> >
> >
> >
> >
> 
> --
> --
>    author of "The Circle of Fifths" for improvising 
> musicians
>    Get it here https://www.books2read.com/u/bWnRM4
> 
>    auteur : "Le Cycle des Quintes" pour musiciens improvisateurs
>    disponibilité : 

Re: [libreoffice-users] Question on send to email option in linux..

2022-07-18 Thread Philip Jackson

Could there be a problem with your installation of LO?

I'm using LO Writer 6.4.7.2 on UbuntuStudio 20.04 and the Send to email works 
fine. Clicking the File > 'Send to email' opens a write window in my 
Thunderbird mail client with the document already attached.

Philip

On 18/07/2022 12:14, Michael D. Setzer II wrote:

Was trying to get the option to work, but after setting the
program for Internet email nothing  happened when I
tried to send to email. No message No Error.

Created a macro that does seem to work, but is very
basic. Just copied stuff I found on web, so some parts
might be better. First writer macro I've done. Usually do
macros in calc.
Found code getURL that gets path to file that must be
saved already. Probable a command to get it without the
file://  but found another thing to remove that.
Then it is just a matter of calling the WSENDTO.EXE
program and adding the full path to the already save file.
That brings up the Pegasus Email client, and adds the
document as an attachment.

Sub Mailto
Dim oDoc As Object
Dim Path$
oDoc = ThisComponent
Path$ = oDoc.getURL()
If oDoc.HasLocation() Then
   Print "The Document URL is " & oDoc.getURL()
   uWithoutProto = Split(oDoc.getURL(),"file://")(1)
shell("/home/msetzerii/.wine/drive_c/PMAIL/Programs/W
SENDTO.EXE " & uWithoutProto)
Else
   Print "The document has not yet been stored"
End If
End Sub

Has print statements from original code, that could be
removed. The WSENDTO.EXE is the mapi client that
works in windows and works from firefox.  Surprized that
nothing shows with libreoffice.

Thanks.

++
  Michael D. Setzer II - Computer Science Instructor
(Retired)
  mailto:mi...@guam.net
  mailto:msetze...@gmail.com
  Guam - Where America's Day Begins
  G4L Disk Imaging Project maintainer
  http://sourceforge.net/projects/g4l/
++






--
--
   author of "The Circle of Fifths" for improvising 
musicians
  Get it here https://www.books2read.com/u/bWnRM4

  auteur : "Le Cycle des Quintes" pour musiciens improvisateurs
  disponibilité : https://www.books2read.com/u/bw8rv9
--

--
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy


[libreoffice-users] Question on send to email option in linux..

2022-07-18 Thread Michael D. Setzer II
Was trying to get the option to work, but after setting the 
program for Internet email nothing  happened when I 
tried to send to email. No message No Error.

Created a macro that does seem to work, but is very 
basic. Just copied stuff I found on web, so some parts 
might be better. First writer macro I've done. Usually do 
macros in calc.
Found code getURL that gets path to file that must be 
saved already. Probable a command to get it without the 
file:// but found another thing to remove that.
Then it is just a matter of calling the WSENDTO.EXE 
program and adding the full path to the already save file.
That brings up the Pegasus Email client, and adds the 
document as an attachment. 

Sub Mailto
Dim oDoc As Object
Dim Path$
oDoc = ThisComponent
Path$ = oDoc.getURL()
If oDoc.HasLocation() Then
  Print "The Document URL is " & oDoc.getURL()
  uWithoutProto = Split(oDoc.getURL(), "file://")(1)
shell("/home/msetzerii/.wine/drive_c/PMAIL/Programs/W
SENDTO.EXE " & uWithoutProto)
Else
  Print "The document has not yet been stored"
End If
End Sub

Has print statements from original code, that could be 
removed. The WSENDTO.EXE is the mapi client that 
works in windows and works from firefox.  Surprized that 
nothing shows with libreoffice. 

Thanks.

++
 Michael D. Setzer II - Computer Science Instructor 
(Retired) 
 mailto:mi...@guam.net
 mailto:msetze...@gmail.com
 Guam - Where America's Day Begins
 G4L Disk Imaging Project maintainer 
 http://sourceforge.net/projects/g4l/
++




-- 
To unsubscribe e-mail to: users+unsubscr...@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
Privacy Policy: https://www.documentfoundation.org/privacy