Closed Bug 333526 Opened 18 years ago Closed 18 years ago

handle arguments to mail/compose in startup script

Categories

(SeaMonkey :: UI Design, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.8.1

People

(Reporter: ajschult784, Assigned: ajschult784)

Details

(Keywords: fixed-seamonkey1.1a)

Attachments

(1 file)

With bug 122698 fixed, we sniff out existing instances and open mail or compose for -mail and -compose commandline flags, but people sometimes pass arguments.  With -compose, you can pass -compose attachment=file,to=user@foo.com.  Openoffice uses those arguments when you click on a link or do file->send as attachment.  Xremote can handle them and it's not too hard to pass them on.
Attached patch patchSplinter Review
This also prevents us from using xremote if the user does:
seamonkey -mail -P otherprofile
Attachment #217974 - Flags: superreview?(jag)
Attachment #217974 - Flags: review?(jag)
Attachment #217974 - Flags: superreview?(jag)
Attachment #217974 - Flags: superreview+
Attachment #217974 - Flags: review?(jag)
Attachment #217974 - Flags: review+
Attachment #217974 - Flags: approval-branch-1.8.1?(neil)
fixed-on-trunk
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment on attachment 217974 [details] [diff] [review]
patch

>+  if [ $# -eq 2 ]; then
>+    extra=",$2";
>+  fi
>   case "$1" in
>     -mail)
>-      exec "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${appname}" 'xfeDoCommand(openInbox)'
>+      exec "${run_moz}" "$MOZ_CLIENT_PROGRAM" -a "${appname}" "xfeDoCommand(openInbox${extra})"
"xfeDoCommand(openInbox${2:+,$2})" or ${2:+,}$2 also works.
Attachment #217974 - Flags: approval-branch-1.8.1?(neil) → approval-branch-1.8.1+
checked in with Neil's suggestion
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: