Closed
Bug 415736
Opened 16 years ago
Closed 16 years ago
delete/detach attachments in background without question for user
Categories
(Thunderbird :: General, enhancement)
Thunderbird
General
Tracking
(Not tracked)
RESOLVED
FIXED
Thunderbird 3
People
(Reporter: lukas.durfina, Assigned: lukas.durfina)
Details
Attachments
(1 file, 4 obsolete files)
7.62 KB,
patch
|
Bienvenu
:
review+
Bienvenu
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Opera/9.23 (Windows NT 5.1; U; en) Build Identifier: version 2.0.0.9 (20071031) I will appreciate adding a possibility to detach/delete attachment(s) without question for user as it is acctually, when I use messenger.detachAllAttachments(...) or messenger.detachAttachment(...). I am developing virus-checking extension, and this possibility will be usefull. And there is at least one next extension, where it will be applicable. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Comment 1•16 years ago
|
||
Got a patch for that;) ?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Hardware: PC → All
Assignee | ||
Comment 2•16 years ago
|
||
I hope, that you will think out something, because I dont have experience with writing code to mozilla. If I am not wrong, problem is calling of function PromptIfDeleteAttachments(...). I have two ideas: make new function, where PromptIfDeleteAttachments() wont be called, but that will duplicate code, so I suppose, you will refuse it. Or add the default argument to these functions, for example DetachAllAttachments(PRUint32 aCount, const char ** aContentTypeArray, const char ** aUrlArray, const char ** aDisplayNameArray, const char ** aMessageUriArray, PRBool aSaveFirst, PRBool aInBackground = false); I think the second idea is fine. Is it acceptable? If yes, I can try to make patch.
Comment 3•16 years ago
|
||
Sounds ok to me. Though use PR_FALSE instead of false.
Assignee | ||
Comment 4•16 years ago
|
||
I hope it will be OK, it is patch for CVS version.
Assignee | ||
Comment 5•16 years ago
|
||
I am sorry, I forgot patch for IDL file. But I dont know how to add default parameters in it. Can you help me?
Comment 6•16 years ago
|
||
IDL files use something like [optional] in boolean Also remember to change the uuid for it.
Assignee | ||
Comment 7•16 years ago
|
||
Comment 8•16 years ago
|
||
Please attach the diffs all in one file, then request r/sr - bienvenu might be the most suitable reviewer in this case. See http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree
Assignee: nobody → lukas.durfina
Assignee | ||
Updated•16 years ago
|
Attachment #302381 -
Attachment is obsolete: true
Assignee | ||
Updated•16 years ago
|
Attachment #302469 -
Attachment is obsolete: true
Assignee | ||
Comment 9•16 years ago
|
||
Attachment #302768 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #302768 -
Flags: superreview?(bienvenu)
Attachment #302768 -
Flags: review?(bienvenu)
Attachment #302768 -
Flags: review?
Comment 10•16 years ago
|
||
Lukas, can you change the inBackground name to something more descriptive, like withoutWarning? Also
> if (!inBackground)
> if (NS_FAILED(PromptIfDeleteAttachments(saveFileUris != nsnull, aCount, aDisplayNameArray)))
should be just one if statement,
if (!withoutWarning && NS_FAILED(PromptIfDeleteAttachments(saveFileUris != nsnull, aCount, aDisplayNameArray)))
return NS_OK;
Assignee | ||
Updated•16 years ago
|
Attachment #302768 -
Attachment is obsolete: true
Attachment #302768 -
Flags: superreview?(bienvenu)
Attachment #302768 -
Flags: review?(bienvenu)
Assignee | ||
Comment 11•16 years ago
|
||
Thanks for reply, I hope, it will be ok.
Attachment #304806 -
Flags: superreview?
Attachment #304806 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #304806 -
Flags: superreview?(bienvenu)
Attachment #304806 -
Flags: superreview?
Attachment #304806 -
Flags: review?(bienvenu)
Attachment #304806 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #304806 -
Attachment is obsolete: true
Attachment #304806 -
Flags: superreview?(bienvenu)
Attachment #304806 -
Flags: review?(bienvenu)
Assignee | ||
Comment 12•16 years ago
|
||
I am sorry, I forget update before diff
Attachment #304812 -
Flags: superreview?
Attachment #304812 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #304812 -
Flags: superreview?(bienvenu)
Attachment #304812 -
Flags: superreview?
Attachment #304812 -
Flags: review?(bienvenu)
Attachment #304812 -
Flags: review?
Assignee | ||
Updated•16 years ago
|
Attachment #304812 -
Attachment description: hopelly last one patch → hopefully last one patch
Comment 13•16 years ago
|
||
Comment on attachment 304812 [details] [diff] [review] hopefully last one patch looks good, thx, Lukas.
Attachment #304812 -
Flags: superreview?(bienvenu)
Attachment #304812 -
Flags: superreview+
Attachment #304812 -
Flags: review?(bienvenu)
Attachment #304812 -
Flags: review+
Updated•16 years ago
|
Keywords: checkin-needed
Comment 14•16 years ago
|
||
Checking in mailnews/base/public/nsIMessenger.idl; /cvsroot/mozilla/mailnews/base/public/nsIMessenger.idl,v <-- nsIMessenger.idl new revision: 1.74; previous revision: 1.73 done Checking in mailnews/base/src/nsMessenger.cpp; /cvsroot/mozilla/mailnews/base/src/nsMessenger.cpp,v <-- nsMessenger.cpp new revision: 1.381; previous revision: 1.380 done Checking in mailnews/base/src/nsMessenger.h; /cvsroot/mozilla/mailnews/base/src/nsMessenger.h,v <-- nsMessenger.h new revision: 1.48; previous revision: 1.47 done
Status: NEW → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3
Version: unspecified → Trunk
You need to log in
before you can comment on or make changes to this bug.
Description
•