instead of setting the action for the url, check if we have a channel listener.
this is a cleaner fix, and now the quoting back end doesn't need to know about
the nntp url.
the problem was when we ran the nntp url to get the message we weren't
calling OnDataAvailabe() on the channel listener. the reason is the channel
listener only got poked when ActionDisplayArticle was set as the action on
the nntp url. but this wouldn't be the case when we got run from the Quoting backend. I added a new action, and made sure to set it when running the url from the quoting back end, and then made sure the nntp backend did the right thing.
r=alecf, a=chofmann
of a nsFilePath. this means nsINNTPNewsgroupPost is fully scriptable.
it also allowed me to clean up a lot of code.
most of these changes are results of this change.
add notifyOn, maxArticles, and markOldRead attributes to nsINntpIncomingServer
these correspond to "news.max_articles","news.mark_old_read", and "news.notify.o
n" prefs in 4.x. (in 5.0, they are on a per server basis now.)
rewrite nsNNTPProtocol.cpp to use these attributes, instead of the old 4.x globa
l prefs.
fix warnings.
add the newsrcRootPath attribute to the nsINntpIncomingServer interface.
implement Set/GetNewsrcRootPath(), similar to how Set/GetDefaultLocalPath() are implemented.
rewrite nsMsgAccountManager to use
Set/GetDefaultLocalPath() and Set/GetNewsrcRootPath()
rename some methods in nsMsgAccountManager for correctness.
change the newsrcFilePath attribute to be a nsIFileSpec, instead of a string.(bug #13306)
add code to do hashing of hostname. [not turned on yet]. (for bug #13480)
remove the obsolete GetRootFolderPath() code from the incoming servers.
Error if an interface is declared [scriptable], but contains methods that can't be scripted because they refer to native-declared types, unless the method is declared [noscript].
This change is intended to make it easier to determine when an interface is not scriptable, and to make it easier to see what changes need to be made to make it scriptable.
As many of the .idl files in the tree defined [scriptable] interfaces that contained non-scriptable methods, I've sprinkled [noscript] throughout. As the interfaces weren't scriptable anyway, this shouldn't change their visibility to javascript.
currently, you can only post to the server specified by the
"network.hosts.nntp_server" pref. by default, the value of this pref "news".
more work needs to be done to complete this.
fix for #6655
windows, mac, or linux.)
since we aren't deriving from these interfaces, I only need to declare
them as interfaces. I don't have to include the idl files.
component it's own module name (this helps clear up problems with the xp connect type lib
name for each component), making sure libs built in src directories have _s suffix as
they are static libraries and unifying component names with "msg" prefixes.
Also removed extraneous CPP_SRCS info.
No more NS_New* for the news objects. Now you must go through the component
manager and use the news factory.
fixes all over to deal with this.
Fix the MODULE. It should be news, not mailnews or nntp.
more scriptability (XPIDL) changes for news.