Closed Bug 408019 Opened 18 years ago Closed 16 years ago

command line -compose "attachment=file://%2Fetc%2Fpasswd" fails (when combining use of %2F and /)

Categories

(SeaMonkey :: MailNews: Composition, defect)

x86
Linux
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: thestig, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20060201 Firefox/2.0.0.6 (Ubuntu-dapper) Build Identifier: Seamonkey 2007121103 When trying to open a composer window from the command line, the attachments specified on the command line are in the form of: file:///path/to/file Parts of the file name can/may need to be encoded. For instance, we can encode the above as file:%2F%2F%2Fpath%2Fto%2Ffile or as file://%2Fpath%2Fto%2Ffile In either case, if the file exists, then it should be attached to the email. One should be able to then open the attachment from the composer window. Reproducible: Always Steps to Reproduce: 1. Run /path/to/seamonkey -compose "attachment='file://%2Fetc%2Fpasswd Actual Results: The web browser component of seamonkey opens in a separate window and displays the contents of / Expected Results: The web browser component of seamonkey opens in a separate window and displays the contents of /etc/passwd, same as if the following command was executed: /path/to/seamonkey -compose "attachment='file:///etc/passwd I can reproduce this in the latest build of Seamonkey and Thunderbird. I tried some other combinations, they all work, it's only the above combination of %2F and / that does not work. /path/to/seamonkey -compose "attachment='file:%2F%2F%2Fetc%2Fpasswd /path/to/seamonkey -compose "attachment='file:%2F%2F%2Fetc/passwd /path/to/seamonkey -compose "attachment='file:%2F%2F/etc%2Fpasswd /path/to/seamonkey -compose "attachment='file:%2F//etc%2Fpasswd /path/to/seamonkey -compose "attachment='file:/%2F%2Fetc%2Fpasswd
Component: MailNews: Attachments → Cmd-line Features
QA Contact: attachments → cmd-line
Summary: unable to attach file specified on the command line → command line -compose "attachment=file://%2Fetc%2Fpasswd" fails (when combining use of %2F and /)
Component: Cmd-line Features → Composer
Product: Core → SeaMonkey
QA Contact: cmd-line → composer
(In reply to comment #0) > Build Identifier: Seamonkey 2007121103 Which version was that? Can you reproduce with SeaMonkey v1.1.17 / v2.0b1?
It works in newer versions. Marking this fixed. Thanks for checking up on the bug.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Do not know which bug this correct, change to WFM.
Component: Composer → MailNews: Composition
QA Contact: composer → mailnews-composition
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.