Issue 94346 - add claws-mail to senddoc script
Summary: add claws-mail to senddoc script
Status: CONFIRMED
Alias: None
Product: utilities
Classification: Unclassified
Component: automation (show other issues)
Version: OOo 2.3
Hardware: PC All
: P3 Trivial with 2 votes (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: issues@tools
URL: http://user.services.openoffice.org/e...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-25 22:25 UTC by oorene
Modified: 2021-04-30 16:18 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description oorene 2008-09-25 22:25:20 UTC
The shell script ($INSTALL_ROOT/program/senddoc) fails after mail client
upgrade. In the options menu, internet, e-mail there is a facility to enter the
e-mail client program path. However the shell script is not updated. In this
case the program name changed to claws-mail but the script refers to previous
name sylpheed.
Comment 1 fox_ino 2008-10-16 19:26:15 UTC
Confirmed this bug on Xubuntu (7.04/8.04/8.10) with Claws-Mail.
Comment 2 andreschnabel 2008-10-30 10:57:26 UTC
works for me using OOo 3.0.0 on Kubuntu 7.10 

default setting for me is kmail - OOo will send via KMail
if I change the setting to thunderbird thunderbird will be used.

please retest wih a morerecent version of OOo and make sure you are using a
build that has been provided by the OOo-Project. If you find this problemin a
distributor's version please file a bug report to your linux distributor.
Comment 3 andreschnabel 2008-10-30 10:58:42 UTC
closed
Comment 4 andreschnabel 2008-10-30 11:04:43 UTC
sorry, issue still exists - reopen

easy fix as suggested in the forum:

$ diff -u /opt/OO300_m7/openoffice.org/basis3.0/program/senddoc .
--- /opt/OO300_m7/openoffice.org/basis3.0/program/senddoc	2008-09-19
21:04:49.000000000 -0400
+++ ./senddoc	2008-09-25 19:46:02.000000000 -0400
@@ -303,7 +303,7 @@
 ${MAILER} ${TO:+-T} ${TO:-} ${ATTACH:+-a} ${ATTACH:+"${ATTACH}"}
 ;;
 
-	sylpheed | claws)
+	sylpheed | claws | claws-mail)
       	 
		while [ "$1" != "" ]; do
 			case $1 in

Comment 5 andreschnabel 2008-10-30 11:05:07 UTC
confirmed
Comment 6 gregor.hartmann 2009-01-02 12:55:40 UTC
cd is this yours?
Comment 7 Andreas Säger 2021-03-29 17:00:00 UTC
claws mail and thunderbird can be started with document attachments when I copy the script from LO 7.1 to the AOO program directory. The script is published under Apache license.
Comment 8 Matthias Seidel 2021-04-13 21:35:23 UTC
(In reply to andreschnabel from comment #4)

> easy fix as suggested in the forum:
> 
> $ diff -u /opt/OO300_m7/openoffice.org/basis3.0/program/senddoc .
> --- /opt/OO300_m7/openoffice.org/basis3.0/program/senddoc	2008-09-19
> 21:04:49.000000000 -0400
> +++ ./senddoc	2008-09-25 19:46:02.000000000 -0400
> @@ -303,7 +303,7 @@
>  ${MAILER} ${TO:+-T} ${TO:-} ${ATTACH:+-a} ${ATTACH:+"${ATTACH}"}
>  ;;
>  
> -	sylpheed | claws)
> +	sylpheed | claws | claws-mail)
>        	 
> 		while [ "$1" != "" ]; do
>  			case $1 in

Committed to trunk with:
https://github.com/apache/openoffice/commit/14c7d0b58688bab6da803aa150471d9ea1fe2cbd

Cherry-picked for AOO42X with:
https://github.com/apache/openoffice/commit/b7d99f775517464c6a67c592771588d1a4cea4cf

Cherry-picked for AOO41X with:
https://github.com/apache/openoffice/commit/1748116db8f0d6e098990fc3e772679c618c4e4d
Comment 9 Matthias Seidel 2021-04-20 18:33:35 UTC
Can someone please test with AOO 4.1.10-RC2?

https://dist.apache.org/repos/dist/dev/openoffice/4.1.10-RC2/binaries/
Comment 10 Francis C. Costero 2021-04-22 15:41:01 UTC
I tested with Linux Mint 18.03. I installed Claws Mail and used AOO's Tools > Options > Internet > Email menu to point the email process to /usr/bin/claws-mail. I could then send a message with the current document attached but AOO waits for the Claws program to be closed before it can be used. 
With Thunderbird, I merely write "thunderbird" (no quotes) in the box in the Tools > Options > Internet > Email dialog and I can send email and AOO is not stuck waiting for Thunderbird. I can toggle back and forth between the programs and amend the AOO doc.
If I write "claws" in the same location, clicking the Document As Email icon has no effect. There is no error message.
If I write an invalid program name in the Email box, I do get an error message. 

I'm not at all sure I have checked these things correctly. I'll be happy to take requests for other tests.