Re: [Postfixadmin-devel] Request for help to creating bulk email address
Brought to you by:
christian_boltz,
gingerdog
From: Christian B. <pos...@cb...> - 2012-01-11 22:19:49
|
Hello, Am Mittwoch, 11. Januar 2012 schrieb Sonam Penjor: > Creation of bulk email address is almost complete. Procedure of email > creation are the following: > > 1. Uploading and reading CSV file as usual > 2. Printing the status of CSV file > 3. creating the email address by taking care of maximum_execution time > > Regrading number three: > > I self-redirect after creating certain mailboxes with > ?csvfile=uploaded_file.csv&continue_with_line=51 I'd store the filename in the session instead of passing it around in the redirect. Besides that, it looks good. > before 5 seconds of > maximum execution time as recommended by Mr. Christian Boltz (Thank > You very much). For this simple re-direction I am using simple header > php function, I don't know whether this method is correct??. Your > help or recommendation would be helpful. Yes, header ("Location: [...]") is correct. > As I am coding directly base on SVN trunk, I using the MailBoxHandler > class. The following piece of code is used to create email address > using the separate class: ... > As you can notice from the above piece of code that I am creating > multiple instances / constructor ( $MailHandler = new > MailboxHandler($usernam[$i]["username"]) within the loop, Do I need to > call destructor method after creating every mail box (If so then need > to create destructor function in the MailboxHandler class) or leave > it as it is or other suggestions. You can leave it as is - PHP should automatically destruct the "old" MailboxHandler instance when you overwrite the $MailHandler variable with a new MailboxHandler instance. > I would appreciate if you could provide recommendations or suggestions > or advice to complete the above task. Everything looks good to me :-) and I'm looking forward to see your patch ;-) Regards, Christian Boltz -- >cat `rpm -qpil *.rpm` > packtete.txt *KREISCH* Erst 7. Januar und schon ist der "Useless use of cat"-Award 2004 vergeben. [> Markus Wunder und David Haller in suse-linux] |